F3215-HP Load Balancing Module System Maintenance Command Reference-6PW101
105
Examples
# Execute the batch file test.bat in the root directory.
<Sysname> system-view
[Sysname] execute test.bat
fdisk
Use fdisk to partition a storage medium.
Syntax
fdisk medium-name [ partition-number ]
Views
User view
Default command level
3: Manage level
Parameters
medium-name: Name of the storage medium to be partitioned. It cannot be the name of a partition.
partition-number: Number of partitions, in the range of 1 to 4. Extended partitioning is not supported.
Usage guidelines
If partition-number is specified, the storage medium is divided into the specified number of partitions;
otherwise, partitioning is performed in an interactive way.
The device automatically formats each partition after partitioning is completed and all data on the
storage medium is lost after this command is successfully executed.
Before removing a partitioned storage medium, unmount all the partitions. Otherwise, the file system on
the storage medium might be damaged.
Before partitioning a USB disk, make sure the disk is not write protected; otherwise, the partition
operation fails, and you must remount or re-plug the disk to restore normal access to the USB disk.
The command does not support repartitioning of a partition.
Examples
# Divide the CF card on the device evenly into three partitions in simple mode.
<Sysname> fdisk cfa: 3
The capacity of cfa: : 256M bytes
cfa: will be divided into the following partition(s):
DeviceName Capacity
cfa0: 85MB
cfa1: 85MB
cfa2: 86MB
All data on cfa: will be lost, proceed with fdisk? [Y/N]:y
% Now begin to fdisk cfa:, please wait... done.
Reset (default) paths for files as needed, such as log file, ftp root directory, etc.
# Divide the CF card on the device into one partition in an interactive way.
<Sysname> fdisk cfa:
The capacity of cfa: : 256M bytes