LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 05-14-2005, 04:40 AM   #1
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Rep: Reputation: 15
Recover partition table


Hello,

I have lost my partition table on one of my hard drives. (I did a
Code:
dd if=hda of=sda bs=256 count=1
but sda was not the proper drive, sdb was...
I think that all data is still on sda, but the partition table (and mbr) are lost.

How can I fix this problem ?
I tried Mandriva partitionning tool and asked him to automatically guess partition table, but it didn't work it out.

Thanks for your help!

Last edited by djib; 05-14-2005 at 04:43 AM.
 
Old 05-14-2005, 05:22 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If /dev/sda is the drive you boot off of, there may be a /boot/backup_mbr file.

If you just trashed the parition table, but haven't rebooted, look in
/proc/partitions for at least the names and block sizes of the partitions.

These two links may also help:
http://www.faqs.org/docs/Linux-HOWTO...rtition_repair
http://www.tldp.org/HOWTO/Partition-...07.html#AEN110

One of this mentions a "gpart" utility that looks promising.

Last edited by jschiwal; 05-14-2005 at 05:35 AM.
 
Old 05-14-2005, 07:07 AM   #3
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Hey
Thanks a lot !!!
gpart is fantastic !!! It has solved my problem. I just did a
Code:
gpart /dev/sda -W /dev/sda
.

Thank you so much. Now I won't touch this hard disk anymore untill I have made a backup of 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 02:02 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Data Recover Help -> Incorrect Partition Table PhuckFonix Linux - General 8 05-30-2004 10:12 PM
injury to partiton table??how to recover farhan Linux - General 4 10-05-2003 08:08 PM
HELP!!! to recover lost inode table moden Linux - General 3 11-26-2002 05:53 AM


All times are GMT -5. The time now is 12:18 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