Removing Linux Grub & Restoring Windows 7 Boot GUI

Recently I had been playing with Kubuntu on my Windows 7 machine.  Don’t get me wrong, Kubuntu and other Linux distributions are great.  I wanted to remove it because I wasn’t really using it anymore and I was getting sick of booting my machine and forgetting to change the GRUB option at start-up to boot into Windows 7.

I know that the GRUB can be edited so that Windows 7 would boot first but I no-longer had the need for Kubuntu so I wanted to remove it all together including the GRUB.

First of all I made a really dumb n00b error of booting into Windows 7 and deleting the partitions that Kubuntu occupied.  Of course, the GRUB remained and my computer wouldn’t even start.  To get back to being able to boot again, I inserted my Kubuntu DVD and re-installed so the GRUB would work again.

Now I thought, maybe EasyBCD would be able to remove the GRUB from within Windows 7 and then I could delete the Kubuntu partitions again.  Unfortunately EasyBCD could not do this.

My next plan was to boot from my Windows 7 DVD and use the option to fix start-up errors.  This was not a good plan either.  The GRUB remained but I now had a Windows Vista GUI start-up instead of the much more pretty Windows 7 one.

I decided to do some research before making anymore stupid mistakes – RTFM comes to mind.

So I discovered that the first step to remove the GRUB (and Kubuntu or other disto of Linux) is to boot from your Windows 7 DVD, select your language and then to choose the repair option.

At the repair option you should choose the command prompt and use the command: bootsect /nt60 C:

Now restart your computer and Windows 7 should boot without entering the GRUB because this has been removed from your machine.

If you have somehow got the old Windows Vista start-up GUI displaying on start-up, then you should wait for your computer to boot into Windows 7 and run the command prompt as an Administrator.  To get the Windows 7 GUI start-up back, use the following command: bootrec /fixmbr

Once you’re happy that your computer is booting without the GRUB and directly into Windows 7 you can remove all traces of the Linux distribution going into Disk Management (Windows Key + R and type diskmgmt.msc). Simply delete the partitions and then expand the rest of the drive containing data to fill the empty space.

