LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 03-19-2004, 10:23 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Rep: Reputation: 36
How to recover data on lost partitions


I was fixing a customer's PC when I decided that using the recovery disc would be smart, but wrong, it went and wiped the whole partition table without even telling me. It took a matter of seconds, so obviously the data is still there, just not linked to any partition.

Anyone know of a free program that will enable me to rebuild the partition table based on the data? I don't know the cylinders and such so I can't do a raw partitionning either. Searching on google for such tools is a piss off because all of them are advertised as free then I go to download it and it's a pesky demo that only lets you see the data.

So any help would be apreciated thanks!
 
Old 03-19-2004, 10:29 PM   #2
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Can this help?
 
Old 03-19-2004, 10:50 PM   #3
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Original Poster
Rep: Reputation: 36
Exactly what I need... but it's only a demo...
 
Old 03-19-2004, 10:56 PM   #4
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Ok. maybe another is better...
 
Old 03-19-2004, 11:19 PM   #5
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Original Poster
Rep: Reputation: 36
That's a demo too...

Last edited by Red Squirrel; 03-19-2004 at 11:21 PM.
 
Old 03-19-2004, 11:21 PM   #6
Projekt2
Member
 
Registered: Sep 2003
Location: Naples, Fl
Distribution: Slackware Current
Posts: 34

Rep: Reputation: 15
I wiped out my partition table once. I used gpart to get it back. To my amazement it worked. I booted up damnSmall Linux and then mounted the floppy drive (where gpart was located) I ran the command gpart and it guessed my partition table. I then wrote the partition table and all was good.

Also, (and I learned this tha hard way) it's a good idea to make a backup of the partition table and the MBR just in case something like this happens. If you are running win 2000 or XP there is a program called diskprobe that can make a copy of your partition table and MBR
(the first 512k of the HDD). disk probe is part the win 2000 support tools. Aditionally, I'm sure there are propably 101 ways to copy your partition table and MBR using GNU/Linux

Last edited by Projekt2; 03-19-2004 at 11:36 PM.
 
Old 03-19-2004, 11:24 PM   #7
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Original Poster
Rep: Reputation: 36
It's for linux though... I need something that I can put on a disk and boot from, if I start making partitions and installing stuff such as linux I'll risk the data...
 
Old 03-19-2004, 11:32 PM   #8
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Seems you have a real challenge then... but maybe that one's better...
 
Old 03-19-2004, 11:40 PM   #9
Projekt2
Member
 
Registered: Sep 2003
Location: Naples, Fl
Distribution: Slackware Current
Posts: 34

Rep: Reputation: 15
No, it's not just for linux. Go to the site. It is compatible with many filesystems. In my case I restored the partition table on my HDD that was a fat32 filesystem. You jsut need a bootable linux distro (like Knoppix or DamnSmall Linux) to run it.

Last edited by Projekt2; 03-20-2004 at 12:31 AM.
 
Old 03-20-2004, 12:01 AM   #10
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
I had a similar problem two days ago. I used something called testdisk, which I think is free. It worked perfectly.

Also, if you want to "put it on a disk', you could burn a knoppix disc. If you mean a floppy, I think you can get boot floppies for linux out there somehwere. I know you can still get dos boot disks so i would think there'd be linux too.
 
Old 03-20-2004, 12:17 PM   #11
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Original Poster
Rep: Reputation: 36
Testdisk seems to work, it rewrote the partition information. Only one problem, it did not recover any files, it just recreated new raw partitions. If I try to access it just says "invalid media type". It did recover the labels and all though... is there maybe a way to get it to read as FAT16 and FAT32? (the first was FAT16, the other was FAT32) It reconized them as those file systems but for some reason it did not write it properly as I can't do anything.
 
Old 03-20-2004, 12:24 PM   #12
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 750

Original Poster
Rep: Reputation: 36
Partition magic found an error and fixed it, now I only have a C drive (I made it D and created a blank C, so it's no big deal) but I can see files and I think I'll be good. Thanks everyone for the help! I'll keep this util on a disk!

By the way, while were at it, is there any free file recovery utils that will run in dos? Might as well have that on the disk too. I have a business so I think I'll eventually need it anyway.
 
Old 03-20-2004, 12:37 PM   #13
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Here is a freeware that looks good
 
  


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
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
How to recover your data. raxxal Linux - Software 2 07-05-2005 11:59 AM
formatted my c:, linux boot data lost, how could i recover sas_tvr Linux - General 1 01-18-2005 06:56 AM
CD RW data recover redsea Linux - General 1 12-11-2004 08:20 AM
Data Lost! Is It Possible To Recover? rddreamz Linux - Newbie 3 11-17-2003 10:15 PM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration