Uninstall Grub (Replace Grub with Windows 7 Boot Loader)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

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_Backup 

CD Boot

Attrib bcd –s –h –r

ren c:\boot\bcd bcd.old
bootrec /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

[1] C:\windows

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

bootrec /fixmbr

Output should again indicate, “The operation completed successfully”.

6. Next enter the following command

bootrec /FixBoot

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.

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...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2018 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes