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, with an interactive user interface rather than the traditional fdisk's Q&A interface. You can easily use the arrow keys to control partition operations.
Syntax
cfdisk [-avz][-c <柱面数目>-h <磁头数目>-s <盘区数目>][-P <r,s,t>][外围设备代号]
Parameter description:
- -a Use arrows instead of highlighting to indicate selection in the program.
- -c<cylinder number> Ignore the BIOS value and directly specify the number of disk cylinders.
- -h<head number> Ignore the BIOS value and directly specify the number of disk heads.
- -P<r,s,t> Display the contents of the partition table. The additional parameter "r" displays detailed information about the entire partition table, "s" displays relevant information in sector order, and "t" displays data in terms of heads, sectors, and cylinders.
- -s<sector number> 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 as a new one without partitions.
Examples
Perform disk partitioning:
# cfsik
Perform disk partitioning, using arrows for operation instead of highlighting:
# cfsik -a
Perform disk partitioning, using arrows for operation instead of highlighting:
# cfsik -s 3Other Extensions
Complete Linux Commands