Pages

Tuesday, January 21, 2014

How to removing Linux Grub then Restore Win 7 Boot GUI



Firstly, I have a laptop with Windows 7 install. While doing my project, I discover that I need to use Ubuntu to complete the project. So what I do is, I take an Ubuntu Live CD, boot my computer using it then install Ubuntu in an empty partition.

After the installation is complete, I reboot my computer and grub take over the boot GUI. After I finish my project, I left the Ubuntu there and not use it any more. So every day I open my computer, I will see the grub interface and and a thought came to my mind. I am not anymore use the Ubuntu, so I should remove it to recover the used space in my hd (100gb).

I know that I can’t just remove the Ubuntu partition using disk management because if I remove the partition, my computer won’t boot because, GRUB GUI file is located inside the Ubuntu partition. In order to remove the partition, I need to remove GRUB first then replace it with Windows Boot GUI.

This method can be used for Kubuntu or other disto of Linux.


So to do that, follows the instruction below:

1.       Set your computer so that I can boot from a DVD drive.
2.       Then boot from your Windows 7 DVD
3.       After the loading is done, select language, then select repair option


4.       At the repair option you should choose the command prompt.


5.       In the command prompt, use either this command :
a.      bootrec /fixmbr
b.      bootsect /nt60 c: /mbr
c.       bootsect /nt60 SYS /mbr
6.       Either command should work. But for me I use the second one.
7.       Restart your computer. It should boot without entering GRUB again.
8.       But if it happens, repeat step 1 but use another step 5 command.
9.       If it successfully boot without grub, now you can remove the UBUNTU partition.
10.   That’s all.

Thanks for reading…

Sources: