Fixing Windows Bootloader After Linux

A friend, associate or family member has talked you into installing Linux on your computer for any number of various reasons. After trying the LiveCD you have confirmed that your computer can handle the new operating system without any problems, so you go for the full install. Your friend also told you that you can keep your Windows partition on your hard drive so that you can boot into it whenever you want and the GRUB is your friend in this. After a month or two you decide that you do not ever boot into Linux and it is just taking up space on your hard drive so you use Windows partition manager and delete Linux, reclaiming your hard drive space. The next time your reboot your computer you realize the problem that you just created; Everything that GRUB used to reference to boot up the computer is gone and your computer will not even boot into Linux.

Step 1

Find your copy of Windows from when you first installed it on your computer. If you have a computer that did not come with a copy of Windows, borrow it from a friend or anyone else that has it. Make sure that it is the same version of Windows that you have installed on your computer now.

Step 2

Insert the Microsoft Windows install CD or DVD into your optical drive. Boot-up the computer with the disc in the drive and have it boot from the disc when asked by Windows.

Step 3

Select “Repair” on the screen when presented with your options. Type one of the following two commands, depending on which version of Windows you are using on your computer:

bootsect /nt60 c: /mbr – Windows 7

bootrec.exe/fixmbr – Windows XP or Windows Vista

The command will write the Windows bootloader to the hard drives master boot record.

Step 4

Eject the Windows installation disc from the computer’s optical drive. Reboot the computer, Windows will be fully restored just as it was before.

NixCraft: How to Uninstall GRUB

How to Remove GNU GRUB


People also view

Leave a Reply

Your email address will not be published. Required fields are marked *