Wednesday, March 26, 2014

Dual boot of Windows and Linux. How to repair Windows loader after GRUB ?

If you've accidently destroyed/overwritten Master Boot Record of your hard disk installing Linux along with existing Windows, don't worry. Just log in as root to Linux and go to the boot partition. Here you can find file backup.mbr. That's backup of your MBR before GRUB overwrites it. Do the following:

1. Create new mbr copy (just in any case)

# dd if=/dev/ of=/boot/new_mbr_copy bs=1 count=512

2. Restore original MBR

# dd if=/boot/backup.mbr of=/dev/

Now you're able to boot Windows only, not Linux. In order to boot Linux, just install as an option EasyBCD boot loader, configure it and remember: in the future one should confugure Linux boot loader to be installed to it's boot partition only.

That's all

No comments:

Post a Comment