[Bug 874239] [NEW] util-linux fdisk mixes size terminology (G=gigabyte, gibibyte?)
Launchpad Bug Tracker
874239 at bugs.launchpad.net
Fri Oct 14 13:57:03 UTC 2011
You have been subscribed to a public bug:
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)
** Affects: util-linux-ng
Importance: Undecided
Status: New
** Affects: util-linux (Ubuntu)
Importance: Undecided
Status: New
--
util-linux fdisk mixes size terminology (G=gigabyte,gibibyte?)
https://bugs.launchpad.net/bugs/874239
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to util-linux in Ubuntu.
More information about the foundations-bugs
mailing list