I installed Ububtu 12.04LTS as dual boot along with my Windows 7. I need to remove Grub and restore Windows MBR but without uninstalling Ubuntu

  • 1
    Read this. It will give you an idea of how to uninstall GRUB. In order to completely remove GRUB you need to use FixMBR from a Windows CD. To fix the MBR read this. – kalpetros Apr 4 '13 at 4:49

To install a Windows bootloader, boot Windows and create a Repair CD. Boot from the repair CD (or from your original Windows DVD) to a repair prompt and run:

bootrec /fixmbr

(If you use Windows XP then the command is: fixmbr)

If you can't boot Windows and can't create a repair CD, you can install something like lilo which works identically to the Windows boot loader when used as shown below. Boot from an Ubuntu CD/USB and select "Try Ubuntu", connect to the internet and drop to a terminal (Ctrl+Alt+T):

sudo apt-get update
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Note, when you install lilo it will popup a big warning. You can ignore this (as it's not relevant when installing a Windows-style bootloader) - Tab to OK and hit enter. Also, if you don't boot from /dev/sda change as appropriate.

If you're planning to continue to boot Ubuntu after replacing the Windows bootloader you can use easyBCD. Otherwise you'll need to boot a live CD/USB to reinstall Grub later.

Install EasyBCD 2.2 go to advanced options, select which partition has Win7/xp installed and in the MBR configuration options select as per the OS you have installed. Click on write MBR and restart..Voila..Go to disk management and restore the linux partitions by deleting and formatting them.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.