LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-07-2011, 09:53 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Recover lost MBR/partitions!


I was installing OpenBSD on a hard disk with about a dozen partitions: NTFS, FAT, EXT3, EXT4 and LUKS. I made a mistake and told OpenBSD to use the whole disk instead of one partition. I realized my mistake some 4 or 5 seconds later, then I pressed Ctrl+c and killed the process. Now I have a blank HDD with a very large partition, a very small partition and no more Grub.

I have backups, but they are a few days old and there are things I would like to recover if possible. Do you think that's possible? Is there any software that will look at that disk and guess where each partition used to begin and end? I am pretty sure the most important stuff was in the last partitions, toward the bottom. The first partition was 30 GB and had Windows, totally expendable. Then there was 3 GB of FAT. Then an empty 30 GB partition for BSD... The important stuff comes after that.

You see, just finding software on Google is easy. I would like to hear from people who had some experience similar to mine and managed to solve it. You know how data loss is, I am not thinking very clear right now. I'm bummed...

Last edited by lucmove; 08-07-2011 at 10:00 PM.
 
Old 08-07-2011, 10:09 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Testdisk is the usual answer to this. It scans the disk looking for partition "signatures" - depends a bit on how much you overwrote. May also find older partitions as well - no real problem if you have an idea of what was on there.
 
Old 08-09-2011, 09:12 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Testdisk didn't solve things magically, I had to do a lot of the legwork, but it provided very useful hints. In the end, I recovered the entire disk, all partitions.

Thank you.
 
  


Reply



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
How to recover mbr mamtasahai1 Linux - General 14 04-03-2008 12:52 PM
Do I need to recover MBR when reinstalling Edubunutu? zoffmann Ubuntu 4 11-19-2006 02:37 AM
Restoring MBR :partitions are detected only after the reboot after MBR restoration? sharathksin Linux - Newbie 2 04-14-2006 07:48 AM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
How to recover data on lost partitions Red Squirrel General 12 03-20-2004 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration