From owner-freebsd-current@FreeBSD.ORG Thu Jun 14 16:49:36 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C792E1065678 for ; Thu, 14 Jun 2012 16:49:36 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward17.mail.yandex.net (forward17.mail.yandex.net [95.108.253.142]) by mx1.freebsd.org (Postfix) with ESMTP id 3134B8FC18 for ; Thu, 14 Jun 2012 16:49:36 +0000 (UTC) Received: from smtp16.mail.yandex.net (smtp16.mail.yandex.net [95.108.252.16]) by forward17.mail.yandex.net (Yandex) with ESMTP id 437BE10616DB; Thu, 14 Jun 2012 20:49:34 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339692574; bh=hlA3pE/rehXtvKLEelLx+9k1VGaoc77/LokFOk0T7y0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=dWWG9wjEeDrDj1EKt+noPagIigs40GdSDNXGBklMZMUHjmPro1iQZoFDXIrukI1Dk T8nrSg0FZRx1U457v9KfwdMSs1/7xwy1lt5LnXLyblI3S/NHqSFfsswChhR/YfK5+C yjxQ4/JrJ0tsA0lpMmD1TmkS+2zZqe+SsE2BmQj0= Received: from smtp16.mail.yandex.net (localhost [127.0.0.1]) by smtp16.mail.yandex.net (Yandex) with ESMTP id 20DB96A030D; Thu, 14 Jun 2012 20:49:34 +0400 (MSK) Received: from dynamic-178-141-5-132.kirov.comstar-r.ru (dynamic-178-141-5-132.kirov.comstar-r.ru [178.141.5.132]) by smtp16.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nWoWiZc2-nXoiaJ4Z; Thu, 14 Jun 2012 20:49:33 +0400 X-Yandex-Rcpt-Suid: olivier@gid0.org X-Yandex-Rcpt-Suid: current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339692574; bh=hlA3pE/rehXtvKLEelLx+9k1VGaoc77/LokFOk0T7y0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type; b=Al8O1+FuB0XXMVWJRQsYFin2l5uiri3bQMznu5t+mavFBqKcLKVLrwyAeNeX3yVcs eiA2GvcZhbW06ZAzEwCDhXpCKbtXzqzgoWwnj/RC1h2LOBcM53+nuD0LCEmvDo/Lxq As0vJsFDfdZhW38eNUm7a3P2fJ/h1vAwyeoHqPUg= Message-ID: <4FDA161C.80101@yandex.ru> Date: Thu, 14 Jun 2012 20:49:32 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: Olivier Smedts References: <4FCF3021.5070802@FreeBSD.org> <20120606.200735.1551208261335301113.hrs@allbsd.org> <4FD05573.70801@FreeBSD.org> <20120610.224813.710171778841273502.hrs@allbsd.org> <4FD9D4DF.9090609@FreeBSD.org> <4FD9EC14.8070203@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8A5405B235F51293ED22C5C0" Cc: current@freebsd.org Subject: Re: CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 14 Jun 2012 16:49:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8A5405B235F51293ED22C5C0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 14.06.2012 20:05, Olivier Smedts wrote: >> gpart(8) works only when GPT's geom exists, when PMBR is damaged >> GEOM_PART_GPT can't detect GPT and thus you can't use it. >=20 > IMO, GEOM_PART_GPT should not depend on the MBR do detect GPT. That's > the problem which should be fixed ; adding a partition to the MBR is > only a workaround (and what would happen if the sector 0 was > permanently damaged on disk ?). Why does GEOM_PART_GPT depends on the > sector LBA 0 while the GPT header is located at sector LBA 1 ? Don't > know the feasability of this, just saying... :-) When the GPT disk layout is used the disk should contain a Protective MBR at the LBA 0. This is by the UEFI standard. The protective MBR contains one partition record with the type 0xEE, this partition covers the entire space on the disk after the PMBR. The remaining partition records shall each be set to zeros. When the disk capacity exceeds LBA 0xFFFFFFFF this value is used in the size field of PMBR record. --=20 WBR, Andrey V. Elsukov --------------enig8A5405B235F51293ED22C5C0 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.19 (FreeBSD) iQEcBAEBAgAGBQJP2hYcAAoJEAHF6gQQyKF6LlEH/RG4jwMOXB3Ot3EQAmr5rU1v BjPookK8f2ArKhnfp1tI0A7ytJ17SlGMdlyyHrH1E5g1TphPVOuiXiXG0SWAfOr0 xt0HWOsWenyzAtEiLdGQ675Fur/V3i9P3442NRviRD6d3uj9B+M6K0B72ClIA6zT Q9bguLT4BP7eZ41NrSDnDSGCyzFlbEMHFI/V1Uu5JJC59somqBPuPDkU91K2Rwnj LSzQYH5rt3L1E8ofPJd7vs9wlSq7sSRLdStW5Atv86BUpvGmcCK6AcRm64LHhFJ5 xfgpPCEIJ7nrp0sE2QQ+cCaYYvDI2Gh1wCym3jMhkip9GnH80ZyPa38DU4/tm70= =0ORw -----END PGP SIGNATURE----- --------------enig8A5405B235F51293ED22C5C0--