Recently, one of my hard drive broke (3 hard drives in total). The problem was that the MBR was stored in the broken hard drive and the OS Windows 7 was in an other hard drive. Therefore, I was unable to boot my machine 🙁 After few hours of research, I found the solution and I wanted to share with everyone.
First of all, I booted my computer with Live Knnoppix Linux using USB or you can use Ubuntu or any other Linux distro Live CD.
If you want to save some CD’s, simply use a free tool called unetbootin to run Live linux from USB. (http://unetbootin.sourceforge.net/)
After that, using Gparted, I copied the MBR from broken hard drive (MBR was not yet corrupted :)) ) and paste in to other hard drive (my second HD)
Once copied, in terminal , I ran the command below as root
lilo -M /dev/sdb mbr
where /dev/sdb good hard drive contain’s the MBR
If the command lilo is not installed, run the command below as root and try again:
apt-get install lilo
After, simply shutdown your computer. Remove the bad HD and start the computer. It should be working without any problem.
Disclaimer: All work shared in this post is property of IT Secure Net