Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2023 10:19:24 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Graham Perrin <grahamperrin@freebsd.org>, Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: gpart destroy, in depth
Message-ID:  <3942716f-076b-6d06-26fe-0d44087ac779@grosbein.net>
In-Reply-To: <29390cd8-56cd-aced-990a-f2b25a00aaed@freebsd.org>
References:  <64e88636-1e03-7ff5-7d3f-e8a36117cdbe@freebsd.org> <alpine.BSF.2.00.2304111630560.32077@woozle.rinet.ru> <29390cd8-56cd-aced-990a-f2b25a00aaed@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
12.04.2023 0:46, Graham Perrin wrote:

> On 11/04/2023 14:32, Dmitry Morozovsky wrote:
>>> … 
>> I suppose sysutils/testdisk will be useful for recovering, as most of actual 
>> file systems are left intact
> 
> 
> Thanks, I forgot that the utility has this capability.
> 
> This reignites hope of recovery without a third party.
> 
> Re: my question to Warner about preciseness, now I realise, the answer is almost certainly "Yes", because the manual page for gpart(8) notes that the 'restore' argument/command, which does not affect the content of partitions, can be preceded by destruction (-F). 
> 
> Also, thanks to the people who responded privately.

I did it previously. Just create same partition at same offset and same length and you get file system back.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3942716f-076b-6d06-26fe-0d44087ac779>