Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 19:09:39 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Warren Block <wblock@wonkity.com>
Cc:        Slawa Olhovchenkov <slw@zxy.spb.ru>, freebsd-hackers@freebsd.org
Subject:   Re: How to safely remove rest of GTP?
Message-ID:  <1793b0ec-3a86-5c9a-b275-aa93cd9d230e@yandex.ru>
In-Reply-To: <alpine.BSF.2.20.1701300851400.85129@wonkity.com>
References:  <20161230124407.GN37118@zxy.spb.ru> <d79b8568-72e8-415e-4923-14e3c730267e@FreeBSD.org> <alpine.BSF.2.20.1701300851400.85129@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 30.01.2017 18:55, Warren Block wrote:
>>> GEOM: da6: the primary GPT table is corrupt or invalid.
>>> GEOM: da6: using the secondary instead -- recovery strongly advised.
>>> GEOM: da22: the primary GPT table is corrupt or invalid.
>>> GEOM: da22: using the secondary instead -- recovery strongly advised.
>>> GEOM: da6: the primary GPT table is corrupt or invalid.
>>> GEOM: da6: using the secondary instead -- recovery strongly advised.
>>> GEOM: da22: the primary GPT table is corrupt or invalid.
>>> GEOM: da22: using the secondary instead -- recovery strongly advised.
>>
>> You may try attached patch, I did only basic tests, so first try
>> somewhere :)
>
> I really like the idea of gpart being able to remove the secondary GPT,
> but combining it with the existing destroy command is ambiguous.  It's
> hard for the user to tell what will happen, and the command itself
> implies that it will destroy all partitioning.

I don't see any ambiguity here. A user sees corrupted GPT, it can only 
destroy or recover it. It is impossible to have a corrupted GPT and some 
other type of partition table in the same time. So, if you use 'gpart 
destroy' - you want to explicitly destroy it.

-- 
WBR, Andrey V. Elsukov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1793b0ec-3a86-5c9a-b275-aa93cd9d230e>