Upgrading the System Image
How to Upgrade the System Image
8
OL-5595-01
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
(Class B file systems only) squeeze flash:
Note
The squeeze command is only applicable for Class B flash file systems. It is not needed for
Class
C flash file systems. For more details on supported flash file systems, see Using
CompactFlash Memory Cards.
Use this command to reclaim the memory space of previously deleted files:
Router# squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress...
sssssssssssssssssssssssseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze complete
Step 3
dir flash:
Use this command to display the layout and contents of flash memory:
Router# dir flash:
Flash CompactFlash directory:
File Length Name/status
1 6458208 c38xx-i-mz.tmp [deleted]
2 6458208 c38xx-i-mz
[12916544 bytes used, 3139776 available, 16056320 total]
15680K bytes of ATA CompactFlash (Read/Write)
Step 4
From the displayed output of the dir flash: 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 5.
Step 5
From the displayed output of the dir flash: 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 6.
Step 6
dir /all flash:
Use this command to display a list of all files and directories in flash memory:
Router# dir /all flash: