Manage Storage Devices
Configuration Condition
Before performing operations on storage devices, ensure that:
- The system has started normally.
Display the Information about a Storage Device
By displaying the information about a storage device, you can view the features of the storage device and the size of the remaining space.
Table 5-2 Displaying the Information about a Storage Device
Step
|
Command
|
Description
|
Enter the file system configuration mode.
|
filesystem
|
-
|
Display the information about a storage device.
|
volume
|
Mandatory
|
Format the Storage Devices
If the space of a storage device is unavailable, you can use the format command to format the storage device.
Table 5-3 Formatting a Storage Device
Step
|
Command
|
Description
|
Enter the file system configuration mode.
|
filesystem
|
-
|
Format a storage device.
|
format { /flash | /syslog | /usb }
|
Optional
|
-
Exercise caution in formatting a storage device, because the operation may cause permanent loss of all files on the storage device, and the files cannot be recovered.
Uninstall the Storage Device
When un-installing a storage device, first the command to un-install the file system, and then, you can un-install the storage device.
Table 5-4 Un-install a storage device
Step
|
Command
|
Description
|
Uninstall the storage device
|
fschange / usb | /sdcard remove
|
Mandatory
|
-
Before uninstalling a storage device, it is necessary to perform the pop-up processing on the storage device similar to that on Windows operating systems. If you do not perform the pop-up processing before uninstalling the storage device, it may cause an error prompt, or it may cause the file directory on the storage device to be destroyed and cannot be restored.
- In the storage device, the command only supports un-installing USB and SD card.