Partitioning a USB disk
A USB disk can be divided into logical devices called partitions. Operations on one partition do not affect the other partitions.
The following partitioning modes are available for USB disks:
Simple—Specify the number of partitions. The system divides a USB disk into the specified number of partitions with the same size.
Interactive—The system partitions a USB disk according to user input. Each partition must have a minimum of 32 MB of storage space.
Restrictions and guidelines
It is normal that the specified partition size and the actual partition size have an error less than 5% of the total memory.
Before partitioning a USB disk, perform the following tasks:
Back up the files in the storage medium. The partition operation clears all data in the medium.
If you are partitioning a USB disk, make sure the disk is not write protected. Otherwise, the partition operation will fail, and you must remount or reinstall the disk to restore access to the USB disk.
Make sure no other users are accessing the medium. Otherwise, the partition operation fails.
After partitioning a USB disk, perform the following tasks:
Reconfigure paths of application files to include the correct partition information.
To make sure the first partition has sufficient storage space for startup system software image and configuration files, set the log file path to a different partition. By default, the system automatically saves log files to the second partition. If the path does not exist, use the info-center logfile directory command to change the path to avoid log loss. For more information about this command, see Network Management and Monitoring Command Reference.
Configuration procedure
Perform this task in user view.
Task | Command | Remarks |
---|---|---|
Partition a storage medium. | fdisk medium-name [ partition-number ] | By default, only one partition usba0: is available on a USB disk. |