Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This machine has UBUNTU & wINDOWS XP. I'm currently logged into UBUNTU. I was just checking the features of GParted and accidentally clicked Device > Create Partition Table. A default MS-DOS partition table is created. Now if I re-start the Gparted there is nothing. Its showing entire disk as UNALLOCATED space.

Lucky thing is All the drives (C:, D:, E:) are currently mounted and I'm in UBUNTU. I guess its possible to re-create the partition table using current status.

But I don't know how? Can any one kindly tell me how to do this. This is a lab computer. If its not recoverable. I'm completely screwed!!

share|improve this question
up vote 2 down vote accepted

If it is a lab machine, there may be identical machines with identical partition tables.

Run fdisk -l (as root) on similar systems and see if there is a consensus of partition table layout.

If you can duplicate the original partition table, there is a good chance for complete recovery. You may need to reload grub2.

Run df -kT and write down or print (I'm talking paper, dead trees) the sizes and order of partitions on the system. This will help you identify whether another system's partition table layout is similar or identical.

share|improve this answer
No, this system is a special(High end) system allocated to me. I'm trying testdisk. I think I may be able to recover the partition table using this. – claws May 20 '10 at 17:18
There seem to be several partition table fixers on the web, however I don't have experience with any of them. I have used TestDisk for user data recovery, and can recommend it for that reason. – kmarsh May 20 '10 at 20:07

You could also try with programs that scans the whole hard disk to find the start of file systems (no names pop into my head now, but I know there exists such tools).

I wrote a partition table printing program several years ago called printpar; it contains a file docs/recovery.txt which has a short list of programs that tries to find partition tables on the hard disk. Note that this probably is very dated, but maybe it still is useful or can give you pointers to other information. You can also check out the list of recovery tools here.

share|improve this answer

Use methods from this link: I have used testdisk from this link and it works for me. If You recreate partition table using fdisk it also may work but if You do it in exactrly correct way ( as i was before).

share|improve this answer
At the moment, this post is essentially only a link. To make sure the answer remains useful even if the link breaks, please edit it to include the relevant information. (Your answer was discovered in an effort to repair or remove old link-only answers.) – Ben N Jan 10 at 4:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .