FDISK(8) fdisk - fdisk [] fdisk -l [...] fdisk . GPT, MBR, Sun, SGI BSD . . , 0 . ( ,, " ,, ".) / () . fdisk 4K- MBR GPT. fdisk- (., ) ,,+/-<>{M,G,...}" . CHS (Cylinder-Head-Sector) addressing is deprecated and not used by default. Please, do not follow old articles and recommendations with fdisk -S -H advice for SSD or 4K-sector devices. partx(8) , fdisk . fdisk- . () . -b, --sector-size - Specify the sector size of the disk. Valid values are 512, 1024, 2048, and 4096. The kernel is aware of the sector size for regular block devices. Use this option only on very old kernels, when working with disk images, or to override the kernel's default sector size. Since util-linux-2.17, fdisk distinguishes between logical and physical sector size. This option changes both sector sizes to the specified sectorsize. -B, --protect-boot . GPT MBR. -c, --compatibility[=mode] , ,,dos" ,,nondos". - . , - . -c , -c=dos. -L, --color[=when] . auto, never always. " , auto. ; --help. . -l, --list . , /proc/partitions ( ) . , /proc/partitions. -x, --list-details --list, . --lock[=mode] . yes (), no () ( 1 0) nonblock (_). , "yes" (). $LOCK_BLOCK_DEVICE. , systemd-udevd(8) . -n, --noauto-pt . ( ,,o", ,,g", .). -o, --output . --help . + (., -o +UUID). -s, --getsz 512- . blockdev(8). -t, --type , . -u, --units[=unit] , ,," ,,". . , - . -u , '-u='. -C, --cylinders . ( ). -H, --heads . ( , , .) 255 16. -S, --sectors . ( , , .) 63. -w, --wipe , - , . auto, never () always (). , auto, . . wipefs(8). -W, --wipe-partitions , - , . auto, never () always (). , auto, . . wipefs(8). -h, --help . -V, --version Display version and exit. /dev/sda, /dev/sdb . . ,,libata" ( ) IDE SCSI . /dev/hd* (IDE) /dev/sd* (SCSI). . , /dev/sda1 . ( ,,Documentation/admin-guide/devices.txt"). ,, " +/-<>{K,B,M,G,...}. ,,+" . ,,-" ( ). KiB (1024 ), MiB (1024*1024 ) GiB, TiB, PiB, EiB, ZiB YiB. ,,iB" , ., ,,K" ,,KiB". The relative sizes if specified with multiplicative suffixes (e.g. +100MiB) are always aligned according to device I/O limits. The +/-{K,B,M,G,...} notation is recommended. The last sector of the partition is strictly calculated as + (without -1) if the size is specified by the + notation. In this case, the size is not aligned to the device I/O limits. fdisk KB (1000 ), MB (1000*1000 ) GB, TB, PB, EB, ZB YB. 10^N . fdisk ( ,,I") sfdisk(8) . , . ,,". cfdisk(8), sfdisk(8) fdisk ,,libfdisk" . sfdisk(8). GPT ( ) . 64- , , - ( 128 ). . - . -, . - () - . 0 4 ( ,,"). ; , , . , , 1 4. 5. - : ( 32 ), // ( 10+8+6 ). - 512- 2 TB. . , // . , , 24 . //, , //. // fdisk-. - - . fdisk . BSD/Sun- ,,BSD/Sun" 8 , ,, ". ( ) 0, . . IRIX/SGI- ,,IRIX/SGI" 16 , ,,", ,, ". , ., . . . , . ,,IRIX/SGI" ,,IRIX/SGI" . sync(2) ,,ioctl(BLKRRPART)" ( ) . 6.X . . - ,,-c=dos -u=" ,,fdisk"-. 6.x , . ,,DOS FDISK" 512 . ,,/U" - - ,,DOS FDISK"-. fdisk cfdisk(8) , dd(1) 512 - . , fdisk /dev/sda1, ( fdisk- ) dd if=/dev/zero of=/dev/sda1 bs=512 count=1 512 . fdisk . (, , ,,//", - . , . , , fdisk . , () . , . , ( ). -- , 2 . 1 , OS/2 . , . , ,,DOS FDISK" fdisk cfdisk(8). ,,terminal-colors.d(5)" . /etc/terminal-colors.d/fdisk.disable fdisk /etc/terminal-colors.d/disable Since version 2.41, the $NO_COLOR environment variable is also supported to disable output colorization unless explicitly enabled by a command-line option. $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . , terminal-colors.d . fdisk : . - . . . FDISK_DEBUG=all ,,fdisk" . LIBFDISK_DEBUG=all ,,libfdisk" . LIBBLKID_DEBUG=all ,,libblkid" . LIBSMARTCOLS_DEBUG=all ,,libsmartcols" . LIBSMARTCOLS_DEBUG_PADDING=on . LOCK_BLOCK_DEVICE=<> . 1 0. --lock . Karel Zak , Davidlohr Bueso . , . . . cfdisk(8), mkfs(8), partx(8), sfdisk(8) For bug reports, use the issue tracker . fdisk ,,util-linux" . util-linux 2.41 2025-03-29 FDISK(8)