Re: gpart destroy, in depth
- In reply to: Graham Perrin : "Re: gpart destroy, in depth"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Apr 2023 03:19:24 UTC
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.