24-6
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
This example shows how to upload a configuration file on a Flash device to a TFTP server:
Console> (enable)
copy slot0:6000_config.cfg tftp
IP address or name of remote host []? 172.20.52.3
Name of file to copy to [6000_config.cfg]?
/
File has been copied successfully.
Console> (enable)
This example shows how to upload an image from a remote host into Flash using rcp:
Console> (enable)
copy rcp flash
IP address or name of remote host []?
172.20.52.3
Name of file to copy from []?
6000_config.cfg
Flash device [bootflash]?
Name of file to copy to [6000_config.cfg]?
4369664 bytes available on device bootflash, proceed (y/n) [n]?
y
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCC
File has been copied successfully.
Console> (enable)
Deleting Files
Caution
If you enter the
squeeze
command on a Flash device, you cannot restore files deleted prior to the
squeeze
command.
To delete files on a Flash device, perform this task in privileged mode:
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 slot0:
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)
Task
Command
Step 1
Delete a file on a Flash device.
delete
[[
m
/
]
device:
]
filename
Step 2
If desired, permanently remove all deleted files on
the Flash device (this operation can take a number
of minutes to complete).
squeeze
[
m
/
]
device:
Step 3
Verify the files are deleted.
dir
[[
m
/
]
device
:
][
filename
]