On Sat, Jan 18, 2020 at 6:32 AM Wols Lists <antli...@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

Reply via email to