82
Managing storage medium space
When the space of a storage medium becomes inaccessible, you can use the fixdisk command to
examine the medium for damage and repair any damage.
The format command formats the storage medium, and all data on the storage medium is deleted.
CAUTION:
fter a storage medium is formatted, all files on it are erased and cannot be restored. If a startup
confi
uration file exists on the stora
e medium, formattin
the stora
e medium results in loss of the startup
configuration file.
To manage the space of a storage medium, perform the following tasks in user view:
Task Command Remarks
Repair a storage medium. fixdisk device N/A
Format a storage medium. format device N/A
Performing batch operations
A batch file comprises a set of executable commands. Executing a batch file is the same as executing the
commands one by one. However, execution of a batch file does not guarantee successful execution of
every command in the batch file. If a command has error settings or the conditions for executing the
command are not met, the system skips this command.
You can edit a batch file on your PC, and then upload or download it to the device. If the extension of
the file is not .bat, use the rename command to change it to .bat.
To execute a batch file:
Step Command
1. Enter system view.
system-view
2. Execute a batch file.
execute filename
Setting the file system operation mode
The file systems support the following operation modes:
• alert—The system warns you about operations that might cause problems such as file corruption
and data loss. To prevent incorrect operations, use the alert mode.
• quiet—The system does not prompt for any operation confirmation.
To set the file system operation mode:
Step Command Remarks
1. Enter system view.
system-view N/A