86
Remove a directory.
rmdir
directory
Managing storage media
To avoid file system corruption
:
Do not install or remove storage media or perform master/subordinate switchover while the system
is repairing, formatting, partitioning, mounting, or unmounting a storage medium.
If you remove a storage medium while a folder or file on the storage medium is being accessed, the
device might not recognize the storage medium when you reinstall it. To reinstall this kind of storage
medium, complete one of the following tasks:
If you were accessing a folder on the storage medium, change the current directory.
If you were accessing a file on the storage medium, close the file.
If another administrator was accessing the storage medium, unmount all partitions on the
storage medium.
Before you repair or format a USB disk, make sure the disk is not write protected.
You cannot access a storage medium while another user is repairing, formatting, or partitioning the
medium.
To access a storage medium after the medium is repaired, formatted, or partitioned, use one of the
following methods:
Specify the storage medium name for the command. For example, use dir flash:/ to display all
files and folders on the flash memory.
Use the cd command to change to the storage medium before using the command. For
example, use cd flash:/ to change to the root directory of the flash memory, and then use dir to
display all files and folders.
Repairing a storage medium
If part of a storage medium is inaccessible, use the fixdisk command to examine and repair the
medium.
Before repairing a storage medium, make sure no other users are accessing the medium. Otherwise,
the repair operation fails.
Perform this task in user view.
Repair a storage medium.
fixdisk
medium-name
Formatting a storage medium
After a storage medium is formatted, all files and directories on it are erased and cannot be restored.