Index: sys/geom/part/g_part_gpt.c =================================================================== --- sys/geom/part/g_part_gpt.c (revision 285411) +++ sys/geom/part/g_part_gpt.c (working copy) @@ -291,7 +291,11 @@ { bzero(table->mbr + DOSPARTOFF, DOSPARTSIZE * NDOSPART); - gpt_write_mbr_entry(table->mbr, 0, 0xee, 1, + /* + * Create the PMBR 0xee partition at offset 1 instead of 0 + * to work around BIOS bug in older Lenovos (X220, T420, etc) + */ + gpt_write_mbr_entry(table->mbr, 1, 0xee, 1, MIN(pp->mediasize / pp->sectorsize - 1, UINT32_MAX)); le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC); }