88
Removing a directory
To remove a directory, you must delete all files and subdirectories in this directory. To delete a file, use the
delete command. To delete a subdirectory, use the rmdir command.
Removing a directory permanently deletes all its files in the recycle bin, if any.
Perform this task in user view.
Task Command
Remove a directory. rmdir directory
Managing storage media
CAUTION:
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 a 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.
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.
Task Command
Repair a storage medium. fixdisk medium-name
Formatting a storage medium
CAUTION:
fter a storage medium is formatted, all files and directories on it are erased and cannot be restored.