From owner-freebsd-current@freebsd.org Sun Jul 12 06:02:58 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07928998E14 for ; Sun, 12 Jul 2015 06:02:58 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id DB035EDE for ; Sun, 12 Jul 2015 06:02:57 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id F1C679CE9 for ; Sun, 12 Jul 2015 06:02:56 +0000 (UTC) Message-ID: <55A2030B.7010405@freebsd.org> Date: Sun, 12 Jul 2015 02:02:51 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Lenovo BIOS boot fix References: <55A1FFD5.7080008@freebsd.org> In-Reply-To: <55A1FFD5.7080008@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qol9BiNw1dbrvhcBeXp0KXIA6C1svC6Fu" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 06:02:58 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Qol9BiNw1dbrvhcBeXp0KXIA6C1svC6Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-07-12 01:49, Allan Jude wrote: > I have spent my weekend researching why my Lenovo X220s refuse to boot > from GPT partitioned disks. >=20 > Based on this mailing list post: > https://lists.freebsd.org/pipermail/freebsd-i386/2013-March/010437.html= >=20 > I have written a patch for gpart to change the way the PMBR is created.= >=20 > Instead of writing the 0xee partition in the first slot (offset 0), it > writes it to the 2nd slot (offset 1). >=20 > This resolves the issue on my Lenovo X220s, and the installed image > boots fine on my T530, and various other non-lenovo amd64 machines at m= y > house. >=20 > If others could please test this image (it is a pre-installed system, s= o > just dd it to a memory stick, and see if it boots. Can be safely done > without touching your disks), that would be most helpful. >=20 > compressed (193 MiB): > http://www.allanjude.com/bsd/lenovofix_20150704-r285132.img.xz >=20 > uncompressed (1 GiB): > http://www.allanjude.com/bsd/lenovofix_20150704-r285132.img >=20 >=20 I forgot to include the link to the patch as well: http://www.allanjude.com/bsd/lenovofix_gpart.patch I will most likely make this patch optional, behind a flag to the 'gpart create -s gpt' command, to avoid potentially breaking existing working systems, but if using offset 1 works on all other hardware, having it as the default would be nice. Another option would be to make a separate standalone program to modify the pMBR for Lenovo machines, rather than modifying gpart. Thoughts? --=20 Allan Jude --Qol9BiNw1dbrvhcBeXp0KXIA6C1svC6Fu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJVogMQAAoJEBmVNT4SmAt+gC4QANz/JeojZlvCPlYgOdt8LC8k ueQsfAkwX7pRza/Nmxbn6ZpyfD8kBUsSAI65Kas3gsQB1k+hTCQJmFARshkbFUrc u+dIbJ9NLqQ+frV8kwhC9+VUZWrA2MYN5Q3gZpm84Ukh6QmH8qBRTAJm+xyRlEuV qH1bxwcokB6fZbmszvA9j0sluSRUYeuwCya2PxQFqLmOk1mF8kcgo4iepj0kqA4g xrPsYcArlFyPKhYTK3g2QkIVdj2uw/BWJ8ZL2ilaPX+YXts5DL/WAclc4g2H2GEb /Uw2RrL47+l42wxePKic3i0CELHZwoOIZnl/0w5Jhvhj3s8sa9fJbHzavppjSZcV JxdaOs386IzKmO/3nUjqOzLNo4/Hw2Yz3hTrtNegokqzz4xKGcTsVptxHoI2JLAS 3RA84uCwcCGZO389A5QYI5i1rRFTz4O9egIe69t/8+Ezj9MQ2QTKK2ZjZJJYGGfh 3ZNP+6noNniUzFdQks5fG59GRSGHhXU2RpmnKZoMcwFTnHPOawbhm4WkSK+1PXtm nQrH8YGpaw2v8ZmurT1Mjia3EB57UlF4/9zSdSsOUubjreuf4Ee2N4g1cHpO4Tyi xCUE4Z5zcVS+mZtppttaialQ4KMMu1WuJFUp9J/1rWR79aJNJ5T7ws6e/6ptT48a aWt4khp6Uasm/c7iAKmv =E1k6 -----END PGP SIGNATURE----- --Qol9BiNw1dbrvhcBeXp0KXIA6C1svC6Fu--