[Bug 945433] Re: gparted crashes on scanning GPT formatted drive

Phillip Susi psusi at ubuntu.com
Tue Aug 7 15:17:16 UTC 2012


Your partition table is indeed corrupt.  It claims the disk should be
312581808 sectors long, not 312579695.  It seems that gdisk fails to
detect and diagnose this error.  Parted should handle this error more
gracefully than it does.  It seems that current upstream parted just
refuses to recognize the partition table rather than crashing with an
assertion failure.  Patching parted to be able to correct such an error
has been on my todo list.


** Package changed: gparted (Ubuntu) => parted (Ubuntu)

** Changed in: parted (Ubuntu)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu)
       Status: Confirmed => Triaged

** Summary changed:

- gparted crashes on scanning GPT formatted drive
+ Incorrect GPT length should be handled better

** Changed in: parted (Ubuntu)
   Importance: Medium => Low

** Description changed:

- Gparted (0.11.0-1) crashes whilst scanning drives when opened normally.
- I opened up terminal and specified each device in turn - it can scan -
- and indeed work normally with - all of my drives (2 external, 1
- internal, all NTFS formatted) bar one (internal) which has a Guided
- Partition Table rather than MBR, and two partitions: HFS+ and NTFS.
- 
- Running gparted from a 12.04 beta Live CD. I ran it earlier from within
- Parted Magic and it worked just fine. I'll check the version used by
- that Live CD later and report back.
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 12.04
- Package: gparted 0.11.0-1
- ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
- Uname: Linux 3.2.0-17-generic x86_64
- ApportVersion: 1.93-0ubuntu2
- Architecture: amd64
- CasperVersion: 1.305
- Date: Sat Mar  3 07:10:27 2012
- LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
- ProcEnviron:
-  PATH=(custom, no user)
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
- SourcePackage: gparted
- UpgradeStatus: No upgrade log present (probably fresh install)
+ 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.

** Also affects: gdisk (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gparted 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