Implementing Additional Configuration and Maintenance Tasks
You can delete a file from any Flash memory media using the delete filename command, where filename is any file within Flash memory. An example of deleting the file fun1 from the Flash memory card or Flash disk in slot 0 follows:
Router# | delete fun1 |
|
| |||
Router# | dir |
|
|
|
| |
1 | 4601977 | May | 10 | 1997 | 09:42:19 myfile1 | |
6 | 679 |
| May | 10 | 1997 | 05:43:56 |
Files that are deleted are marked as deleted, but still occupy space in Flash memory. The command squeeze
Note The squeeze command is used with Flash memory cards only. This command is not needed when using Flash disks.
An example of the squeeze command follows:
Router# squeeze slot0:
All deleted files will be removed, proceed? [confirm] Squeeze operation may take a while, proceed? [confirm] ebESZ
To prevent loss of data from sudden power loss, the “squeezed” data is temporarily saved to another location of Flash memory, which is specially used by the system.
The meanings of the characters in the preceding command display output as follows:
•
•
•
•
•
The squeeze command operation keeps a log of which of these functions was performed, so that in case of sudden power failure, it can return to the correct place and continue with the process.
The configuration register setting 0x0101 tells the system to boot the default image (the first image) from onboard Flash memory, but not reset the Break disable or check for a default filename to be booted over the network. The configuration register setting 0x0102 tells the system to boot from Flash memory if netboot fails, then disable Break and check for a default netboot filename.
For more information on the copy tftp:filename [bootflash: slot0: slot1:]filename command and other related commands, refer to the set of configuration and reference publications.
Enabling Booting from Flash Memory
To enable booting from Flash memory, set configuration register bits 3, 2, 1, and 0 to a value between 2 and 15 in conjunction with the boot system flash
(ATA Flash disk cards) and filename is the name of the file from which you want to boot the system.
To enter configuration mode while in the system software image and specify a Flash filename from which to boot, enter the configure terminal command at the enable prompt as follows:
Router#configure terminal
Flash Disks and Flash Memory Cards in the GRP
40 |
| |
|