Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is my data gone?
Date: Thu, 29 Apr 2010 23:15:34
Message-Id: z2h58965d8a1004291615pbd39b354x49664e3f0157d08f@mail.gmail.com
In Reply to: [gentoo-user] Is my data gone? by dhk
1 On Thu, Apr 29, 2010 at 5:43 PM, dhk <dhkuhl@×××××××××.net> wrote:
2 > While setting up a new disk I accidentally ran "mke2fs /dev/sda1"
3 > instead of "mke2fs /dev/hda1". When I realized the mistake (about 2
4 > seconds later) I hit Ctrl-C before mke2fs was done. Now I can't mount
5 > the drive. Is there a way to read the drive to get the data off or is
6 > it unrecoverable?
7
8 Before attempting anything I would clone the drive to a spare and then
9 attempt recovery on the clone. (because sometimes trying to fix it can
10 just make things worse).
11
12 You can try something like testdisk, and of course try fsck first. Or
13 one of many commercial programs such as those listed here which
14 probably do the same thing as testdisk:
15
16 http://unformat-ext2.qarchive.org/
17
18 There's no simple "unformat" command or anything that I know of,
19 though. Sorry :(