From owner-freebsd-current@freebsd.org Sun Jul 12 05:57:23 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 B80CD998C31 for ; Sun, 12 Jul 2015 05:57:23 +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 8D316B7A for ; Sun, 12 Jul 2015 05:57:23 +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 D3ED59CBB for ; Sun, 12 Jul 2015 05:49:18 +0000 (UTC) Message-ID: <55A1FFD5.7080008@freebsd.org> Date: Sun, 12 Jul 2015 01:49:09 -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: Lenovo BIOS boot fix Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="81k3rqnsWgE25G6E5TtrmSahiixdNoVV9" 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 05:57:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --81k3rqnsWgE25G6E5TtrmSahiixdNoVV9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I have spent my weekend researching why my Lenovo X220s refuse to boot from GPT partitioned disks. Based on this mailing list post: https://lists.freebsd.org/pipermail/freebsd-i386/2013-March/010437.html I have written a patch for gpart to change the way the PMBR is created. Instead of writing the 0xee partition in the first slot (offset 0), it writes it to the 2nd slot (offset 1). 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 my house. If others could please test this image (it is a pre-installed system, so 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. compressed (193 MiB): http://www.allanjude.com/bsd/lenovofix_20150704-r285132.img.xz uncompressed (1 GiB): http://www.allanjude.com/bsd/lenovofix_20150704-r285132.img --=20 Allan Jude --81k3rqnsWgE25G6E5TtrmSahiixdNoVV9 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) iQIcBAEBAgAGBQJVof/dAAoJEBmVNT4SmAt+jnEP/0kPYxpEANmu91HFyUGREklo hLTgKpQ+UwgbbD0aXyu7E459iLzr5jEF+RgRakDsTgWrt4DfH4zCf+G2BR2xRD+9 oGUOmpg35EXVAd0RsbhugcMuZzp3EzgJGGowDqvl/7PErdq1ZIZxyVQ/NuIv8T/t AYB1qC6B+WJm7PvEB3L30UuBkI8Wl0EdHkE/4iGrgy8nP454NWDhs65fYuBL5rrW QiLFO7UTpXeE09bdwTJ10XA0RtYewYwPDcpuUPVeFK9M/ESJVoEPHsLCR3sqxCfZ ziBAQVrFguk+o0xvks9V/N3O9+p84BMbs9tOX7bPRHPSuo7xfE+SPpvINPudjZhz rW8p+6cHufTt/RR4RS6L0H4ad2Vz/Yw5IwxtwffI3uZ/6Z9I6gU7NfksKJFuEk2h wckNdSoytKktnjVH1EuQjTf90mNZbgC03rXZcTTS+4JBsZr5SjsklTdPPk0hBA+F 0o1J8WxCEk+GEVvDUdpJVauBLn6642RXEXlyuTUCbqZ+ZxCdN9tzzQQhqiBC8a9l 25Gr6NI5STqfDse77STKA6lxkNmPPpw8YuFDUm45z4o7TeptM29pwIUlZy9Zg1Lf 1YFwgqL2u31obnGNHHUM4tXfpgoGUOqhs74e4fECMtv7inCorNliku2mubwCH8zr hdboLayfnjoPOlV9C/ST =g6OW -----END PGP SIGNATURE----- --81k3rqnsWgE25G6E5TtrmSahiixdNoVV9--