FDISK(8) FDISK(8) fdisk - fdisk [] I<> fdisk -l [...] fdisk -- , . GPT, MBR, Sun, SGI BSD. , . , , , 0 . ( BSD << >> << >>.) , - (). fdisk 4 MBR GPT. fdisk (, ), , +/-{M,G,...}, . CHS (Cylinder-Head-Sector --) . , , fdisk -S -H SSD 4 . , partx(8) , fdisk, , . fdisk . () . -b, --sector-size - . 512, 1024, 2048 4096. . , . util-linux-2.17, fdisk . -. -B, --protect-boot . GPT MBR. -c, --compatibility[=] , <> <> -DOS -- , ' -c . , , : <<-c=dos>>. -L, --color[=] . auto, never always. , auto. . --help. . . -l, --list . , , /proc/partitions ( ) , /proc/partitions. -x, --list-details --list, . --lock[=] BSD , . yes, no ( 1 0) nonblock. , "yes". $LOCK_BLOCK_DEVICE. , systemd-udevd(8) . -n, --noauto-pt . ( , <>, <> ). -o, --output , . --help, . , + (, -o +UUID) -s, --getsz 512- . . blockdev(8). -t, --type . -u, --units[=] (<>) (<>) - , ' -u . , , <<-u=cylinders>>. -C, --cylinders . , . -H, --heads . ( , , , .) 255 16. -S, --sectors . ( , , , .) 63. -w, --wipe , RAID , . auto, never always. , auto, , . . . wipefs(8). -W, --wipe-partitions , RAID , . auto, never always. , auto, , . . . wipefs(8). -h, --help . -V, --version . >, , _/dev/sda, /dev/sdb . . libata (, Linux ATA ) IDE SCSI. /dev/hd* (IDE) /dev/sd* (SCSI). , , /dev/sda1 . . Linux ( Documentation/admin-guide/devices.txt). << >> , +/-<>{K,B,M,G,...}. <<+>>, , . <<->>, , ( ). , , : KiB (=1024 ), MiB (=1024*1024 ) GiB, TiB, PiB, EiB, ZiB YiB ( <> ', <> , <>). , ( +100MiB), - . +/-<>{K,B,M,G,...}. <> <> ( -1), +<>. - . fdisk KB (1000 ), MB (1000*1000 ), GB, TB, PB, EB, ZB YB. 10^N . fdisk ( <>) sfdisk . ', , . , ' <>. cfdisk(8), sfdisk(8), fdisk libfdisk. sfdisk(8). GPT (GUID Partition Table) GPT - . GPT 64- , , UUID ( , , 128 ). , GPT MBR. GPT , MBR. GPT MBR, UEFI. DOS- (MBR) DOS- 0 4 ( <<>>). . , ' , . , , 1-4. 5. DOS- : ( 32 ) // ( 10+8+6 ). - 512- 2 . . , // , . - , , 24 . DOS //, Windows - , Linux //. // , fdisk. , DOS, DOS . , fdisk . BSD/Sun- BSD/Sun 8 , << >>. , ( ' ) 0, . , BSD, , DOS. IRIX/SGI- IRIX/SGI 16 , <<>>, ' << >> , , , ' . . . , . , Linux IRIX/SGI IRIX/SGI Linux. , sync(2) ioctl(BLKRRPART) ( ). DOS DOS 6.X , . , . DOS, DOS - fdisk <<-c=dos -u=cylinders>>. FORMAT DOS 6.x . FORMAT DOS FDISK DOS 512 . FORMAT DOS , /U - FORMAT DOS FDISK DOS. , fdisk cfdisk(8) DOS, dd(1) 512 FORMAT DOS . , fdisk DOS /dev/sda1, , ( fdisk Linux, ) dd if=/dev/zero of=/dev/sda1 bs=512 count=1 512 . , fdisk . ' (, , , //), , MS-DOS . , , , Linux . , , fdisk . Linux , () . , DOS, . , , ( ). MS-DOS , , 2 . , 1, , , ' OS/2. . , DOS FDISK DOS, Linux fdisk Linux cfdisk(8) Linux. terminal-colors.d(5). /etc/terminal-colors.d/{}.disable {} /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, : header . help-title . warn . welcome . FDISK_DEBUG=all fdisk. LIBFDISK_DEBUG=all libfdisk. LIBBLKID_DEBUG=all libblkid. LIBSMARTCOLS_DEBUG=all libsmartcols. LIBSMARTCOLS_DEBUG_PADDING=on . LOCK_BLOCK_DEVICE=<> BSD. <<1>> <<0>>. . --lock, . Karel Zak , Davidlohr Bueso Andries E. Brouwer, A. V. Le Blanc . cfdisk(8), mkfs(8), partx(8), sfdisk(8) fdisk util-linux, Linux . util-linux 2.41 2025-03-29 FDISK(8)