Skip to contentSkip to conversation

SGI disk labels show wrong device

DISCUSSION Phillip Susi 2 participants 2 messages Nov 14, 2013 – Nov 19, 2013 Util-Linux package

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Parted lists the device name using the wrong partition number:

Disk /dev/sde: 8 MiB, 8388608 bytes, 16384 sectors
Geometry: 8 heads, 32 sectors/track, 64 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 32768 bytes Disklabel type: sgi

Pt# Device Info Start End Sectors Id System

 9: /dev/sde1          0      4095    4096  0 SGI volhdr
11: /dev/sde2          0     16383   16384  6 SGI volume

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJShRN9AAoJEJrBOlT6nu75Q80H/0/cu1cCm4l6RDfsMgFkDyG9 SxX3f4sUWJYsmOxA6EvzQpCkltWqYopqOpFjT4GLAhzij6cxTS55RE9x6sjcJOei B7JJTqSc7+4ah5endSFGblD0OMR3SG8iBpTIcvOKChMT9j/a59i6gcokfdUOOxXQ NE3Vk2aC3k3eUhGKKly12DCdubKsRGMxhw2PFktyKjmQjECGtHUH12GsorFugzpq iMIjxGGKenFXw46wLUey9BHCjwvc+7TspcDzkcnGTwCPrCWX1uICa8KZ6I5jeki4 HlbP3jm+imLSPDVIhjzNm8yCMscdcnAwHCvFQxp4KR3NJmL3wnjuJnbFHfwT93Y= =q6v4
-----END PGP SIGNATURE-----

maintainer
#1 lore raw
Quoted 12 lines · Phillip Susi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Parted lists the device name using the wrong partition number:

Disk /dev/sde: 8 MiB, 8388608 bytes, 16384 sectors
Geometry: 8 heads, 32 sectors/track, 64 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 32768 bytes Disklabel type: sgi

Quoted 3 lines

Pt# Device Info Start End Sectors Id System

 9: /dev/sde1          0      4095    4096  0 SGI volhdr
11: /dev/sde2          0     16383   16384  6 SGI volume

Fixed. It seems that the original fdisk author has expected the Linux kernel will count only valid partitions, but we always count all slots.

Thanks!

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com