English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux cfdisk command

Linux Command Manual

The Linux cfdisk command is used for disk partitioning.

cfdisk is a program used for disk partitioning. It is very similar to DOS's fdisk and has an interactive operation interface instead of the question-and-answer interface of traditional fdisk. You can easily use the arrow keys to control partition operations.

Syntax

cfdisk [-avz][-c <zone number>-h <head number>-s <zone number>][-P <r,s,t>][Peripheral Device Code]

Parameter Description:

  • -a In the program, use arrows to represent selection instead of inversion.
  • -c<zone number> Ignore the BIOS value and directly specify the number of zones of the disk.
  • -h<head number> Ignore the BIOS value and directly specify the number of heads of the disk.
  • -P<r,s,t> Display the content of the partition table. Additional parameter "r" will display detailed information of the entire partition table, additional parameter "s" will display relevant information in the order of zones, and additional parameter "t" will display information in the order of heads, zones, and cylinders.
  • -s<zone number> Ignore the BIOS value and directly specify the number of zones of the disk.
  • -v Display version information.
  • -z Do not read the existing partitions, use them as new disks without partitions directly.

Online Examples

Partition the disk:

# cfsik

Partition the disk, use arrows for operations instead of inversion:

# cfsik -a

Partition the disk, use arrows for operations instead of inversion:

# cfsik -s 3

Linux Command Manual