

Sfdisk uses BLKRRPART (reread partition table) ioctl to make sure that the device is not used by system or other tools (see also -no-reread). It is necessary to explicitly create all partitions including whole-disk system partitions. Sfdisk does not create the standard system partitions for SGI and SUN disk labels like fdisk(8) does. In this case sfdisk entirely follows specified numbers without any optimization. If this default behaviour is unwanted (usually for very small partitions) then specify offsets and sizes in sectors. In this case sfdisk aligns all partitions to block-device I/O limits (or when I/O limits are too small then to megabyte boundary to keep disk layout portable). The recommended way is not to specify start offsets at all and specify partition size in MiB, GiB (or so). It is possible that partition size will be optimized (reduced or enlarged) due to alignment if the start offset is specified exactly in sectors and partition size relative or by multiplicative suffixes. Sfdisk (since version 2.26) aligns the start and end of partitions to block-device I/O limits when relative sizes are specified, when the default values are used or when multiplicative suffixes (e.g., MiB) are used for sizes. Note that fdisk(8) and cfdisk(8) completely erase this area by default. The option -wipe always disables this protection. Sfdisk protects the first disk sector when create a new disk label. CHS has never been important for Linux, and this addressing concept does not make any sense for new devices. Since version 2.26 sfdisk supports MBR (DOS), GPT, SUN and SGI disk labels, but no longer provides any functionality for CHS (Cylinder-Head-Sector) addressing. It runs in interactive mode if executed on a terminal (stdin refers to a terminal). Sfdisk is a script-oriented tool for partitioning any block device. Display or manipulate a disk partition table Synopsis
