7.x and 8.0 gpt and gpart GPT PMBR prevents Intel boot

Marcel Moolenaar xcllnt at mac.com
Mon Aug 17 16:29:46 UTC 2009


On Jul 10, 2009, at 12:03 PM, Jeff Kletsky wrote:
*snip*
> The PR indicates patches for the CHS issue for gpt. For gpart, the
> code is in /usr/src/sys/geom/part/g_part_gpt.c and, I believe, should
> be modified to read
>
>      le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC);
>      table->mbr[DOSPARTOFF + 1] = 0x01;              /* shd */
>      table->mbr[DOSPARTOFF + 2] = 0x01;              /* ssect */
>      table->mbr[DOSPARTOFF + 3] = 0x00;              /* scyl */
>      table->mbr[DOSPARTOFF + 4] = 0xee;              /* typ */
>      table->mbr[DOSPARTOFF + 5] = 0xff;              /* ehd */
>      table->mbr[DOSPARTOFF + 6] = 0xff;              /* esect */
>      table->mbr[DOSPARTOFF + 7] = 0xff;              /* ecyl */
>      le32enc(table->mbr + DOSPARTOFF + 8, 1);        /* start */
>      le32enc(table->mbr + DOSPARTOFF + 12, MIN(last, 0xffffffffLL));
*snip*
> In my opinion, these issues should be considered for inclusion in the
> 8.0-RELEASE -- at the very least, the 0xffffff issue, as it cannot
> easily be resolved from the command line.

This particular change will be in 8.0-RELEASE.

Making the EFI GPT slice active is questionable and such has
not been done. As you said, there's a simple work-around for
it by using fdisk.

7-STABLE needs addressing still.
FYI,

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-geom mailing list