Gentoo Archives: gentoo-user

From: tedheadster <tedheadster@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] can you save a filesystem destroyed with mkswap?
Date: Sat, 18 Jan 2020 14:45:44
Message-Id: CAP8WD_Z3jjdCxayptP-UciYVEBpWcP3YZLCBqKcTVMt82ygkOw@mail.gmail.com
In Reply to: Re: [gentoo-user] can you save a filesystem destroyed with mkswap? by Wols Lists
1 On Sat, Jan 18, 2020 at 6:32 AM Wols Lists <antlists@××××××××××××.uk> wrote:
2 >
3 > Not that I know any gory details, but if mkswap is ALL that you have
4 > done, then probably it's just destroyed the ext header at the start of
5 > the partition.
6 >
7 > If you can get hold of the alternate (backup) header, then you should be
8 > able to restore the filesystem.
9 >
10
11 You can learn where the alternate superblocks are by doing a
12 'mkfs.ext3 -n /dev/$BAD_DEV' and it will do _nothing_ to the disk, but
13 it will tell you where it places the backup superblocks for a disk
14 that size.
15
16 - Matthew