R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
41
Default level
3: Manage level
Parameters
device: 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.
Description
Use fdisk to partition a storage medium.
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 partitions; otherwise, the file system on the
storage medium might be corrupted.
This command does not support partitioning a partition.
The following matrix shows the command and firewall compatibility:
Command F1000-A-EI/S-EI
F1000-E
F5000 Firewall module
fdisk No Yes Yes Yes
Examples
# Divide the CF card on the device evenly into three partitions.
<Sysname> fdisk cfa: 3
The capacity of cfa: : 495M bytes.
cfa: will be divided into the following partition(s):
DeviceName Capacity
cfa0: 165MB
cfa1: 165MB
cfa2: 165MB
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.