Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd February 2008, 05:35 AM
jimmy2975 Offline
Registered User
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Posts: 327
partition table recovery.PLZhelp

Hi,

This is what happened. I wake up to find my FC8 box has restarted itself. 1st time I ignore it but happens again after a few days and the third time it would not boot at all. I get crc error. So I checked all the harddrives(PATA and SATA), bought a new drive, used a PCI IDE/SATA controller,Live CD's and I was still getting crc error. It turned out one of my 1Gb mem stick was bad. So I removed it (now using 1Gb instead of 2G) and now I dont see any of the partitions on either of my HDD. I can use a live CD just fine. ALL my partitions are GONE!!!!

I used Gparted Live CD to see if it will recover the partitions. But no juice. It says unallocated.
Can someone please walk me through atleast to see if the partitions are there.

PLEASE HELP ME OUT. I dont know what else to do.
THanks
Regards
Jimmy
Reply With Quote
  #2  
Old 23rd February 2008, 06:13 AM
Zotter's Avatar
Zotter Offline
Registered User
 
Join Date: May 2004
Location: Central Wyoming
Posts: 637
There's some information missing here. Removing a stick of RAM won't delete, hide or otherwise obscure partitions.

However, messing with a mobo can cause the system BIOS to get 'scrambled'. Have you re-run the BIOS setup? Make sure you can see all the drives correctly from setup.

After that boot a live CD of some flavor or another and as 'root', run the command: fdisk -l <enter>

See anything useful?
__________________
If it ain't broken - you're not really trying....
Registered Linux user #227845
Reply With Quote
  #3  
Old 23rd February 2008, 06:17 AM
jimmy2975 Offline
Registered User
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Posts: 327
I realise that removing the RAM should not affect the HDD. THis is really bizzare. All HDD are recognized in the BIOS. From a rescue CD I did fdisk -ls and no partitions were there. AM I SCREWED FOR SURE?

Jimmy
Reply With Quote
  #4  
Old 23rd February 2008, 12:51 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Wow - that's really bad news.

The dram cannot directly change the hdd contents, but it is *possible* that the dram error caused the system to scribble over the MBR and ruin the disk partition table (and possibly more). It does seem unlikely that it scribbled over both disks in the same way - but not impossible.

So I assume that your "fdisk -ls" did correctly show both disks sort of like this:
Quote:
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00049d65
but no partitions. Is that correct ?

If so what does
dd if=/dev/sda bs=1 count=512 | od -Ax -xc
produce ?

dd if=/dev/sda bs=1 count=512 | od -Ax -xc
Reply With Quote
  #5  
Old 23rd February 2008, 02:25 PM
jimmy2975 Offline
Registered User
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Posts: 327
Yeah, this really sucks. Luckily I have back up of most of my data.

yes fdisk -ls shows the PATA and SATA drive correcty but with not partitions

and the dd command dd if=/dev/sdb bs=1 count=512 | od -ax -xc gives a bunch of 000,nul,0000 arranged in 2x8 (rowxcolumns)

512+0 records in
512+0 records out
512 bytes copied .....

The results are the same for both the drives.

Thanks
Jimmy
Reply With Quote
  #6  
Old 23rd February 2008, 02:46 PM
Wayne
Guest
 
Posts: n/a
Don't know if paying for this will help:

http://www.dfsee.com/

Wayne
Reply With Quote
  #7  
Old 23rd February 2008, 03:06 PM
terry_g's Avatar
terry_g Offline
Registered User
 
Join Date: Jun 2005
Location: Terrace B.C. Canada
Posts: 215
Testdisk is a utility that is available through the Fedora repos.
I have read good reviews about it.
This is their home page:
http://www.cgsecurity.org/wiki/TestDisk

I used the Photorec program that comes with it to recover deleted pictures on a hard drive and on a camera card.
It found the files when two other programs 'not free" couldn't find them.

Good Luck!
Terry
Reply With Quote
  #8  
Old 23rd February 2008, 03:17 PM
jimmy2975 Offline
Registered User
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Posts: 327
Thanks for the info everybody. Please keep posting if you think of anything else. I did read about testdisk. SInce I dont have a floopy disk I have not tried it. I am not sure if one can make a testdis liveCD. But I am on my way to work and will get some floppy disks and try testdisk first

Thanks
Regards
Jimmy
Reply With Quote
  #9  
Old 23rd February 2008, 03:45 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
The zeros in the dd | od mean that your partition table is all zeros !

You can probably recover the first partition of each drive as follows.
Use fdisk and create a primary 1st partition starting at the default "track 1" and the full size of the disk. You can probably mount that file system if you can guess the fs type.

This only writes over the zeros in the partition table so it's not hazardous. Mount the fs as read-only like:
mkdir /tmp/mp
mount -t ext3 -o ro /dev/sda1 /tmp/mp
*assuming* it's an ext3. It doesn't hurt to try.

==
Try this:
dd if=/dev/sda bs=512 skip=65 count=1 | od -Ax -c

If your output is all zeroes then the first partition file system is probably ruined too.
If it looks like:
000000 ` 214 023 \0 306 " N \0 # 350 003 \0 6 J 0 \0
000010 " 201 016 \0 \0 \0 \0 \0 002 \0 \0 \0 002 \0 \0 \0
000020 \0 200 \0 \0 \0 200 \0 \0 340 037 \0 \0 Q ? 300 G
000030 Q ? 300 G % \0 377 377 S 357 001 \0 001 \0 \0 \0
000040 @ 362 253 G \0 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0
000050 \0 \0 \0 \0 \v \0 \0 \0 \0 001 \0 \0 < \0 \0 \0
000060 006 \0 \0 \0 003 \0 \0 \0 K 243 374 5 z 0 L 333
000070 252 317 254 244 230 N 343 373 / \0 \0 \0 \0 \0 \0 \0
000080 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
...
then it's ext3 and the string around byte 0x78 ("/" in this case) is the volume label.

Last edited by stevea; 23rd February 2008 at 03:54 PM.
Reply With Quote
  #10  
Old 24th February 2008, 07:00 AM
jimmy2975 Offline
Registered User
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Posts: 327
FINALLY, the partition table is restored.
Used knoppixx Live CD and used Testdisk to recover the table. Was really straight forward. This got my 2 important data partitions on the 2 HDD. However, I could not boot FC8. So I am reinstalling FC8.
I strongly recommend anyone with similar problems to use testdisk application. I have made a copy of fdisk -l o/p and grub.conf backup for each of my 2 FC8 boxes and ubuntu laptop.

The funny thing is I really didnt need the data partitions to be recovered( i had Unsion do a cron job backup to an external drive a day or two before the crash). Well it was an experience and I now know how to recover partition table. I still need to know how to reisntall just the grub w/o having to reisntall FC8. Maybe next time!!!!

THanks to everyone for their input/suggestions

Regards
Jimmy
Reply With Quote
Reply

Tags
partition, recoveryplzhelp, table

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed Partition Table Data Recovery Ext3 laiseng Using Fedora 2 20th May 2009 04:59 PM
partition table hosed, recovery? mrhnau Using Fedora 3 20th March 2007 05:48 PM
Partition table recovery DRE.ORGY.NET Using Fedora 1 13th August 2006 01:51 PM
XP Dual boot trouble CHS Partition table:Rebuilding Partition table ILovetux Using Fedora 0 15th May 2006 08:47 PM
FC4 changes partition table vjones777 EOL (End Of Life) Versions 1 17th April 2006 06:08 PM


Current GMT-time: 22:35 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat