LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 12-29-2005, 04:56 AM   #1
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
Manually create partition table?


Hi all,

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...

All the best,
Jan
 
Old 12-29-2005, 05:35 AM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
well these cases do not gaurantee fool proof recovery

you can try with these options
http://www.gnulinuxclub.org/index.ph...=234&Itemid=32
this is for MBR,u can do the same with partiton table

but first u can also see some tools from
ultimatebootcd.com

regards
 
Old 12-29-2005, 05:43 AM   #3
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for the hint. Unfortunately my partition table is gone, so there is nothing to back up.

My question remains: is there a way to manually create and install a new one without data loss?

Thanks.
 
Old 12-29-2005, 05:56 AM   #4
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
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...
 
Old 12-29-2005, 06:07 AM   #5
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Original Poster
Rep: Reputation: 15
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!
 
Old 12-29-2005, 06:10 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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
 
Old 12-29-2005, 12:26 PM   #7
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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

regards
 
Old 12-29-2005, 06:28 PM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Course there is, we just discussed tools that can do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
manually create a symlink in konqi's remote folder Randall Slack Linux - Software 1 12-08-2005 11:28 AM
how to create ip rule table? yenonn Linux - Networking 6 07-25-2005 11:57 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Uh-Oh... Manually Edit a Partition Table? davidbalt Linux - Software 11 03-02-2004 01:16 AM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration