svn commit: r292058 - head/sbin/geom/class/part

Andrey V. Elsukov ae at FreeBSD.org
Sat Dec 12 12:23:26 UTC 2015


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.
> 
> 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 and
> people got used to that.  Would it perhaps make sense to add debug message
> 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.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20151212/c3524e74/attachment.sig>


More information about the svn-src-head mailing list