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.


  1. TooLate

    For my fix I had to use the follwoing:

    bootsect /nt60 c: /mbr

    Not using the /mbr would not remote the Grub boot loader.

    1. Chuck

      I am so happy that I found this blog when I was having problem to boot into Windows 7 after removing the Linux partition without removing GRUB first, what an idiot I am. And thank you so much for sharing, Cuz I have to do it the same way as you to make it work, so thank you!


    2. smashedpumpkins

      Finally, a solution! I tried “bootsect /nt60 C:” a million times along with 50 other methods. All attempts failed. I tried “bootsect /nt60 C: /mbr” and it failed again. Finally after using “bootsect /nt60 C: /mbr /force” it worked!! I was given an access denied and had to force it. Thanks everyone!

    3. Cow Won

      Just want to say thank you, GRUB went insane and wouldn’t do shit, and your comment saw from an ubuntu live CD saved me.

    4. Macawslover1

      THANK YOU SO MUCH! I have spent 8 hours trying to remove the traces of my ubuntu install, this post is great

    5. hyperv594

      I did this, then it told me bootmgr was missing. ran startup repair from my repair disc and it worked. Finally, after 5 hours of searching, your comment and startup repair fixed it for me!

    6. Chris

      Thank you so much. A blackout knocked out my computer and it would only load GRUB, and /mbr was the only thing that would work!

    7. Abhishekchitvar

      bootsect /nt60 SYS /mbr USE THIS FORMAT IT WORKS GREAT…………………….THANK YOU FOR THIS POST .

    8. Engineer One

      I tried to use pupy linux from usb, it loaded fine and pupy was running ok, I might did some thing cause to not booting my machine from window 7, I do not have the DVD for windows 7 and any time I reboot I get a blue screen staring with CRUB 4DOS 0.4.4 2009-06-20—–.
      Can I fix the problem with out losing data and with out window 7 DVD.

      I will be thankful for any help
      my email

    9. crizzzR

      Thank you !!! without the addition of /mbr the GRUB loader was still there but completely broken, preventing windows from starting at all.

    10. AamirSanwari

      YOU ARE A SAVIOR.!!!!!!!!

      Thank you sooooooooooooooooooooooooooooooooooooooooooo much.

  2. lich_uk

    Keep up the good work. I had the same problem (Vista animation on my Windows 7 Box) – nothing to do with dual booting, but because I had a 'selective startup' in place before I installed Windows 7. Weeks later I spotted this when using the System Configuration tool to try to resolve a driver issue. When I set the system back to 'normal' boot it somehow restored the Vista animation. I had already tried various things with bootsect which didn't fix it, but I didn't know about bootrec. Thanks to your post I have now been able to restore my pretty Windows 7 animation.

  3. Ubuntu = sticky

    Thank you for working to address this problem. Using everything there though, my comp still wants to give me the choice of Windows 7 or Ubuntu at boot up. I tried the first option in the post and the “bootsect /nt60 c: /mbr”. Still stuck.. Which option should one choose with all the options after typing help when trying “bootsect /nt60 c: /mbr” OR, any other ideas?

  4. Ubuntu = sticky

    Thank you for working to address this issue. I had Ubuntu installed as an uninstallable program on Vista Home Premium prior to a clean installation of Windows 7 and now I've tried everything on this page and still given option of Windows 7 and Ubuntu. I tried “bootsect /nt60 c: /mbr” and typed help and am given many options, any idea which option will fix this? Thanks again and hope you can help.

  5. Daniel

    thank you very much for the info but i got a problem

    Well the thing is that i thought that this will only delete the Grub and not the partition, so i made it, but it was not in a partition it was in an extra hard drive, so now is gone….:(

    Do you know if theres a way tu recover it??

    Thank you very much and sorry for my bad english.

  6. Mod1

    im curently having this trouble. installed ubuntu on a second partition alongside windows 7. it wouldnt boot at all. it just went straight to the windows boot screen (i have vista on a second drive. recently installed win7) so i got fed up with it and deleted the ubuntu partition.

    my machine gets stuck on a grub error when i try to boot.

    i tried “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.”

    this didnt work. i can get windows to boot using something i found on the 'ultimate boot cd' but i cant seem to repair it so the pc boots straight into windows.

  7. Indiana Jones

    Cool , worked like cake for me……..
    Only stuff I had to do different was to execute both commands ( bootsect /nt60 C: AND bootrec /fixmbr ) one after another and THEN reboot.


  8. urmycmru

    Thanks Luke (1uk3) and TooLate!!!! I had done EXACTLY as the title article had stated and then couldn’t boot my laptop. I tried luke’s command 1st, same problem, then I tried Toolate’s ‘bootsect /nt60 c: /mbr’ and she booted properly. I am so thankful. Thanks to all! My old boss always said “You can’t teach experience!”

  9. Chris24

    I actually love you
    Wow I am so happy
    I downloaded the Gnome Live CD and installed Linux
    But then I did the same as you an uninstalled the patition
    I was panicing and then I came across your page

    My PC is restored
    And Now I know a little more about programming too


  10. j0rd0

    Thank you so VERY VERY MUCH!!!
    Spent a few hours going through sites which ended up being useless and finally I can get to sleep! Crisis averted!

  11. Pingback: Ubuntu partition disappeared in Windows7 - ABXZone Computer Forums

  12. berkeleydb

    I’ve got a new wrinking on the Ubuntu removal problem.

    1. Ubuntu 9.04 was installed on Windows XP machine(not by me).
    2. Machine was subsequently upgraded to Windows7.
    3. Now looking to start the Ubuntu removal process by locating the Ubuntu partition,
    I go to Windows Disk Management. There is only one partition(C:). The one or
    two unlabled partitions I would expect to see for Ubuntu are missing. So I
    cannot delete a partition that I cannot find.

    4. I note that when the machine is booted, I get a startup window labled “Windows
    Boot Manager”, not the grub… I get options for Windows7, “Previous version of
    Windows”, and Ubuntu.

    The Ubuntu option actually boots Ubuntu, so it’s still existing somewhere, even
    though I can’t find the partition. The “Previous Windows Version” also takes me
    to Ubuntu, not to Windows XP.

    5. Just for kicks, I go into Windows7 XP mode, and look for partitions. Since it’s
    a virtual HD in xp mode, I can only see the one partition.

    6. I tried bcedit /enum to see if I could figure out where Windows7 is going when
    Ubuntu is booted. I get “boot configuration data store could not be opened.
    Access is denied” I realize this is a separate problem from the Ubuntu
    problem. I just haven’t looked it up yet.

    I realize that upgrading to Windows7 with Ubuntu already installed on XP was maybe
    not a good idea. Is there an alternative here other than reformatting and
    reinstalling Windows7 ?

  13. gravis86

    I’d like to add that if people have tried:

    bootsect /nt60 C:
    bootsect /nt60 C: /mbr
    bootrec /fixmbr

    …and it’s still not working, try using a different drive letter. When you boot from the Windows 7 disc and click “Repair”, it will ask you which installation of windows to repair. Note the drive letter, as it may not be “C” In my case, the drive letter was “G” so i typed:

    bootsect /nt60 G: /mbr

    …and my computer booted right up!

    1. Luke

      Good point – I think I should probably add all of these other points to the main post.

      Thanks for that 🙂

  14. teqnoqolor

    Thank you so much! I was playing around with BackTrack, then it got angry and ate my wireless card so I decided to get rid of it – but of course I just removed the partition and thought GRUB would disappear as well.

    Anyway, after a lot of franticness I finally found your site and voila! Everything is back to normal, so I’d just like to say thanks.

  15. NikoVM

    The bootsect /nt60 c: /mbr command worked perfectly!
    Thanks a lot for this solution! I though I had to format my laptop with all my school data on!
    Very much appreciated!

    1. Luke

      Good news – would have been a nightmare losing all your school work although maybe I should do another post on the importance of backups?? 😉

  16. Chrazritt

    In the past I had trouble with the recovery disks my computer generated for the purpose of doing a factory reset. I was unable to find the path to doing repairs of a smaller nature. Happily when doing a full system backup the other day I was given the option of making repair disk. Using this disk I was able to access the command prompt and remove grub. However it didn’t work the way you described, the command: bootsect /nt60 C: didn’t work, and using the “all” option in place of the “C:” option also did not remove grub. I tried using the command prompt as admin only to find that the commands bootsect and bootrec are not where windows can find them on my hdd. Finally I decided to try the bootrec command while booted to the repair disk. I got it first try using the command: bootrec /fixmbr.

    I thought I would share this information in case others have the same issues.

  17. Chrazritt

    I forgot to mention that I am using Windows 7 Home Premium 64 bit on a laptop with an AMD CPU.

  18. Camillerij


    Just had same problem with 2 disks in a raid array. used bootsect /nt60 SYS /mbr and it worked a treat.

    Thanks for the pointer!

  19. Clarkey

    Thank you so much for this!! Been searching, trying to remove ubuntu from my computer for months, only to come across difficult to understand tutorials. Thank you, thank you!!

  20. Csblacksword

    awesome !!! thanx for info !! helped me to remove grub and delete linux partition

  21. VAIO-user

    thanks for the help! downside is im on a VAIO and as we all know, VAIOs dont come with repair CDs. my dad however, has a pirated copy of win7 ultimate. mine was a genuine home premium. will it still work? PS both are 64 bit.

      1. Joako98

        it worked perfectly! too late was right though, and sorry for the delay in notice. before i saw this i restored the pc to its original sony warehouse stata and i forgot the wifi password

  22. Sree Balaji

    gnu grub v0.97 caused us a big problem we could not even enter into windows. we folled this blog s instructions but i wanna tel abt this shortly.
    step 1: insert a lower version o.s cd rom (eg,vista or XP)
    Step 2: after selecting language click on “repair” option 
    step 3: in that enter dos prompt and type the command bootrec/fixmbr
    step 4:u ll get a msg that the operation was successfull
    step 5: exit prompt and restart your computer,the grub will be deleted

    1. 1uk3

      Thanks for the comment – I know I wrote the original post but all of the comments from others have been invaluable.

    1. 1uk3

      You could try to do it from a bootable USB pen drive installation of a Windows 7 using the same instructions.

      I don’t really have the time right now to go through all the instructions on how to create the USB version though.

      Basically you need a Windows 7 iso (disc image) file and then you need to create a bootable USB using either the official Windows 7 USB tool: (you will more than likely have to find a fix for this though unless it’s an offical disc image that you have downloaded from Microsoft.

      The other option is here:
      *I’ve not tried this but no reason why it shouldn’t work.

  23. Russell

    just wanted to say thanks, I did the same thing and freaked out (no previous experience with linux). Got mine sorted within 45 minutes.

  24. Dragonwstg

    Hello All, 
    Does anyone have a solution to my problem before I wipe all my discs, I was downloading Fedora onto my windows drive, the installation would not complete after many hrs so I reboot the computer, now I get grub rescue>, I tried fixing the mbr with the command below, and now it just says no operating systems exist when I try to Boot. Any Ideas? 

    1. 1uk3

      Personally, I don’t know.  I’d probably try getting another copy of Fedora onto a disc and try re-installing that first and (if successful) going from there.

  25. Amilcar

    Thank you. I made the same mistakes but thanks to you I have the windows back. Great share!

  26. JB232

    Thanks for the great post! I had this same problem after installing Fedora in a dual boot for a class at ITT Tech. I did the same thing you did, I deleted the partition, but GRUB remained and I could not get into Windows at all. I followed your steps, but low and behold, GRUB remained. I ended up typing “bootsect /nt60 SYS /force /mbr” in the repair command prompt, restarted and thankfully the windows splash screen appeared! Laptop is now back to working order.

    I cannot thank you enough!

  27. Mennote

    Great post. Thank you for sharing. Do you have any ideas for removing Grub without a Windows 7 DVD? 

    1. 1uk3

      I’ve not tried it but I guess making a bootable Windows 7 installation on a SB stick would do the same… not got the the time at the mo to do a write up but if you’d like one let me know.

  28. Algenisp

    Hey.. Thanks for the update. I’ve been looking for this information for a while. the only thing thats not working for me is to delete the partition and expand it to my main drive. Right now the partition is unallocated. not giving me the option to delete. Any on how to expand it to my drive?

    1. 1uk3

      I’ll try to look into this one for you.  I had the same issue myself on a laptop I was repairing last week but as the unallocated partition was small I decided to leave it (lack of time and the job being a none paying favour).

      I’m a bit tied up until next week with photography and other jobs now so the answer may take a while.

      If you discover the solution yourself before I do, it’d be great if you could post it here.

  29. Amit Howard

    Gosh! I’ve been looking for this for so long. thanks a lot. am gonna give it a shot once i have my linux partition backed up somewhere.

    1. 1uk3

      Hope it works for you.

      If my instructions in the post don’t do it, check the comments as there are a few other suggestions from people.

  30. Guest

    Thank you “bootsect /nt60 c: /mbr” worked for me too.  Lots of search results linked to “bootrec /fixmbr” that didn’t work for me.

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

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

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

    1. 1uk3

      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.

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

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

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

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

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

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

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

  41. Cdoublejj

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

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

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

  44. Pingback: Removing Linux Bootloader on Windows 7 | Virtualizing IT

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

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

    1. 1uk3

      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!

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

  48. Pingback: Darkling Designs Windows Update KB3033929 Update Loop - Darkling Designs

  49. Shariq

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

  50. Nishan Maharjan

    Thnks bro it helped alot
    For windows 8.1

    bootsect /nt60 C: / mbr
    bootsect /nt60 SYS /mbr

    Dont forget the spaces

Leave a Reply