Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2015 15:22:59 +0300
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        Ian Lepore <ian@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r292058 - head/sbin/geom/class/part
Message-ID:  <566C11A3.3080300@FreeBSD.org>
In-Reply-To: <20151212121209.GA60800@FreeBSD.org>
References:  <201512101037.tBAAbDMq065138@repo.freebsd.org> <1449767147.1358.62.camel@freebsd.org> <5669B969.5020605@FreeBSD.org> <20151212121209.GA60800@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <device>' 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?566C11A3.3080300>