Upgrading the System Image
How to Upgrade the System Image
9
OL-5595-01
Directory of flash:/
3 -rw- 6458388 Mar 01 1993 00:00:58 c38xx-i-mz.tmp
1580 -rw- 6462268 Mar 06 1993 06:14:02 c38xx-i-mz.2800ata
63930368 bytes total (51007488 bytes free)
Step 7
From the displayed output of the
dir /all flash:
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.
Step 8
copy
flash:
{
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
flash tftp
Step 9
(Optional) Repeat
for each file that you identified in
.
Step 10
delete flash:
directory-path
/
filename
Use this command to delete a file in flash memory:
Router#
delete flash:c38xx-i-mz.tmp
Delete filename [c38xx-i-mz.tmp]?
<cr>
Delete flash:c38xx-i-mz.tmp? [confirm]
<cr>
Step 11
for each file that you identified in
Step 12
(Class B file systems only)
squeeze
flash:
Use this command to reclaim the memory space of previously deleted files, for example:
Router#
squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress...
sssssssssssssssssssssssseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze complete
Step 13
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)