advice needed for beginner with screwed up partition table
Submitted by alanstanley on Wed, 05/13/2009 - 01:00.
Hi.
Like a lot of people here i did something very stupid, and as a result I have a hard drive with all the data intact but the partition table unreadable (gparted sees an empty disc). I am downloading now the iso. Could anybody advise me on the best way of repairing the partition table so that my partitions are visible again? Failing this i will have to recover the data but would prefer if i didn't have to.
Thanks

Just use Testdisk. Sudo
Just use Testdisk.
Sudo testdisk /dev/sda (or whatever the device name is)
Follow the prompts and let it detect partitions and add them to the partition table.
Thanks Andrew. Will give it
Thanks Andrew.
Will give it a try. Fingers crossed!
Brilliant! That worked
Brilliant! That worked perfectly. Thanks!
Yep it worked for me too. I
Yep it worked for me too. I used nero 6 to make the proper disk which did work, but I first tried to make a bootable disk with nero which did not work. Had to write a iso project to a disk instead of bootable data. The test was that I could see the directories and files rather than just a .iso file when viewing the contents of the cd.
Your command up there must have worked. Unfortunately, I don't know exactly what I typed in because I accidentally typed several lines and executed them at once. Once testdisk started, I couldn't readily go back to see which command works lol.
Also testdisk told me i have some error regarding the number of cylinders on my hard drive. Really that meant I should change the way testdisk looks for partitions by setting the number of cylinders per head or whatever to 240 from 255 something like that. With that changed, the deep scan (and only the deep scan) was able to find my partition. I changed it to primary bootable, changed my fixboot junk partition to deleted (fixboot is crap - they should warn us about it), and changed my recovery partition to just primary, and rebooted.
On reboot, safe mode didn't work, as expected. But on a second reboot, checkdisk ran. Some things were automatically deleted, some "orphaned" files were recovered, and Ubuntu came back (disk still in). I chose to boot from disk and windows booted normally. I was pleasantly surprised. Seems checkdisk (usually built in to windows) was what I needed. Maybe my Ubuntu Rescue Remix provided it I duno.
Thx.
I can see this drive but it
I can see this drive but it can't be opened in my friend's Windows or my Linux.
(It was damaged going through customs)
In Ubuntu it says:
Unable to mount the volume 'NESO_xHDD_by_HITACHI'.
ntfs_attr_pread_i:ntfs_pread failed:
Input/output error NTFS is either inconsistant or there is a hardware fault
How can I repair this? Thanks
Hi i m a new bee here need
Hi i m a new bee here need help....one of my harddisk 250gb has become many 26.2 gb.. and cant see any my data....i have installed gddrescue but cant figure how to run it...can some one help
Nuke: You can use any
Nuke: You can use any partition tool to make one partition bootable. Usually, if none are marked as bootable, then the fist one is used. You may need to write an MBR to your dist. Testdisk can do this for you in the advanced options.
It may also be that your drive is corrupt and the partition table is not the problem. Try mounting the partitions from a live cd instead of booting them. If that doesn't work, you can always use file-carving to recover data.
Lancet: Image the drive and then try to repair the image. Again, Testdisk can repair the NTFS MFT.
Rajkumar-vs: Gddrescue is a command-line tool. It is fairly well documented. If you still cannot use it, perhaps it and the tools provided here are not for you. I wouldn't want you to put your data at risk by using the command line if you are not familiar with it.