PDA

View Full Version : [ubuntu] Recovering Data from a Corrupted harddrive



Adanhym
November 29th, 2008, 08:10 PM
Hello, My friend's laptop's (still runnning Vista) motherboard melted and I believe corrupted the harddrive with it. I currently have Ubuntu LiveCD booted up and trying to recover some data from the Harddrive and I get the following error after using fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sda doesn't contain a valid partition table

After trying to force mount it with

sudo mount -t ntfs-3g /dev/sda /media/mount -o force

I get the following error

NTFS signature is missing.
Failed to mount '/dev/sda': Invalid argument
The device '/dev/sda' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
Is there any way I can create a partition table without destroying the data on it? By the way, this is a NTFS partition with just a standard Vista install on it, and GParted lists just 74.3GB of unallocated data on the drive and nothing has been done to the drive since it was removed from the laptop several months ago.

aysiu
November 29th, 2008, 08:19 PM
I don't know how to use this program, but I think GPart (different from GParted) will help you.

Adanhym
November 29th, 2008, 08:49 PM
Can you tell where/how to find GPart? I searchd for it with Synaptic and all I found was GParted.

aysiu
November 29th, 2008, 08:53 PM
It should be in Synaptic if you have the Universe repositories enabled. Go to Settings > Repositories and make sure you have the Universe repositories checked, and then click Reload.

finito
November 29th, 2008, 08:55 PM
Live CD doesnt have ntfs-3g. You have to install that first.

caljohnsmith
November 29th, 2008, 09:35 PM
I would give "testdisk" a try to see if it can rebuild your partition table; to use testdisk, first make sure the Ubuntu Universe repository is enabled in System > Admin > Software Sources, and then download and run testdisk with the following commands:

sudo apt-get install testdisk
sudo testdisk
After starting testdisk with the above command, choose "no log", select HDD and "proceed", "Intel", "Analyze", then do "quick search", Y/N depending on if you have any Vista partitions, hit enter to continue, and select "Deeper Search" so it does a deeper search, which could take a while. Post the output of the screen, and also select each partition and press "P" to list its root directory; let me know which partitions give a valid listing.

If the above method works to find partitions on your HDD, let me know what partitions you think are valid based on your memory of what was supposed to be on the drive. We can work from there if you want. :)

Adanhym
November 30th, 2008, 12:24 AM
After installing Testdisk and finishing the Deep Scan, I found the right partitions and was able to copy the necessary files back over to an external...sorry it took a while to post back; my friend sort of jumped me and hugged me repeatedly for getting the files back and I was told to send a /hug to all who posted and helped ^^

caljohnsmith
November 30th, 2008, 12:32 AM
I think you missed doing the "deep scan"; in that first screen shot you posted, press "enter" to proceed, "Y" to search for Vista partitions, hit enter to continue, and select "Deeper Search" so it does a deeper search, which could take a while. The deep search results are important to make sure you try and recover the correct partitions.