[parted-devel] RfD: Do not clobber the BootCode in GPT PMBRs

H. Peter Anvin hpa at zytor.com
Thu Feb 26 15:13:21 UTC 2009


Joel Granados wrote:
> 
> Just took a look at the code and there is nothing in the history and I
> found the clobber from gpt, pretty much the same as it was from the
> first commit.
> 
> Its best to change the clobber concept in gpt.c from "lets zero
> everything" to "lets zero main header, backup header, and create a
> minimum PMBR".  Here minimum PMBR means leave everything as is except
> the partition table, which, according to UEFI spans from byte 446 to
> 446+(16*4)
> 
> Comments?
> 

Yep; at offset 440 you also have the MS-DOS partition ID.

If you're using my GPTMBR code for booting from GPT, then offset 424
contains the UUID of the bootable partition.

Overall, is there interest in integrating MBR and GPTMBR code in parted?

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the parted-devel mailing list