F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100

38
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.
The command does not support repartitioning of a partition.
The following matrix shows the values for the medium-name argument on different firewalls and UTM
devices:
Hardware Stora
g
e medium name
F1000-A-EI/F1000-S-EI Flash (it does not support partitioning)
F1000-E cfa0
F5000 cfa0
Firewall module cfa0
U200-A cfa0
U200-S cfa0
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
Partition 1 (32MB~224MB, 256MB, CTRL+C to quit, Enter to use all space left):
// Press Enter or enter 256.
cfa: will be divided into the following partition(s):
DeviceName Capacity
cfa0: 256MB
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 three partitions in an interactive way.
<Sysname> fdisk cfa: