226
Cisco 3900 Series, Cisco 2900 Series, and Cisco 1900 Series Integrated Services Routers Generation 2 Software Configuration Guide
Chapter Upgrading the Cisco IOS Software
How to Upgrade the Cisco IOS Image
Step 7
copy
flash0:
{
tftp
|
rcp
}
(Optional) Copy a file to a server before deleting the file from flash memory. When prompted, enter the
filename and the server’s hostname or IP address:
Router#
copy
flash0: tftp
Step 8
for each file that you identified in
Step 9
delete flash0:
directory-path
/
filename
Use this command to delete a file in flash memory:
Router#
delete flash0:c39xx.tmp
Delete filename [c39xx.tmp]?
<cr>
Delete flash0:c39xx.tmp? [confirm]
<cr>
Step 10
Repeat
for each file that you identified in
.
Step 11
dir flash0:
Use this command to display the layout and contents of flash memory:
Router#
dir flash0:
Flash CompactFlash directory:
File Length Name/status
1 6458208 c39xx.tmp [deleted]
2 6458208 c3xx-mz
[12916544 bytes used, 3139776
available
, 16056320 total]
15680K bytes of ATA CompactFlash (Read/Write)
Step 12
From the displayed output of the
dir flash0:
command, compare the number of bytes
available
to the
size of the system image to which you want to upgrade.
•
If the available memory is less than the new system image’s minimum flash requirements, you must
upgrade your compact flash memory card to a size that can accommodate both the existing files and
the new system image. See the hardware installation guide
for your router.
•
If the available memory is equal to or greater than the new system image’s minimum flash
requirements, proceed to the
“Copying the System Image into Flash Memory” section on page 226
.
What to Do Next
Proceed to the
“Copying the System Image into Flash Memory” section on page 226
Copying the System Image into Flash Memory
This section describes how to copy the system image into the compact flash memory card for your router.
Choose one of the following methods:
•
Using TFTP or Remote Copy Protocol to Copy the System Image into Flash Memory, page 227
•
Using the ROM Monitor to Copy the System Image over a Network, page 229
•
Using a PC with a CompactFlash Card Reader to Copy the System Image into Flash Memory,
page 231