LinuxQuestions.org
Visit Jeremy's Blog.
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 09-13-2010, 02:01 PM   #1
Kirfew
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
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
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
Kirfew
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
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,712

Rep: Reputation: 190Reputation: 190
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.

http://www.supergrubdisk.org/categor...bdiskdownload/

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

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
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
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
I like ultimate boot cd but here is a different one with many tools also.


http://www.caine-live.net/page11/page11.html
 
Old 09-14-2010, 09:48 PM   #7
verndog
Member
 
Registered: Oct 2007
Posts: 103

Rep: Reputation: 17
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
UArCd
LQ Newbie
 
Registered: Sep 2010
Posts: 2

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

Original Poster
Rep: Reputation: 0
yay! SuperGrubDisk fixed 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
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 06:42 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