Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
For reasons beyond my comprehension my hard drive lost its partition table overnight so I cannot access anything on it at the moment.
I booted my machine using a Knoppix CD and ran gpart and testdisk to recover the partition geometry. However, gpart cannot deal with my logical and ext3 partitions, and testdisk does not find the primary partition hidden away behind the logical ones.
From the combination of both programs' output I now have the correct partition geometry. Now I would very much like to transfer it back into the MBR. Only, I don't know how to do this:
* Is it possible to manually create and install a partition table
* How do I do this without losing my data?
Any help very much appreciated, as I am desperate to save a few days' worth work on my PhD thesis...
try cfdisk, (no guarentees) it could be a dead harddrive, i had a 160 gig Maxtor die and nothing could revive it, i tryed Maxblast, cfdisk, fdisk, i even booted knoppix and used qtparted, i thew it away and bought a new harddrive...
Thanks for this idea. I would have tried cfdisk next. "Would" because everything's OK again now. I changed the partition suggestions made by testdisk to my liking and wrote them to disk. All data recovered and now I'll reinstall grub... Thanks for your help!
Good call, I had the same problem yesterday, an ext3 partition (the only one on the disk) decided to report itself as a much smaller FAT16 partition. gpart worked great but you can edit the values it finds too so either tool could have done it. Glad to see you got it sorted
My question remains: is there a way to manually create and install a new one without data loss?
as i mentioned in my tip that you can take bakcup of your MBR
the same stands true for your partition table
you ned to first take backup of a partiton table and see what it is having in that file
then make changes manually in that file and update your partition table
i have not done this
i will only do this on a test hdd when i get one
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.