R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
24
Creating a directory
Task Command
Remarks
Create a directory. mkdir directory Available in user view
Removing a directory
To remove a directory, you must delete all the files and the subdirectory in this directory. To delete a file,
use the delete command; to delete a subdirectory, use the rmdir command.
The rmdir command automatically deletes the files in the recycle bin in the current directory.
To remove a directory:
Task Command
Remarks
Remove a directory. rmdir directory Available in user view
Managing storage media
Storage media management includes space assignment, storage media mounting and unmounting, and
space partitioning.
The name of a storage medium follows the following rules:
• If a storage medium is the only storage medium of its type on the device, it is named by its type. For
example, if the device has only one Flash, the name of the Flash is flash.
• If multiple storage media of the same type exist on the device, the physical device name of a storage
medium is composed of the storage medium type and the sequence number of the storage medium.
A sequence number is an English letter such as a, b, or c. For example, for a device with multiple
CF cards, the physical device name of the first CF card is cfa, and that of the second is cfb, and so
on.
• If a storage medium is partitioned, the name of a partition is composed of the physical device name
and the partition number. The sequence numbers of partitions are numbers such as 0, 1 and 2. For
a device with only one CF card for example, the name of the second partition of the CF card is cf1;
for a device with multiple CF cards, the name of the third partition of the second CF card is cfb2.
If there is only one partition on a CF card, the partition name is the physical device name followed
by 0.
Managing storage medium space
If part of a storage medium is inaccessible, use the fixdisk command to examine the medium for any
damage and repair the medium.
To format a storage medium that has been partitioned, you must format all the partitions individually,
instead of formatting the medium as a whole.