FDISK(8) FDISK(8) (NAME) fdisk - (SYNOPSIS) fdisk [] fdisk -l [...] (DESCRIPTION) fdisk GPT, MBR, Sun, SGI . BSD . () . (partition table) . ( BSD << >> ('disk slices') << >> ('disklabel') .) / (I/O) () . fdisk 4K (alignment offset) MBR GPT . fdisk ( ) +/-{M,G,...} . CHS (--) . fdisk -S -H SSD 4K . partx(8) fdisk . fdisk ( ) . (OPTIONS) -b, --sector-size sectorsize . 512, 1024, 2048 4096. . . util-linux-2.17 fdisk . sectorsize . -B, --protect-boot . GPT MBR . -c, --compatibility[=mode] 'dos' 'nondos'. non-DOS . mode -- . mode -c -c=dos . -L, --color[=when] . when auto, never always . when auto . --help . (COLORS) . -l, --list . /proc/partitions ( ) . /proc/partitions . -x, --list-details --list . --lock[=mode] BSD . mode yes, no ( 1 0) nonblock . mode yes . $LOCK_BLOCK_DEVICE . systemd-udevd(8) . -n, --noauto-pt . ( 'o' 'g' ) . -o, --output list . --help . list +list ( -o +UUID). -s, --getsz . blockdev(8) . -t, --type type type . -u, --units[=unit] ('sectors') ('cylinders') . . unit -- . unit -u '-u=cylinders' . -C, --cylinders number . . -H, --heads number ( ). . -S, --sectors number ( ). . -w, --wipe when RAID . when auto, never always . auto . . wipefs(8) . -W, --wipe-partitions when RAID . when auto, never always . auto . . wipefs(8) . -h, --help . -V, --version . (DEVICES) /dev/sda, /dev/sdb . . libata ( ATA) IDE SCSI . /dev/hd* ( IDE) /dev/sd* ( SCSI) . . /dev/sda1 . ( Documentation/admin-guide/devices.txt) . (SIZES) << >> (last sector) +/-{K,B,M,G,...} . '+' . '-' ( ) . KiB ( ) MiB (* ) GiB, TiB, PiB, EiB, ZiB YiB . "iB" "K" "KiB" . ( +100MiB) / (I/O) . +/-{K,B,M,G,...} . + + ( -1) . I/O . fdisk KB ( ) MB (* ) GB, TB, PB, EB, ZB YB . 10^N . (SCRIPT FILES) fdisk sfdisk(8) ( 'I') . . 'O' . cfdisk(8), sfdisk(8), fdisk libfdisk . sfdisk(8) . (DISK LABELS) GPT (GUID Partition Table) GPT . GPT UUID ( ) . GPT protective MBR () . GPT MBR . GPT MBR UEFI. DOS-type (MBR) DOS . ( <<>> `primary') . (extended) (logical) . . . DOS : ( ) // (Cylinders/Heads/Sectors) ( ++ ). -- . . C/H/S . . DOS C/H/S Windows Linux C/H/S . C/H/S fdisk . DOS DOS . fdisk . BSD/Sun-type BSD/Sun << >> (`whole disk') . ( swap) . BSD DOS . IRIX/SGI-type IRIX/SGI <<>> (`volume') << >> (`volume header') . . . . . IRIX/SGI IRIX/SGI . sync(2) ioctl(BLKRRPART) ( ) . DOS DOS 6.X (DOS MODE AND DOS 6.X WARNING) . (geometry) . DOS DOS '-c=dos -u=cylinders' fdisk . FORMAT DOS 6.x . FORMAT DOS DOS FDISK . DOS FORMAT /U -- DOS FORMAT DOS FDISK . fdisk cfdisk(8) DOS DOS FORMAT dd(1) . fdisk DOS /dev/sda1 fdisk ( ) dd if=/dev/zero of=/dev/sda1 bs=512 count=1 . fdisk . ( // ) MS-DOS . . fdisk . () . DOS . ( ). MS-DOS . OS/2 . . DOS DOS FDISK fdisk cfdisk(8) . (COLORS) terminal-colors.d(5) . : /etc/terminal-colors.d/fdisk.disable fdisk : /etc/terminal-colors.d/disable 2.41 $NO_COLOR . $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . terminal-colors.d . fdisk : header . help-title . warn . welcome . (ENVIRONMENT) FDISK_DEBUG=all fdisk. LIBFDISK_DEBUG=all libfdisk. LIBBLKID_DEBUG=all libblkid. LIBSMARTCOLS_DEBUG=all libsmartcols. LIBSMARTCOLS_DEBUG_PADDING=on . LOCK_BLOCK_DEVICE= BSD. mode "1" "0" . --lock . (AUTHORS) Karel Zak , Davidlohr Bueso Andries E. Brouwer, A. V. Le Blanc . (SEE ALSO) cfdisk(8), mkfs(8), partx(8), sfdisk(8) (REPORTING BUGS) : issue tracker . (AVAILABILITY) fdisk util-linux : Linux Kernel Archive . util-linux FDISK(8)