From fd211531e8b079380c3b041a4768005b63c42d78 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 Oct 2014 12:03:31 +0200 Subject: 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 --- disk-utils/fdisk.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'disk-utils/fdisk.8') diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8 index 2ee5f6448..9ed342e4e 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 -- cgit v1.2.3-55-g7522