Restoring Deleted Files - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Working With the Flash File System on the Switch
To delete files from a Flash device, perform this task in privileged mode:
Task
Step 1
Delete a file from a Flash device.
Step 2
If desired, permanently remove all deleted files on the Flash device
(this operation can take a number of minutes to complete).
Step 3
Verify that the files are deleted.
This example shows how to delete a file from a Flash device:
Console> (enable) delete dns_config.cfg
Console> (enable)
This example shows how to permanently remove all deleted files from a Flash device:
Console> (enable) squeeze bootflash:
All deleted files will be removed, proceed (y/n) [n]? y
Squeeze operation may take a while, proceed (y/n) [n]? y
Erasing squeeze log
Console> (enable)

Restoring Deleted Files

You must specify the index number of a deleted file to restore it. 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:
Task
Step 1
Identify the index number of the deleted files on
the Flash device.
Step 2
Undelete a file on a Flash device.
Step 3
Verify that the file is restored.
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
1213952 bytes available (3231989 bytes used)
Console> (enable) undelete 6
Console> (enable) dir
-#- -length- -----date/time------ name
5
3231989 Jun 24 1999 12:04:40 cat4000.4-4-0-28.bin
6
1213952 bytes available (3231989 bytes used)
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
34-6
657a00
135 Jul 17 1999 11:30:05 dns_config.cfg
Chapter 34
Command
dir [[m/]device:][filename] deleted
undelete index [[m/]device:]
dir [[m/]device:][filename]
14
135 Jul 17 1999 11:30:05 dns_config.cfg
Working With the Flash File System
Command
delete [[m/]device:]filename
squeeze [m/]device:
dir [[m/]device:][filename]
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents