From: Karel Zak Date: Thu, 23 Oct 2014 10:03:31 +0000 (+0200) Subject: fdisk: add section about sizes to the man page X-Git-Tag: v2.26-rc1~283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd211531e8b079380c3b041a4768005b63c42d78;p=thirdparty%2Futil-linux.git fdisk: add section about sizes to the man page Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594005 Signed-off-by: Karel Zak --- diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8 index 2ee5f64483..9ed342e4e1 100644 --- a/disk-utils/fdisk.8 +++ b/disk-utils/fdisk.8 @@ -130,6 +130,23 @@ is a device name followed by a partition number. For example, /dev/sda1 is the first partition on the first hard disk in the system. See also Linux kernel documentation (the Documentation/devices.txt file). +.SH SIZES +The "last sector" dialog accepts partition size specified by number of sectors +or by +{K,B,M,G,...} notation. + +If the size is prefixed by '+' then it is interpreted as relative to the +partition first sector. In this case the size is expected in bytes and the +number may be followed by the multiplicative suffixes KiB=1024, MiB=1024*1024, +and so on for GiB, TiB, PiB, EiB, ZiB and YiB. The "iB" is optional, e.g. "K" +has the same meaning as "KiB". + +The relative sizes are always aligned according to device I/O limits. The ++{K,B,M,G,...} notation is recommended. + +For backward compatibility fdisk also accepts the suffixes KB=1000, +MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB. These 10^N suffixes +are deprecated. + .SH DISK LABELS .B GPT (GUID Partition Table) .RS