24-7
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 24 Working With the Flash File System
Working with the Flash File System
Restoring Deleted Files
You must specify the index number of a deleted file to identify the file to undelete. The index number
for each file appears in the first column of the
dir
command output. A file cannot be undeleted if a valid
file with the same name already exists. Instead, you must delete the existing file and then undelete the
desired file. A file can be deleted and undeleted up to 15 times.
To restore deleted files on a Flash device, perform this task in privileged mode:
This example shows how to restore a deleted file:
Console> (enable)
dir deleted
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
6 .D ffffffff 42da7f71 657a00 14 135 Jul 17 1998 11:30:05 dns_config.cfg
1213952 bytes available (6388224 bytes used)
Console> (enable)
undelete 6
Console> (enable)
dir
-#- -length- -----date/time------ name
4 3134688 Apr 27 1998 08:27:01 cat6000-sup.5-2-1.bin
5 3231989 Jun 24 1998 12:04:40 cat6000-sup.5-2-1.bin
6 135 Jul 17 1998 11:30:05 dns_config.cfg
1213952 bytes available (6388224 bytes used)
Console> (enable)
Verifying a File Checksum
To verify the checksum of a file on a Flash device, perform this task in privileged mode:
This example shows how to verify the checksum of a file:
Console> (enable)
verify cat6000-sup.5-2-1-CSX.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCC
File bootflash:cat6000-sup.5-2-1-CSX.bin verified OK
Console> (enable)
Task
Command
Step 1
Identify the index number of the deleted files on
the Flash device.
dir
[[
m
/
]
device
:
][
filename
]
deleted
Step 2
Undelete a file on a Flash device.
undelete
index
[[
m
/
]
device
:]
Step 3
Verify that the file is restored.
dir
[[
m
/
]
device
:
][
filename
]
Task
Command
Verify the checksum of a file on a Flash device.
verify
[[
m
/
]
device:
]
filename