SFDISK(8) sfdisk - sfdisk [] [-N -] sfdisk [] sfdisk . ( ). 2.26 sfdisk MBR (DOS), GPT, SUN SGI , CHS (--) . CHS , . sfdisk . --wipe always . fdisk(8) cfdisk(8) . sfdisk ( 2.26) / , (. MiB) . ( ) . MiB, GiB ( ). sfdisk / - ( / ). ( ), . sfdisk . sfdisk SGI SUN fdisk(8). . sfdisk BLKRRPART ( ) ,,ioctl" ( --no-reread). sfdisk system-udevd(8). --lock. system-udevd . sfdisk ( -N ), . . [-N, --partno partition-number] device sfdisk , . . , sfdisk . If the option -N or --partno is specified, then the changes are applied to the partition addressed by partition-number. The unspecified fields of the partition are not modified. -N. , 4 , . sfdisk -N. --append. -A, --activate [-...] . ,,-" . . , sfdisk . -, . --backup-pt-sectors . . --delete [-...] . -d, --dump sfdisk. . -g, --show-geometry [...] . --show-pt-geometry . -J, --json JSON . sfdisk JSON . -l, --list [...] . --verify. -F, --list-free [...] . --part-attrs _ [] . , . . , ,, ,50,51" . : 0 ( ) , . . . 1 ( ) . 2 ( ) -. 3-47 . . 48-63 . . 60 , 61 , 62 63 . --part-label - [] (). , . --part-type - [] . , . , , (. ,,linux") (. ,,L"). -c --id . --part-uuid - [] . , . --disk-id [] . , . . --discard-free (). --list-free . blkdiscard(8). Warning ! . ,,T" fdisk- . , sfdisk ( , ). -r, --reorder , . -s, --show-size [...] 1024 . blockdev(8). -T, --list-types --label. -V, --verify [...] . --relocate . . : gpt-bak-std . gpt-bak-mini . . -a, --append , . Note that in this case an unused partition may be re-used even though it is not the last partition in the partition table. See also -N for addressing a specific entry in the partition table. -b, --backup . ~/sfdisk--.bak; -O, --backup-file. . --bytes Print SIZE in bytes rather than in human readable format. --color[=] . auto, never always. " , auto. ; --help. . -f, --force . --Linux . ( ) . --lock[=] Use an exclusive BSD lock for the device or file that is operated upon. The optional argument mode can be yes (1), no (0), or nonblock. If the mode argument is omitted, it defaults to yes. This option overrides the environment variable $LOCK_BLOCK_DEVICE. The default is to not use any lock at all, but using a lock is recommended to avoid collisions with systemd-udevd(8) or other tools. -n, --no-act . --no-reread ,,ioctl"- . --no-tell-kernel . --no-reread . (. ). -O, --backup-file . . --move-data[=] , . , . -N . . / . @default sfdisk ~/sfdisk-<>.move . 2.35. . ! --move-use-fsync. , 100MiB (. ), ( 2048), ( ,,sdc1" ,,sdc2"). echo '+100M,' | sfdisk --move-data /dev/sdc -N 1 echo '2048,' | sfdisk /dev/sdc --append sfdisk /dev/sdc --reorder --move-use-fsync fsync(2) --move-data. -o, --output . --help . + (., -o +UUID). -q, --quiet . --sector-size . 512, 1024, 2048, 4096. K . , . ,,util-linux"- -2.17, fdisk . . -u, --unit S . . --show-size. -X, --label Specify the disk-label type (e.g., dos, gpt, ...). If this option is not given, then sfdisk defaults to the type of the existing label, but if there is no label on the device yet, then the type defaults to dos. This default may be overridden by the "label: " script-header line. The option --label does not force sfdisk to create an empty disk label (see the EMPTY DISK LABEL section below). -Y, --label-nested . . / - . -w, --wipe , - , . auto (), never () always (). , auto, ; never. auto ( ), always . . wipefs(8). -W, --wipe-partitions , - , . auto, never () always (). , auto, . . wipefs(8). -h, --help . -v, --version . sfdisk . . : <>: <> : . . label . dos gpt. label-id . ( 0x) . first-lba . . sfdisk . last-lba . . sfdisk . ,,last-lba" --force , . table-length . grain . 1MiB . . sector-size . sfdisk ( --sector-size). 2.39, sfdisk sector-size . . . , () , ; . , ; . , ,,-" . -N ( ), . / . 1 MiB. (KiB, MiB, GiB, TiB, PiB, EiB, ZiB YiB), . 2.38 -N ( ), ,,+" . ,, "; . . , (KiB, MiB, GiB, TiB, PiB, EiB, ZiB YiB), / . ,,+" . ,,+" ; . (DOS) 0x ; ; . ,,E" ,,0E" . sfdisk (. --part-type) . v2.36 ,,libfdisk" . (. ,,linux"). v2.37 ,,libfdisk" , -- - (. ,,Linux /usr x86" ,,linux usr-x86"). : L - alias 'linux' ; 83 0FC63DAF-8483-4772-8E79-3D69D8477DE4 . S - alias 'swap' ; 82 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F Ex - alias 'extended' ; 05 . ,,E" ,,0x0E" . H - alias 'home' ; 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 U - alias 'uefi' , C12A7328-F81F-11D2-BA4B-00A0C93EC93B R - alias 'raid' ; A19D880F-05FC-4D3B-A006-743F0F84911E V - alias 'lvm' ; 8E E6D6D379-F507-44C2-A23C-238F2A3DF928 linux. ,,X" (85) ,,Ex". [*|-], -. - - . , , (. ). . [ :] [=], ... . sfdisk . . --dump. . (., ,,name=" "). start= size= ,,+" ,,-" -. : start= / . 1 MiB. (KiB, MiB, GiB, TiB, PiB, EiB, ZiB YiB), . size= . (KiB, MiB, GiB, TiB, PiB, EiB, ZiB YiB), / . bootable . attrs= , . --part-attrs -. uuid= . name= . type= ( 0x) , , (. type="Linux /usr (x86)"). . Id= . sfdisk . . ,,label: <>" . : echo 'label: gpt' | sfdisk /dev/sdb . --append . . sfdisk . ,,sfdisk" --dump . sfdisk-. : sfdisk --dump /dev/sda > sda.dump : sfdisk /dev/sda < sda.dump sfdisk - . , - . , --backup-pt-sectors. ~/sfdisk-<>-<>.bak. --backup-file. . : sfdisk --backup-pt-sectors /dev/sda : dd if=~/sfdisk-sda-0x00000200.bak of=/dev/sda seek=$((0x00000200)) bs=1 conv=notrunc --backup sfdisk . , : sfdisk --backup --delete /dev/sda wipefs(8). sfdisk 2.26 -I . dd(1) . ,,terminal-colors.d(5)" . /etc/terminal-colors.d/sfdisk.disable sfdisk /etc/terminal-colors.d/disable 2.41, $_ . $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . , terminal-colors.d . sfdisk : . . . SFDISK_DEBUG=all ,,sfdisk" . LIBFDISK_DEBUG=all ,,libfdisk" . LIBBLKID_DEBUG=all, LIBSMARTCOLS_DEBUG=all ,,libsmartcols" . LIBSMARTCOLS_DEBUG_PADDING=on . ,,libblkid" . LOCK_BLOCK_DEVICE=<> . 1 0. --lock . 2.26 sfdisk -R --re-read . blockdev --rereadpt. 2.26 sfdisk --DOS, --IBM, --DOS-extended, --unhide, --show-extended, --cylinders, --heads, --sectors, --inside-outer, --not-inside-outer. sfdisk --list --label-nested=mbr /dev/sda . echo -e ',10M,L\n,10M,L\n,+,\n' | sfdisk /dev/sdc , , 10MiB, . echo -e 'size=10M, type=L\n size=10M, type=L\n size=+\n' | sfdisk /dev/sdc , . echo -e 'type=swap' | sfdisk -N 3 /dev/sdc 3 ,,swap". sfdisk --part-type /dev/sdc 3 swap , . sfdisk --delete /dev/sdc 2 2 . echo "+,+" | sfdisk -N 3 --move-data /dev/sdc , , . sfdisk sfdisk- . . fdisk(8), cfdisk(8), parted(8), partprobe(8), partx(8) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". sfdisk ,,util-linux" . util-linux 2.42.3 2026-09-02 SFDISK(8)