
2-13
Cisco 12000 Series Internet Router Configuration Guide for Cisco IOS Release 12.0S
Chapter 2 Basic Configuration of the Cisco 12000 Series Internet Router
Upgrading and Backing Up Cisco IOS Software Images and Configuration Files
Note By default, the router boots from a software image file on a Flash memory card or Flash disk located in
slot 0.
Manipulating Files on a Flash Memory Card or Flash Disk
You can copy and move files to and from Flash memory cards and Flash disks as you would to any file
system. Use any of the following commands to manipulate files on Flash memory cards or Flash disks.
Upgrading and Backing Up Cisco IOS Software Images and
Configuration Files
The following sections describe common software tasks that involve upgrading and backing up files on
your router:
• Upgrading a Cisco IOS Software Image on Flash Memory from a TFTP Server, page 2-14
• Copying Cisco IOS Software Images Between Flash Memory Cards or Flash Disks, page 2-15
• Specifying a Cisco IOS Software Image File as the Default Boot Image, page 2-16
• Upgrading the Boot Image in SIMM (Bootflash), page 2-17
• Saving a Configuration File, page 2-18
• Restoring a Configuration File, page 2-19
• Recovering from Locked Blocks in Flash Memory Cards or Flash Disks, page 2-19
Command Purpose
Router# pwd
Displays the current setting of the cd command. Use this command to
determine whether the present working directory you are accessing is the
onboard Flash SIMM on the RP or a PCMCIA Flash memory device in a slot
on the RP. If the router returns
slot0:
, this indicates that you are accessing a
PCMCIA linear Flash memory card inserted in slot 0 of the RP.
Router# cd slot1:
Changes the present working directory you are accessing to the PCMCIA
linear Flash memory card inserted in slot 1 of the RP. Use disk1: to access a
Flash disk located in slot 1 of the RP.
Router# cd bootflash:
Changes the present working directory you are accessing to the Flash memory
SIMM on the RP.
Router# dir
Displays the directory contents of the Flash memory media in use.
Router# delete slot0:
filename
Deletes the file filename from a linear Flash memory card in slot 0. Use slot1:
for a card in slot 1, disk0: for a disk in slot 0, and disk1: for a disk in slot 1.
Files that are deleted are removed from the directory list, but are not erased
permanently. You can use the undelete command to recover deleted files.
Router# squeeze slot0:
Permanently removes deleted files from a linear Flash memory card located in
slot 0. The squeeze command also makes all other undeleted files on the Flash
card contiguous. Use slot1: for a card in slot 1. The squeeze command is not
necessary when using Flash disks.