From: Wols Lists <antlists@youngman.org.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] can you save a filesystem destroyed with mkswap?
Date: Sat, 18 Jan 2020 11:31:42 +0000 [thread overview]
Message-ID: <5E22EC9E.3090804@youngman.org.uk> (raw)
In-Reply-To: <5832A2FD-D94B-4F1F-AB9C-960747024482@gmail.com>
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
next prev parent reply other threads:[~2020-01-18 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-01-18 14:45 ` tedheadster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5E22EC9E.3090804@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox