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

Phillip Susi psusi at ubuntu.com
Wed Aug 8 03:53:25 UTC 2012


Actually it is the reverse Ahmad.  10.04 disabled the HPA, making use of
the full disk.  Thus, parted compared the larger, true disk size with
what the GPT claimed, and was happy since they agreed.  12.04 respects
the HPA like MacOS and Windows do ( unless it detects a partition that
claims to use the protected space, then it disables the HPA to allow
access to that partition ).  This causes the GPT size to disagree with
the HPA limited size the kernel uses, and so parted barfs.  In this
situation, parted *should* issue a warning and offer to fix the error.

I too was able to run the gdisk verify command on an image with the
smaller size without complaint so while it is possible my assumption
about gdisk is wrong, it is clear that it is doing *something* wrong
since it should be complaining when the image is the smaller size,
rather than when it is the larger size.  Looking at the sizes in both
the GPT and the MBR, only the MBR seemed to agree with the smaller size,
so it seemed a good assumption that gdisk was using that size.


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

-- 
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:
  New
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