Results 1 to 2 of 2
A a major mistake has happened while attempting to clear out the MBR of one of the hard disks of my machine. Instead of clearing out the MBR of the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-22-2012 #1
- Join Date
- Oct 2011
Retrieve deleted MBR
dd if=/dev/zero of=/dev/hdx bx=512 count=1
Unfortunately I have no backup of the MBR. If I had one I would not have to write this post.
Is there any possibility to restore/retrieve the original MBR that I have deleted, so that I can write it back to the hd?
Since the hd is encrypted I need to get the original MBR back. But how?
Any help is greatly appreciated.
- 04-23-2012 #2
- Join Date
- Apr 2012
- Virginia, USA
For basic file systems (not encrypted), you can use any live distro that includes the program 'testdisk' This is included in "Ubuntu Rescue Remix" which is a nice command line recovery distro.
testdisk is pretty simple to use, IMO, but there's plenty of info on google if you need additional help.
You may also have to use a partition tool such as parted to set the boot flag on the partition that contains your boot loader.