Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-14-2005, 04:40 AM   #1
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Rep: Reputation: 15
Recover partition table


I have lost my partition table on one of my hard drives. (I did a
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
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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

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
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Thanks a lot !!!
gpart is fantastic !!! It has solved my problem. I just did a
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 !!!


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:09 AM.

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