224
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
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 226.
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 226.