Linux cfdisk Command
The Linux cfdisk command is used for disk partitioning.
cfdisk is a program for disk partitioning. It is very similar to DOS's fdisk, but has an interactive interface rather than the traditional question-and-answer interface of fdisk, so you can easily use the arrow keys to control partition operations.
Syntax
cfdisk [-avz][-c <柱面数目>-h <磁头数目>-s <盘区数目>][-P ][外围设备代号]
Parameter Description:
- -a In the program, use arrows instead of highlighting to indicate selection.
- -c
Ignore the BIOS value and directly specify the number of disk cylinders. - -h
Ignore the BIOS value and directly specify the number of disk heads. - -P
Display the contents of the partition table. The additional parameter "r" shows details of the entire partition table, "s" displays information in sector order, and "t" displays data in terms of heads, sectors, and cylinders. - -s
Ignore the BIOS value and directly specify the number of disk sectors. - -v Display version information.
- -z Do not read existing partitions; treat the disk directly as a new disk with no partitions.
Example
Perform disk partitioning:
# cfsik
Perform disk partitioning using arrows rather than highlighting:
# cfsik -a
Perform disk partitioning using arrows rather than highlighting:
# cfsik -s 3
Linux Command Reference