Originally posted by exark237
using mke2fs i accidentally typed in /dev/hda1 instead of /dev/hdb1
...your partition looks like it's snafued as the chance of recovering an snafued partition is pretty slim.
it said it has an (empty) folder on it called "lost+found"
The /lost+found folder is where lost files and directories on an ext2 partition
go if the ext2 partition gets corrupted - like FILExxxx.CHK from DOS's Chkdsk. Filenames and dirnames stored here look like 2859_3928, 1234_5, 7_7656, 7_7, etc. This has nothing to do with recoving data from overwritten partitions.
Is there any (preferrably free) way to recover the data?
Ermmm....you could try the following (I haven't tried this method), assuming you did not put any files on the partition, activated your swap partition, used 2 or more partitions on that disk, or checked for bad blocks.
In a terminal or an xterm, log yourself in (or su
yourself in) as root, and type:
# fdisk /dev/hda
Command (m for help): p
Here, record the output on paper (this is your existing partition layout.)
We need to change the partition ID from Linux to NTFS on /dev/hda1.
Command (m for help): t
Enter type (type L to list codes): <------ Here you put the partition ID for NTFS.
Partition 1 changed its type to NTFS/HPFS (or some other message)
Command (m for help): w (to exit fdisk)
# mount -t ntfs /dev/hda1 /mnt/hd
(If you get an error ending "too many mounted filesystems" type "modprobe ntfs" if it's supported and try the mount command again)
If this doesn't work, it looks like your data may be _very_ difficult to fix.
You may have to resort to professional data recovery solutions or get a file-system hacker to attempt it.