[Bug 945433] Re: Incorrect GPT length should be handled better

Ahmad Moawya ahmadmoawya at gmail.com
Tue Aug 7 23:30:47 UTC 2012


@Roderick:
Sorry, I didn't give enough details. I did use the v option to verify and got the following:

No problems found. 526373 free sectors (257.0 MiB) available in 3
segments, the largest of which is 264223 (129.0 MiB) in size.

and with the p command, I got:

Disk /dev/disk0: 312579695 sectors, 149.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 777989DA-9962-2B05-18B6-4865BE87B817
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 312581774
Partitions will be aligned on 8-sector boundaries
Total free space is 526373 sectors (257.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  
   2          409640        42101263   19.9 GiB    AF00  Apple_HFS_Untitled_2ae4
   3        42363408       312317551   128.7 GiB   AF00 

I think that after all this reading and testing, it's safe to assume
that gdisk is off the hook, and by that I mean its bug-free :D

BTW, I'd like to use this chance to thank you for the amazing gdisk tool
you made. It's probably the most advanced GPT disk utility available.

@Everyone, I think we can all agree that whether the kernel is handling
the HPA correctly or not, parted must be patched to better handle this
scenario.

For the mean time, I'll be flagging the gdisk bug as invalid (till an
admin deletes it) since I now believe it's actually handling the disk
correctly and the problem is basically that parted cannot handle the
disk without the kernel disabling HPA (like older kernel did in 10.04).


** Changed in: gdisk (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/945433

Title:
  Incorrect GPT length should be handled better

Status in “gdisk” package in Ubuntu:
  Invalid
Status in “parted” package in Ubuntu:
  Triaged

Bug description:
  The GPT LastUsableLba claims the disk is longer than it actually is.
  Parted should handle this error more gracefully and allow for
  repairing it.  gdisk seems to let the error go undetected, possibly
  because it is using the size in the protective MBR rather than
  LastUsableLba.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdisk/+bug/945433/+subscriptions




More information about the foundations-bugs mailing list