From owner-svn-src-head@freebsd.org Sat Dec 12 12:23:26 2015 Return-Path: Delivered-To: svn-src-head@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 AEB4AA1417F; Sat, 12 Dec 2015 12:23:26 +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 9D0031CD8; Sat, 12 Dec 2015 12:23:26 +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 98C2430AD; Sat, 12 Dec 2015 12:23:24 +0000 (UTC) (envelope-from ae@FreeBSD.org) Subject: Re: svn commit: r292058 - head/sbin/geom/class/part To: Alexey Dokuchaev References: <201512101037.tBAAbDMq065138@repo.freebsd.org> <1449767147.1358.62.camel@freebsd.org> <5669B969.5020605@FreeBSD.org> <20151212121209.GA60800@FreeBSD.org> Cc: Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: "Andrey V. Elsukov" X-Enigmail-Draft-Status: N1110 Message-ID: <566C11A3.3080300@FreeBSD.org> Date: Sat, 12 Dec 2015 15:22:59 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151212121209.GA60800@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uK26IIf7pt1MpAr4iIPd63ddXSa8TCaxC" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2015 12:23:26 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uK26IIf7pt1MpAr4iIPd63ddXSa8TCaxC Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 12.12.15 15:12, Alexey Dokuchaev wrote: >> If you want to make device to not be recognized as GPT, you should use= >> 'gpart destroy -F ' this will destroy first two sectors where >> PMBR and primary GPT header are located, also it will destroy the last= >> sector with backup GPT. >=20 > While this' technically more accurate, "geom destroy" never worked for = me > without googling or reading the manpage because of missing -F switch, I= > think. Filling first few sectors with zeros worked for so many years a= nd > people got used to that. Would it perhaps make sense to add debug mess= age > when backup GPT is being used? So, now you know about -F switch :) There is possible two cases: 1. When you have not PMBR and primary GPT is damaged, you will see the message about corrupted primary GPT. 2. When you have not PMBR, but have correct primary GPT. In this case seems all will looks good. I think we should report about such corruption. Thanks. --=20 WBR, Andrey V. Elsukov --uK26IIf7pt1MpAr4iIPd63ddXSa8TCaxC 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/ iQEcBAEBCAAGBQJWbBGjAAoJEAHF6gQQyKF6ZOQIAIfKUwtPoOhw9gpQttO9N9Hy nuyvd4N5+0Fu9rYlPZc8ZRy2d+90TxmmK6ncqWFi89iVTO1x0FlZVfa6qy9i9tRS T05/K3IJTttW/UyyMc+yJwx/pcOuDTnhoDVdHv+H61pDdx6d7tBqq9MtF/oh2v9I pBknUupQHl0ICUx1ZGoYBPb3XAe27z/Vze8eiF12dgCqFK6KAdg8kA2rUH+hBYTu EpLrp1rPHZbAH9UIAVeIwTgOyvLA6d9nq/vqaG8GDsR4pegz5N1wiHWsu+1s5yv1 ru4gZwSR72lQV6HZDs7IXO2enjDEEZ089m0DG51tOJxrQ/t4LUI4YwYJQlB2H+U= =iEUu -----END PGP SIGNATURE----- --uK26IIf7pt1MpAr4iIPd63ddXSa8TCaxC--