LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2004, 10:40 PM   #1
SaintStrive
LQ Newbie
 
Registered: Oct 2003
Location: Where the Mississippi River runs East to West.
Distribution: Gentoo (have used: Fedora, LFS, DSL, Knoppix, DeMuDi, Yoper, Mandrake, FreeDos)
Posts: 6

Rep: Reputation: 0
Unhappy Deleted FAT32 partition... Methods to get it back?


Ok... here is the story... should be funny to most of you, but it hurts for me to think about it right now:

I was installing Gentoo Linux on some of the partitions of hda. WindowsXP was on hda1, and is FAT32. I had a /boot on hda2 ext2... SWAP hda3... / on hda4 also ext2.

I worked on Gentoo a bit last night, but stopped in the middle. Today I rebooted into it, and mounted hda4 as /mnt/gentoo/ , and mounted hda2 as /mnt/gentoo/boot. Well at the time I thought it was hda2... in fact it was actualy hda1 I typed in. I then chroot'ed into it.

When I tried to compile the kernel, I got some errors... figured I probably missed some step, and decided to start over. I was in the / , and wanted to start clean, so I typed

rm ./*

I got tired of answer y to everything so I then did ctrl-c, and with a smile I typed:

rm -rfd ./*

a few minutes later I came back, and decided to reboot to windows to check some email I was waiting for. (I figgured I would work on Gentoo another day) Grub (running off hdb) couldn't boot something that wasnt there. I then decided to boot into Redhat 9 to see what was going on with the hda drive....

When I saw that it was empty, I promptly did a umount on hda1.

I downloaded fatback, and tried to use that:

fatback -a -o ~/ohcrap/ /dev/hda1

it make a recovery of some of the directory names, but there are no files in them. Normally I would care less about the windows partition. I would reformat, and reinstall. However I have some pictures of my baby son on that partition that I would like to retrieve.

Does anyone have any suggestions?

Last edited by SaintStrive; 09-11-2004 at 10:59 PM.
 
Old 09-11-2004, 10:55 PM   #2
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Re: Deleted FAT32 partion... Methods to get it back?

Quote:
Originally posted by SaintStrive
Ok... here is the story... should be funny to most of you, but it hurts for me to think about it right now:

...

Does anyone have any suggestions?
Yes. FAT32 deletes only delete the disk allocation table entries that point to the files, not the raw data on the disk itself. I do not have the knowledge as to how to recover it, but I know it can be done by many computer technicians working in those hole-in-the-wall PC stores where they sell OEM parts. Take it to a PC repairman and ask him to use whatever tools he has to recover the data off of your blown hard drive.

He probably has a special pc that he can cable the drive into and a special tool to set up a new file table from any undamaged data still on the disk.
 
Old 09-12-2004, 12:13 AM   #3
Tamsco
Member
 
Registered: Jul 2004
Location: 1st Brillouin Zone
Distribution: Gentoo (not ricer Gentoo)
Posts: 165

Rep: Reputation: 30
As always when it comes to proprietary microsoft stuff, open source is not where it should be. I agree with Linux24.

Yea... this is why you don't try to install gentoo when tired or distracted. I have a few stories like that.

Last edited by Tamsco; 09-12-2004 at 12:14 AM.
 
Old 09-13-2004, 09:05 AM   #4
SaintStrive
LQ Newbie
 
Registered: Oct 2003
Location: Where the Mississippi River runs East to West.
Distribution: Gentoo (have used: Fedora, LFS, DSL, Knoppix, DeMuDi, Yoper, Mandrake, FreeDos)
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks...

Thanks guys... I am going to check with my IT department at work, and maybe make some phone calls to local repair shops.

Any other advice that someone can offer would also be appreciated!

Thank you,
-SS
 
Old 09-13-2004, 10:59 AM   #5
kostason
Member
 
Registered: Aug 2004
Location: Greece
Distribution: Fedora Core 2, DeLi Linux 0.6.1, Slackware 10.0
Posts: 105

Rep: Reputation: 15
hi
you may want to give a try to:

1. Hiren's Boot CD.
It has a few recovery tools
info: "http://62.253.162.19/hiren.thanki/bootcd.html"
d/l: "http://www.9down.com/modules.php?name=News&file=article&sid=2979"

or

2. Ultimate Boot CD
"http://www.ultimatebootcd.com/"
"http://www.majorgeeks.com/download4019.html"

NOTE: I never tried any of them, so use them on your own risk!!!!!!!!!
 
Old 09-13-2004, 12:18 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
There are a multitude of data recovery software titles out there. Most of them cost some money, but they usually do the job.

I bought and used a dos program called Active Partition Recovery when I accidentally repartitioned the wrong disk during a Windows reinstall. It saved my bacon. They offer a demo disk so you can see whether it will do what you want before you buy it.

If that doesn't do what you want, a Google search will bring up many more options. I'm sure one of them will get you your photos back, even if the XP install itself is a lost cause.

Save taking the drive in to a repair shop as a last resort. Just don't do any writing to the disk until you are sure you can get back the data you want.

Good Luck!
 
Old 09-13-2004, 12:25 PM   #7
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Here you have to weigh the pros and cons. How much is the data on that disk worth to you. If it is merely annoying, then I would recommend trying those tools so you will learn something about restoring a hard drive

If the data is valuable, then maybe take it to a professional. Only you know which is the best way to go.
 
Old 09-13-2004, 12:54 PM   #8
SaintStrive
LQ Newbie
 
Registered: Oct 2003
Location: Where the Mississippi River runs East to West.
Distribution: Gentoo (have used: Fedora, LFS, DSL, Knoppix, DeMuDi, Yoper, Mandrake, FreeDos)
Posts: 6

Original Poster
Rep: Reputation: 0
Disk Image

Funny part about the story:

A few hours before the incident, I had purchased a DVD burner primarily to backup my "valuable" files. I also had intentions on making an image of the partition that went down. Why? Well, reinstalling windows XP, and all the updates is annoying. Having an image of a fairly clean and updated install is nice. I had just reinstalled an updated a few weeks ago. I moved the pictures over for my family to view when the came over to visit.

If only I had ordered the burner a week ago!

Oh yeah... I keep windows because of work related things, and for when family comes to visit.... they just can't break away!

My IT department is going to send me home with a bootable CD to try tonight. IT will copy recovered files to another partition. If it doesn’t work, it does not write to the "broken" partition, so it should be safe to try.

I still have not crossed off the local repair shop.
 
Old 09-13-2004, 01:59 PM   #9
SaintStrive
LQ Newbie
 
Registered: Oct 2003
Location: Where the Mississippi River runs East to West.
Distribution: Gentoo (have used: Fedora, LFS, DSL, Knoppix, DeMuDi, Yoper, Mandrake, FreeDos)
Posts: 6

Original Poster
Rep: Reputation: 0
Question?

I did an "rm" (while running linux) to the FAT32. Does that delete files the same way as If I deleted them from Windows?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Linux Partion to FAT32 gardenair Linux - Newbie 6 03-24-2005 06:48 AM
accessing fat32 partion(s) Canadica Linux - Newbie 9 11-10-2004 10:53 PM
accidentally deleted some files and I don't know what I need to do to get them back Michele Linux - Newbie 2 06-26-2004 06:42 AM
Deleted Windows (from Linux), Now it's BACK Hayz Linux - Newbie 6 09-15-2003 03:18 AM
restore back deleted file edreddy Linux - General 4 07-19-2002 07:43 AM


All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration