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
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:
(If you use Windows XP then the command is:
If you can't boot Windows and can't create a repair CD, you can install something like
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
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.
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.