?
Solved

fat32 accidentally converted to ext3, any way back?

Posted on 2002-07-24
9
Medium Priority
?
267 Views
Last Modified: 2011-10-03
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
Comment
Question by:Temmer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
ID: 7175833
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
 

Author Comment

by:Temmer
ID: 7176727
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7178377
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
Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

 
LVL 4

Expert Comment

by:Robson
ID: 7179693
<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
 

Author Comment

by:Temmer
ID: 7179904
"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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7180047
what do you need linux passwords for when you go back to windoze?
0
 

Author Comment

by:Temmer
ID: 7181845
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7182165
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
 
LVL 1

Expert Comment

by:enthusiast78
ID: 7188575
 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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 14 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question