This section describes how to check whether your router has enough flash memory to upgrade to the new system image and, if necessary, how to properly delete files in flash memory to make room for the new system image.
Cisco 3900 series, 2900 series, and 1900 series ISRs have two external CF slots and two USB slots. Use the secondary CF for overflow files, if required. Table 3 lists CF slot number, name, and size.
Table 4 lists the USB slot number, name, and size.
Prerequisites
In order to check whether your router has enough flash memory for a new system image, you need to obtain the image’s flash requirements from Cisco:
• Choose the Cisco IOS release and system image to which you want to upgrade. See the “Information About Upgrading the System Image” section on page 2.
• Select the system image in the Cisco IOS Upgrade Planner at:
http://www.cisco.com/cgi-bin/Software/Iosplanner/Planner-tool/iosplanner.cgi.
You must have an account at Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
From the File Download Information table, write down the minimum flash requirements for the image.
Table 3 Compact Flash Slot Number, Name, and Size Slot Number CF Filename Size1
1. The maximum storage capacity for the CF in Slot0 and Slot1 is 4GB.
Slot02
2. Slot0 is the default CF slot. CF in Slot0 stores system image, configuration, and data files. CF must be present in this slot for the router to boot and perform normal file operations.
flash0: 256MB
Slot1 flash1: 0
Table 4 USB Slot Number, Name, and Size Slot Number USB Filename Size1
1. The maximum storage capacity for the USB in Slot0 and Slot1 is 4GB.
Slot0 usbflash0: 64MB
Slot1 usbflash1: 0
Upgrading the Cisco IOS Software How to Upgrade the Cisco IOS Image
SUMMARY STEPS
1. enable 2. dir flash0:
3. From the displayed output of the dir flash0: command, compare the number of bytes available to the minimum flash requirements for the new system image.
a. 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 10.
b. If the available memory is less than the new system image’s minimum flash requirements, proceed to Step 4.
4. From the displayed output of the dir flash0: command, compare the number of bytes total to the size of the system image to which you want to upgrade.
a. If the total memory is less than the new system image’s minimum flash requirements, you must upgrade your compact flash memory card. See the hardware installation guide for your router.
b. If the total memory is equal to or greater than the new system image’s minimum flash requirements, proceed to Step 5.
5. dir /all flash0:
6. From the displayed output of the dir /all flash0: command, write down the names and directory locations of the files that you can delete.
7. (Optional) copy flash0: {tftp | rcp}
8. (Optional) Repeat Step 7 for each file that you identified in Step 6.
9. delete flash0:directory-path/filename
10. Repeat Step 9 for each file that you identified in Step 6.
11. dir flash0:[partition-number:]
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.
a. If the available memory is less than the new system image’s minimum flash requirements, then 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.
b. 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 10.
Upgrading the Cisco IOS Software
How to Upgrade the Cisco IOS Image
DETAILED STEPS
Step 1 enable
Use this command to enter privileged EXEC mode. Enter your password if prompted. For example:
Router> enable Password:
Router#
Step 2 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 c39xxmz
[12916544 bytes used, 3139776 available, 16056320 total]
15680K bytes of ATA CompactFlash (Read/Write)
Step 3 From the displayed output of the dir flash0: command, compare the number of bytes available to the minimum flash requirements for the new system image.
• 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 10.
• If the available memory is less than the new system image’s minimum flash requirements, proceed to Step 4.
Step 4 From the displayed output of the dir flash0: command, compare the number of bytes total to the size of the system image to which you want to upgrade.
• If the total memory is less than the new system image’s minimum flash requirements, you must upgrade your compact flash memory card. See the hardware installation guide for your router.
• If the total memory is equal to or greater than the new system image’s minimum flash requirements, proceed to Step 5.
Step 5 dir /all flash0:
Use this command to display a list of all files and directories in flash memory:
Router# dir /all flash0:
Directory of flash:/
3 -rw- 6458388 Mar 01 1993 00:00:58 c39xx.tmp 1580 -rw- 6462268 Mar 06 1993 06:14:02 c39xx-ata
63930368 bytes total (51007488 bytes free)
Step 6 From the displayed output of the dir /all flash0: command, write down the names and directory locations of the files that you can delete. If you cannot delete any files, you must upgrade your compact flash memory card. See the hardware installation guide for your router.
Note Do not delete the system image that the router already uses. If you are not sure which files can be safely deleted, either consult your network administrator or 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.
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 (Optional) Repeat Step 7 for each file that you identified in Step 6.
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 Step 9 for each file that you identified in Step 6.
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 10.