* [gentoo-user] can you save a filesystem destroyed with mkswap?
@ 2020-01-16 7:30 n952162
2020-01-16 7:41 ` Andrew Udvare
0 siblings, 1 reply; 4+ messages in thread
From: n952162 @ 2020-01-16 7:30 UTC (permalink / raw
To: gentoo-user
Does anyone have experience with this? Is it possible to a save an
ext3/4 system destroyed by mkswap?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] can you save a filesystem destroyed with mkswap?
2020-01-16 7:30 [gentoo-user] can you save a filesystem destroyed with mkswap? n952162
@ 2020-01-16 7:41 ` Andrew Udvare
2020-01-18 11:31 ` Wols Lists
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Udvare @ 2020-01-16 7:41 UTC (permalink / raw
To: gentoo-user
> On 2020-01-16, at 02:30, n952162 <n952162@web.de> wrote:
>
> Does anyone have experience with this? Is it possible to a save an
> ext3/4 system destroyed by mkswap?
>
>
>
Try app-admin/testdisk
Get to a point where you know for sure nothing is writing to the disk (or would be) and make an image with dd, then leave the physical disk alone. Then start recovery.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] can you save a filesystem destroyed with mkswap?
2020-01-16 7:41 ` Andrew Udvare
@ 2020-01-18 11:31 ` Wols Lists
2020-01-18 14:45 ` tedheadster
0 siblings, 1 reply; 4+ messages in thread
From: Wols Lists @ 2020-01-18 11:31 UTC (permalink / raw
To: gentoo-user
On 16/01/20 07:41, Andrew Udvare wrote:
>
>> On 2020-01-16, at 02:30, n952162 <n952162@web.de> wrote:
>>
>> Does anyone have experience with this? Is it possible to a save an
>> ext3/4 system destroyed by mkswap?
>>
>>
>>
>
> Try app-admin/testdisk
>
> Get to a point where you know for sure nothing is writing to the disk (or would be) and make an image with dd, then leave the physical disk alone. Then start recovery.
>
Not that I know any gory details, but if mkswap is ALL that you have
done, then probably it's just destroyed the ext header at the start of
the partition.
If you can get hold of the alternate (backup) header, then you should be
able to restore the filesystem.
And I would VERY MUCH echo Andrew's advice to make a dd image and work
on that!
Cheers,
Wol
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] can you save a filesystem destroyed with mkswap?
2020-01-18 11:31 ` Wols Lists
@ 2020-01-18 14:45 ` tedheadster
0 siblings, 0 replies; 4+ messages in thread
From: tedheadster @ 2020-01-18 14:45 UTC (permalink / raw
To: gentoo-user
On Sat, Jan 18, 2020 at 6:32 AM Wols Lists <antlists@youngman.org.uk> wrote:
>
> Not that I know any gory details, but if mkswap is ALL that you have
> done, then probably it's just destroyed the ext header at the start of
> the partition.
>
> If you can get hold of the alternate (backup) header, then you should be
> able to restore the filesystem.
>
You can learn where the alternate superblocks are by doing a
'mkfs.ext3 -n /dev/$BAD_DEV' and it will do _nothing_ to the disk, but
it will tell you where it places the backup superblocks for a disk
that size.
- Matthew
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-01-18 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-16 7:30 [gentoo-user] can you save a filesystem destroyed with mkswap? n952162
2020-01-16 7:41 ` Andrew Udvare
2020-01-18 11:31 ` Wols Lists
2020-01-18 14:45 ` tedheadster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox