121
Before you repair a storage medium, make sure no other users are accessing the medium. Otherwise, the
repair operation fails.
Examples
# Restore the space of the Flash.
<Sysname> fixdisk flash:
Restoring flash: may take some time...
Restoring flash:...Done.
format
Use
format
to format a storage medium.
Syntax
format
medium-name
Views
User view
Predefined user roles
network-admin
Parameters
medium-name
: Specifies the name of a storage medium.
Usage guidelines
Formatting a storage medium permanently deletes all files on the storage medium. If a startup
configuration file exists on the storage medium, back it up if necessary.
To format a partitioned storage medium, you must format the partitions individually. You cannot use the
format usb
command to format the medium as a whole.
You can format a storage medium only when no one is accessing the medium.
Examples
# Format the Flash.
<Sysname> format flash:
All data on flash: will be lost, continue? [Y/N]:y
Formatting flash:... Done.
# Format the third partition of the USB disk.
<Sysname> format usb2:
All data on usb2: will be lost, continue? [Y/N]:y
Formatting usb2:... Done.
gunzip
Use
gunzip
to decompress a file.
Syntax
gunzip
filename