The above is just a brief overview of what I did but if you have any questions or would like anything in more detail, please contact me or leave a comment.

  • Nishan Maharjan

    Thnks bro it helped alot
    For windows 8.1

    bootsect /nt60 C: / mbr
    Helped
    Or
    bootsect /nt60 SYS /mbr

    Dont forget the spaces

  • Shariq

    Thanks a lot,.. was really worried, that i should re install OS again and wasting my time… However bootrec /fixmbr helped me ,..

  • Pingback: Darkling Designs Windows Update KB3033929 Update Loop - Darkling Designs()

  • ovdep

    woa thanks…i hope it will works on my machine.

  • AmAn GoEl

    Deleted centos 6.5 from storage but stuck at boot Grub. I dont have dvd and also cant able to run acer erecovery. Help me

  • deepanshu

    thankyou very much!! i was scared to death

  • Noboru

    What if you don’t have a Win7 repair disk, and your computer didn’t come with one? By the way I tried reinstalling another linux OS, to restore the grub menu, but Win7 wasn’t even on it, I tried using Win7 recovery partition, but it just loaded up then immediately exited into a restart. Basically iv’e pretty much just given up, so I backed up my most important stuff to mediafire and plan on fully formatting my HDD and just installing Linux until I can buy a Windows install disc.

    • Honestly, I’m not sure what the best step would be if you have no Windows installation media. Personally, I’d probably download Windows on another machine and put it onto disc or a USB stick, boot from it and then fix the GRUB.

      Saying this though; if you don’t require Windows only software, you’re probably better off running a flavour of Linux. Mint is my favourite distribution at the moment!

  • Ajith

    Thanks a lot mate!!

    You made my job soo damn easy!

  • masi

    Same problem, what is the solution to windows 8/8.1? I don’t have a grub problem, but when bios option is set to EUFI (there are EUFI and Lagacy Bios), it loads windows normally. But when it is changed to Lagacy Bios, it trys to load removed Linux from partition unsuccessfully. Even when the linux was working, to load it, I had to change bios to Lagacy Bios otherwise it would normally start windows without giving any dual boot option. Any suggestion? Thanks.

  • Pingback: Removing Linux Bootloader on Windows 7 | Virtualizing IT()

  • vetticus

    you are my freakin’ hero! Thank you!

  • Hondaguy

    bootsect /nt60 c: /mbr was the fix for mine to remove the GRUB. Without /mbr it was still stating up the GRUB. Thanks for the post! Very helpful!

  • William Combs

    Stupid Linux quacks. They couldn’t make it easy to remove GRUB and go back to they way it was. People have to pull their hair out trying to fix it. I’ll be impressed with linux when they can figure out the simple concept of double click to install.

  • Cdoublejj

    it didn’t work, even with only 1 ssd/hdd

  • Cdoublejj

    didn’t work for me still gives me grub, so i unplugged all my other hdds and am trying again.

  • kingpin

    (hd0,0) first primary partition on first hard disk
    (hd0,1) second primary partition
    (hd0,2) third primary partition
    (hd0,3) fourth primary partition (usually an extended partition)
    (hd0,4) first logical partition
    (hd0,5) second logical partition …

  • kingpin

    I deleted Linux partitions by mistake from Disk management, now when I would boot the laptop, it would take me to grub command prompt….weird.

    ran the command
    1) rootnoverify (hd0,0)
    2) chainloader +1
    3) bootand Windows loaded… now everytime you have to run these commands to boot into windows unless you remove GRUB from ur system…

  • Eldeeb

    Worked for me
    Thanks

  • Anumon

    The final working command:
    bootsect /n60 c: /force /mbr
    Works for SURE!!

  • Rakesh

    In my case, since bootsect /nt60 e: didn’t work, I tried bootsect /nt60 all followed by bootrec /fixmbr and it worked! Thanks for the great post!

  • Me

    Thanks a lot.

  • Toopro

    Amazing thank you <3

  • Gary

    I’ve been working on a new installation of Ubuntu on a new hard drive.  I don’t know if the problem was a difference between old and new GRUB or what.  All I know is that I could not boot into Windows.  I could get to the files easily enough, but I couldn’t boot into it.  I tried everything, scouring and scouring the interwebz.  Everything failed.
    Then I came here.  Both I and my wife thank you.  The “bootsect /nt60 c:” command did the trick.  I just 30 seconds ago FINALLY saw the Win7 splash screen.
    THANK YOU(!) for posting this.

    •  Really glad it helped you out!

  • Windowsman

    Thank you so much. Really saved me here. I could not point the master boot loader away from grub towards windows, but this did the trick.

    bootsect /nt60 C: /mbr

    Many thanks!

  • Hmitheos Here

    Before installing linux, I had both vista and seven… I don’t use linux anymore. How can I remove both linux and grub? I installed it on my USB flash drive and since then I need it to boot my system. how can I bring back the boot menu selection for windows? thank you in advance.

  • Bigbadmick

    A million billion thank you’s for this.  Saved me having to do a full re-install and worked perfectly first time.  You saved my bacon on this one and i can never repay the debt to you.

    • Always glad to know I’ve been of some help.

  • IncorruptibleS

    What happens if you dont have the windows 7 cd? I dowloaded my windows 7 from microsofts website. need to get rid of ubuntu and kubuntu please. and Im a total noob.

    • How did you install Windows 7?  You must have put it on either a disc or USB stick or similar.

      If you used the USB install method, then you just use the Windows USB instead of the disc – booting from the USB installation.  Then just follow the instructions as normal.

      Let me know and I’ll try to help.

  • awlakers

    Worked great! Used to get my Windows 8 CP installation up and running.  Found the a free windows recovery iso out there as well…do a little searching, don’t pay for it from NeoSmart!

  • Chris Williamson

    My hard drive setup is weird and none of the options i saw had worked. So i went the /help and i found that “bootsect /nt60 all /force /mbr” worked fine for me.