Uninstall Grub (Replace Grub with Windows 7 Boot Loader)
There are times when you would need to get rid of Grub boot loader and replace it with the standard Windows boot loader, this might be necessary if you want to remove Ubuntu or any other Linux partition from your machine. Deleting Linux partitions is not enough, and you must remove Grub too. Here is a quick way of “uninstalling” grub. Quick and easy fix to remove GRUB and get Windows again, has been taken from MS forum. I am not sure if all these steps are necessary, as I have removed grub earlier using only the commands mentioned in steps 6 and 7, but the steps shown here do the job, so better stick to it.
1. Put the Windows 7 installation disc in the disc drive, and power cycle your PC after setting it to boot from CD Drive in BIOS.
2. Press a any key when you are prompted to boot from the DVD & select [language, time, currency, keyboard etc.] & click Next . Select Repair Your Computer option in the dialog window (which takes you to the Windows installation).
3. In the ‘System Recovery Options’ dialog box, go to the last option i.e. Command Prompt .
4. Once in the command prompt (X:Sources> ), type exactly the following commands in the same sequence
bcdedit /export C:BCD_BackupC:
Attrib bcd –s –h –r
ren c:bootbcd bcd.oldbootrec /RebuildBcd
then it should say
“Scanning all disks for windows installations.”
Please wait, since this may take a while…
Output would look something like this
Successfully scanned windows installations: 1
Add installations to boot list? Yes(y)/No(N)/All(A) :
Press ‘Y’ as there was only one instance of windows installation. You would get a confirmation telling, “The operation completed successfully”.
5. Next enter the following command
Output should again indicate, “The operation completed successfully”.
6. Next enter the following command
Again it should say, “The operation completed successfully”.
7. Set the BIOS again to boot from the HDD and reboot, Grub would be gone.
Now if you want to completely get rid of Linux partitions, then once you boot into Windows use Disk Management (this can be launched by searching for partition in the Start Menu search box) to delete the Linux partitions, you can also use Gparted from any Ubuntu Live CD.
Possibly related posts (generated automatically):
- Change Default Boot Order in Grub for Fedora 13
- Change Default Boot Order for Grub in Ubuntu 10.10 Maverick Meerkat
- Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc
- Restore Grub 2.0 after Windows 7 Install (Ubuntu 11.04, 10.10, 10.04 or 9.10)
- Change Default Boot Order for Grub 2 in Ubuntu 11.10 Oneiric Ocelot
- Change Default Boot Order Fedora 15 Lovelock
- How to Change Default Grub Theme or Splash Image in Ubuntu 11.04 and 10.10
- Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne
You might also like
|Change Default Boot Order in Grub for Fedora 13 You might need...||Change Default Boot Order Fedora 15 Lovelock To change default...||Restore Grub 2.0 after Windows 7 Install (Ubuntu 11.04, 10.10, 10.04 or 9.10) I had Ubuntu...||Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne Fedora finally...|