Name
cfdisk
Synopsis
cfdisk [options] [device]System administration command. Partition a hard disk. Normally, device will be /dev/hda, /dev/hdb, /dev/sda, /dev/sdb, /dev/hdc, /dev/hdd, and so on. See also fdisk.
Options
- -a
Highlight the current partition with a cursor, not reverse video.
- -c cylinders
Specify the number of cylinders.
- -g
Ignore driver-provided geometry; guess one instead.
- -h heads
Specify the number of heads.
- -s sectors
Specify the number of sectors per track.
- -v
Print version number and exit.
- -z
Do not read the partition table; partition from scratch.
- -P format
Display the partition table in format, which must be r (raw data), s (sector order), or t (raw format).
Commands
- up arrow, down arrow
Move among partitions.
- b
Toggle partition’s bootable flag.
- d
Delete partition (allow other partitions to use its space).
- g
Alter the disk’s geometry. Prompt for what to change: cylinders, heads, or sectors (c, h, or s, respectively).
- h
Help.
- m
Attempt to ensure maximum usage of disk space in the partition.
- n
Create a new partition. Prompt for more information.
- p
Display the partition table.
- q
Quit without saving information.
- t
Prompt for a new filesystem type, and change to that type.
- u
Change the partition size units, rotating from megabytes to sectors to cylinders and back.
- W
Save information.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access