[Bug 874239] Re: util-linux fdisk mixes size terminology (G=gigabyte, gibibyte?)
Pych
ingoledipak at ymail.com
Wed May 8 13:34:33 UTC 2013
why does the size displayed using fdisk differs from the size calculated
by converting sector size.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/874239
Title:
util-linux fdisk mixes size terminology (G=gigabyte,gibibyte?)
Status in The Util-Linux-ng Set of Utilities:
New
Status in “util-linux” package in Ubuntu:
Opinion
Bug description:
fdisk -p reports "2000.4 GB". The value printed is in gigabytes.
When creating a new partition the user has the option of entering the
size as "+sizeG". This value is interpreted in gibibytes.
Oddly, Karel Zak - the maintainer of util-linux - apparently fixed
this back in 2007. Either the patch did not make it into the upstream
source tree, or the Ubuntu version has dropped it somewhere. See
http://osdir.com/ml/linux.utilities.util-linux-
ng/2007-12/msg00053.html
Example follows.
Command (m for help): p
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
224 heads, 56 sectors/track, 311465 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x188f7216
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-3907029167, default 2048): +1864G
Value out of range.
First sector (2048-3907029167, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-3907029167, default 3907029167): +1864G
Value out of range.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-3907029167, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-3907029167, default 3907029167): +1863G
Command (m for help)
To manage notifications about this bug go to:
https://bugs.launchpad.net/util-linux-ng/+bug/874239/+subscriptions
More information about the foundations-bugs
mailing list