• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

fat32 accidentally converted to ext3, any way back?

I had win98 and winxp running on my pc, but since xp gave me more bluescreens then 98 :-/ i wanted to install linux
So i made a boot partition and root partition with PM
after which i had a boot (100mb) and root (2gb) on my hd (before other partitions)
see http://users.pandora.be/temmer/images/hds.jpg

started gentoo from cd, and did "mke2fs -j /dev/hda1"
knowing that my first partition is the linux boot
then "mke2fs -j /dev/hda2" which gave an error msg
BUT: the table entries were not in disk order :(

device start end  system
hda1   273   1743 win95 fat32
hda2   1744  2069 win95 ext
hda3   1     13   linux
hda4   14    272  linux
hda5   1744  2069 ntfs


So i lost both my OS's and all data on it :(
i was wondering if there's any way to recover something
(i heard i could dump a whole partition, but how am i supposed to get data out of it?)

TIA for any response,
Temmer



*kicks himself* now why did i do that?
0
Temmer
Asked:
Temmer
1 Solution
 
ahoffmannCommented:
you my dump a partition to file like:

   dd if=/dev/hda2 of=/tmp/hda2.dump

make shure that /tmp is not on hda2, for obvious reason.
Then you can examine /tmp/hda2.dump with a tool of your choice. For example:

   strings /tmp/hda2.dump

will give you most of your ASCII data back, probaly not in the order of the original file, but it's more than nothing.
0
 
TemmerAuthor Commented:
The only problem now is that the partition has around 10GB of data, but i think i got enough space

Is there any header between the files in that dump, so i can quickly (relatively to the 10GB ;) find files in there?
0
 
ahoffmannCommented:
dd produces a binary dump.
It contains all data unsorted, just as the filesystem sees it. Because the fs uses datablocks, your files might be split in sevaral blocks across the fs, then they are not in a continous stream within the dump.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
RobsonCommented:
<voice type="Agent Smith">Your files are already dead</voice>

Lucky for you that mke2fs writes only a little data on it. Do as ahoffmann says, and you recover most of your ASCII data. If you want more, give your dist to some data recovery company and pay them $. Anyway, I doubt they will be of much success, because you overvrited FAT with ext2 superblock.
0
 
TemmerAuthor Commented:
"Your files are already dead"
thought so ... :(

Anyway, i lost 2 windowses, oh boy i really care :p

The only things i really need are a few serials and passwords, so i should find it (somewhere) in the dump


Thx for the info, i'll start dumping it, format and reinstall winblows ;)
0
 
ahoffmannCommented:
what do you need linux passwords for when you go back to windoze?
0
 
TemmerAuthor Commented:
Just all sorts of passwords, nothing with linux passwords ;)

And is it possible to split the dump? cause i dont have any partition large enough do dump it on
0
 
ahoffmannCommented:
dd bs=8192 count=500000 if=/dev/hda2 of=/tmp/hda2.dump1
dd bs=8192 count=500000 skip=500000 if=/dev/hda2 of=/tmp/hda2.dump2
0
 
enthusiast78Commented:
 I believe that if mkfs really did it's job on your partition, it's gone. But if the error message you mention was something like it couldn't actually create the filesystem, you can always enter "fdisk" and just change the partition type back to it's original value. Course, if you don't remember which one was, since there are lots of types for MS partitions, you might have to play test and reboot a little bit, but if you really care about your data, it could be rewarding.

  Hope this helps.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now