Re: gpart destroy, in depth

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Tue, 11 Apr 2023 18:03:56 UTC
On April 11, 2023 10:35:40 AM PDT, Graham Perrin <grahamperrin@freebsd.org> wrote:
>On 11/04/2023 14:24, Warner Losh wrote:
>
>> It writes zeros to the partition table.
>> 
>> Warner
>
>
>Thanks.
>
>Is it precise about where it ceases writing zeros in the areas previously occupied by the table and backup table?
>
>Or does it (for want of a better expression) spill over, a little?
>
>> 
>> On Tue, Apr 11, 2023, 7:13 AM Graham Perrin <grahamperrin@freebsd.org> wrote:
>> 
>>     Please: what, exactly, occurs when a partition table is destroyed by
>>     gpart(8)?
>> 
>>     Background: …
>> 

You should be able to simply recreate the partitions as before. The data will be untouched, unless the disk has been reused.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>  Web:  https://FreeBSD.org
NTP:                     <cy@nwtime.org>    Web:  https://nwtime.org
                                                    e^(i*pi)+1=0

Pardon the typos. Small keyboard in use.