Cisco 3725 Software Configuration Guide - Page 174

Delete Files from Compact Flash Memory, Display File Content

Page 174 highlights

File and Directory Operations Appendix B Formatting the Compact Flash Memory Cards 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 -rw2 -rw- 6458208 6458208 c3725-i-mz.tmp c3725-i-mz 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 -rw- 6458208 c3725-i-mz 16056320 bytes total (3139776 bytes free) Router# show slot0: Slot0 CompactFlash directory: File Length Name/status 1 6458208 c3725-i-mz.tmp [deleted] 2 6458208 c3725-i-mz [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 .ELF Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers B-6 OL-1957-04

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

B-6
Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-04
Appendix B
Formatting the Compact Flash Memory Cards
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
-rw-
6458208
<no date>
c3725-i-mz.tmp
2
-rw-
6458208
<no date>
c3725-i-mz
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
-rw-
6458208
<no date>
c3725-i-mz
16056320 bytes total (3139776 bytes free)
Router#
show slot0:
Slot0 CompactFlash directory:
File
Length
Name/status
1
6458208
c3725-i-mz.tmp [deleted]
2
6458208
c3725-i-mz
[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
.ELF
....
....
....