From owner-freebsd-geom@freebsd.org Tue Dec 1 03:21:07 2015 Return-Path: Delivered-To: freebsd-geom@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 61B60A3DC63 for ; Tue, 1 Dec 2015 03:21:07 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FE1D149D; Tue, 1 Dec 2015 03:21:07 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from butcher-nb.yandex.net (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id 47A6A1D95; Tue, 1 Dec 2015 03:21:05 +0000 (UTC) (envelope-from ae@FreeBSD.org) To: "freebsd-geom@freebsd.org" From: "Andrey V. Elsukov" Subject: [RFC][patch] Add to GEOM_PART ability to detect GPT with corrupted PMBR X-Enigmail-Draft-Status: N1110 Cc: Marcel Moolenaar Message-ID: <565D1210.1000705@FreeBSD.org> Date: Tue, 1 Dec 2015 06:20:48 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8sKe4WjS04Pju2UXPXq3w5cIWPnwcWmLH" X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 03:21:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8sKe4WjS04Pju2UXPXq3w5cIWPnwcWmLH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi All, Currently GEOM_PART doesn't try to detect GPT in case when it doesn't find PMBR's signature. Thus the backup GPT header and table are useless until PMBR will not be restored first. The proposed patch changes this behavior. When we probing GPT and didn't find the PMBR's signature, we will read the backup GPT header and table. And if it is valid, GPT will be detected. The same changes also added to loader(8). If you will be able to load the loader from some media, it can detect damaged GPT and it is possible to choose partition from damaged disk for loading. https://reviews.freebsd.org/D4282 --=20 WBR, Andrey V. Elsukov --8sKe4WjS04Pju2UXPXq3w5cIWPnwcWmLH 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 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWXRIUAAoJEAHF6gQQyKF6o1wH/jwM1wCH+KePRFJNMuoyrS4C xdbrVkrEVnlgJQ9ZAO0c6nL9Svp4QcVE7a9x9h2lFC1xbNsNKOv3+nHGAxnjq+vt Qeh4UgJFSUw+Bn9AA5DQokGqoEv/NhrGtEbYMYxmSc09fWTw0+A+7KFblK/ae26h KqxCcL3m78Ul+BcKoPd/rkzRUQtfGnToonxzaqiWzg0NfZq3ohKHhgW3MtBFtvyf MBNjVHpJy65T5iQGk/kFPCB3uceWDTOKOOAvadxgRtU5xfXUPLCD1MjpYiIUG00q ABE8DG9oTKYV9pn2R0vp6ju3nhyiIBf99rOz3szJj4t59tRIRGCTHq4gl00O7E8= =SFaM -----END PGP SIGNATURE----- --8sKe4WjS04Pju2UXPXq3w5cIWPnwcWmLH--