Review your favorite Linux distribution.
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 09-13-2010, 02:01 PM   #1
LQ Newbie
Registered: May 2010
Posts: 10

Rep: Reputation: 0
How to recover partition table!

Hi everyone,
Just now I accidentally used gparted and wiped the partition table on my main hard drive, and now fdisk -l shows nothing!
How can i recover my partitions and avoid having to reinstall Gentoo all over again?
Old 09-13-2010, 04:00 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You can use TestDisk to recover from a deleted partition or partition table. For best results you will want to run it from a live CD which already includes the latest version, such as System Rescue CD.
1 members found this post helpful.
Old 09-14-2010, 01:36 PM   #3
LQ Newbie
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I did used the rescue cd and it seems like I have my partitions back, but now my computer doesn't go into grub, even though I set my boot partition as bootable.
What to do now?
Old 09-14-2010, 01:57 PM   #4
Senior Member
Registered: Jun 2008
Posts: 1,771

Rep: Reputation: 208Reputation: 208Reputation: 208
Use SuperGrub...

SuperGrubDisk should boot your system to check that you have restored the partition table correctly. It can also be used to repair the Grub bootloader, but you may prefer to follow Gentoo documentation for installing GRUB.

Last edited by thorkelljarl; 09-14-2010 at 02:22 PM.
Old 09-14-2010, 05:10 PM   #5
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,233

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
That's a worry - if you'd merely deleted the partition table both the boot code (in the MBR) and data in partitions should be unaffected. And found automatically (the boot flag is irrelevant to grub).
Depending on what you were doing in gparted, your system may not be fully intact anymore.

Time maybe to use that backup you took before starting ....
Old 09-14-2010, 09:06 PM   #6
LQ Guru
Registered: Mar 2008
Posts: 13,146

Rep: Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665Reputation: 1665
I like ultimate boot cd but here is a different one with many tools also.
Old 09-14-2010, 09:48 PM   #7
Registered: Oct 2007
Posts: 112

Rep: Reputation: 18
Also using the livecd download and run boot_info_script. It will give you everything you need regarding your grub, mbr, file systems.
Old 09-15-2010, 02:11 AM   #8
LQ Newbie
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
thanks for sharing the fix
Old 09-15-2010, 11:33 AM   #9
LQ Newbie
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
yay! SuperGrubDisk fixed 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
Help - trying to recover partition table sywhofloats Linux - Hardware 3 03-01-2009 08:45 AM
Recover partition table? Xmas777 Linux - Newbie 5 12-10-2008 10:10 AM
how to recover partition table ariadneN Linux - General 3 07-26-2006 02:13 PM
Recover partition table djib Linux - Software 2 05-14-2005 07:07 AM
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 02:02 AM

All times are GMT -5. The time now is 01:55 PM.

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