[parted-devel] [PATCH 0/2] gpt: Preserve relocated primary partition table

Brian C. Lane bcl at redhat.com
Fri Dec 12 16:29:49 GMT 2025


On Thu, Dec 11, 2025 at 09:44:39PM +0100, Pascal Hambourg wrote:
> On 11/12/2025 at 20:51, Brian C. Lane wrote:
> > 
> > I'm not really comfortable with guessing at the
> > location of the primary partition array when using the backup header. It
> > would be better to use the backup table to try and search for the
> > primary, maybe?
> 
> Do you mean to search a correlation between the contents of the backup
> partition entry array and of possible locations between the primary header
> and the first usable LBA ?
> 

Yes. We'd have to assume that both tables aren't corrupt, which may not
be a great assumption considering this is triggered by the primary
header being invalid.

Other ideas welcome :)

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart




More information about the parted-devel mailing list