Cisco 2620 Configuration Manual page 174

Software configuration guide
Hide thumbs Also See for 2620:
Table of Contents

Advertisement

File and Directory Operations
Delete Files from Compact Flash Memory
To delete a file from compact Flash memory, enter the delete {flash: | slot0:} command, followed by
the squeeze {flash: | slot0:} command.
When a file is deleted in the Class B Flash file system, the memory space occupied by the deleted file is
not released until you enter the squeeze {flash: | slot0:} command. Although the memory space once
occupied by the deleted file remains, the deleted file cannot be recovered. To release the memory space
occupied by a deleted file, enter the squeeze {flash: | slot0:} command.
Note
The dir {flash: | slot0:} command does not show deleted files; the show {flash: | slot0:} command
shows all files, including any deleted files if the squeeze {flash: | slot0:} command has not been entered.
The following example shows output for deleting a Cisco IOS file from an external compact Flash
memory card, and then releasing the memory space originally occupied by the file:
Router# dir slot0:
Directory of slot0:/
1
2
16056320 bytes total (3139776 bytes free)
Router# delete slot0:c3725-i-mz.tmp
Delete filename [c3725-i-mz.tmp]?
Delete slot0:c3725-i-mz.tmp? [confirm]
Router# dir slot0:
Directory of slot0:/
2
16056320 bytes total (3139776 bytes free)
Router# show slot0:
Slot0 CompactFlash directory:
File
1
2
[12916544 bytes used, 3139776 available, 16056320 total]
15680K bytes of ATA Slot0 CompactFlash (Read/Write)
Router# squeeze slot0:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress...
sssssssssssssssssssssssseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze of slot0 complete
Display File Content
To display the content of a file in compact Flash memory, use the more {flash: | slot0:} command.
The following example shows output from the more {flash: | slot0:} command on an external
Cisco Flash memory card:
Router# more slot0:c3725-i-mz
00000000: 7F454C46 01020100 00000000 00000000
Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
B-6
-rw-
6458208
-rw-
6458208
-rw-
6458208
Length
Name/status
6458208
c3725-i-mz.tmp [deleted]
6458208
c3725-i-mz
Appendix B
Formatting the Compact Flash Memory Cards
<no date>
c3725-i-mz.tmp
<no date>
c3725-i-mz
<no date>
c3725-i-mz
.ELF .... .... ....
OL-1957-04

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents