parted allows to fix broken GPT only interactively
Bug #1490608 reported by
Oliver Grawert
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
parted (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
when physically resizing a disk (i.e. because it is a kvm image where you dd zeros to the end or because you dd'ed an image from a smaller disk to a bigger one) the GPT backup at the end of the device sits in the wrong sectors ...
while parted offers you a yes/no question in interactive mode to fix this, there is no way to make use of this feature when using "parted -s" (scripted mode). parted should get an option to fix the GPT even when using it non-interactively i.e. from a "grow rootfs at first boot to full disk size" script.
To post a comment you must log in.
What exactly is the message you get in interactive mode? this would help track down the relevant code.