Remove GRUB bootloader from Windows 10

My Razer 2016 laptop had Windows 10, Kali and Ubuntu installed but after a Windows update Linux partitions became inaccessible. I removed both Kali and Ubuntu partitions including SWAP but GRUB was till there. I needed to remove GRUB safely without breaking anything else and the following method on how to remove GRUB bootloader from Windows 10 worked for me. It also works on Windows 7. I’ve used it so far 2/3 times since last year on my laptop running Windows 10 multiple times, never failed. I have Secure boot disabled and I am using Legacy boot on BIOS.

Remove GRUB bootloader from Windows 10 - blackMORE Ops - 2

Remove GRUB bootloader from Windows

Follow steps below to remove GRUB from Windows 10.

Step 1(optional): Use diskpart to clean disk

Format your Linux partition using Windows disk management tool. Then you can increase the disk size on your primary partition (i.e. C:) to claim that space. If you’re doing this step, it’s safe to do a restart after you’ve done that.

Step 2: Run Administrator Command Prompt

On Windows 10, Windows 8.1 and Windows 7 search for command and simply right-click Command Prompt shortcut from the search results and select Run as administrator. Don’t use Powershell as PS doesn’t work for few commands.

Step 3: Fix MBR bootsector from Windows 10

Simply type in the following command to remove GRUB bootloader from bootsector on MBR and revert back to Windows bootloader. In Command Prompt (Administrator)

C:\> bootsect /nt60 <drive name>: /mbr

If your drive is C:\ this command will be

C:\> bootsect /nt60 C: /mbr

Thats it. GRUB should be gone from MBR, restart and confirm.

39 comments

  1. Did not work, friend. I’m never using Ubuntu on anything again.

    • is reading a manual really that hard before installing? I did the same thing but I admit my lack of care while installing

      • So simple only one command line.and problem solved.many many thanks

        • It does not work! If you hold down the ESC button while booting you get the option menu and if you go to bnoot menu it shows Ubuntu (or whatevedr linux version you installed) although you cannot bnoot into it the fact that it is there shows thatr grub is still installed

          • I have the same problem. When I go into bios, there are 2 boot options; windows and ubuntu but when I go into ubuntu, it comes up with a grub error that i can’t fix because i already removed ubuntu from its partition

  2. It’s worked thanks

  3. Worked for Me!!!

  4. Thank you it worked!, Tried every possible way to repair grub/grub rescue and didn’t work. This worked.

  5. Great, it worked for me.

  6. It worked for me as well. Thanks,,,

  7. Simplest and perfect solution works on windows 10. Thanks

  8. boom! it worked, but be sure to use an “admin” command prompt. type “cmd” in cortana, then hit ctrl-shift-enter to pull it up

  9. Thanks, bro. You saved my day. 100% work.

  10. it works tanks

  11. some interest guy

    what is the ‘nt60’?

  12. Thanks a ton, that worked perfectly (I was at the “grub rescue” prompt and was getting nervous!)

  13. not worked on my Acer e15

  14. Just commenting to say that this worked perfectly for me! Ubuntu’s partition was deleted and then I used this command and it worked just as expected.

  15. Great….after lot of searches and almost tired of other methods this simple trick done the work…thank you very much

  16. This is only for systems still on MBR. The world has moved forward you know, people are more likely be on GPT with UEFI. Can you explain how to do it on GPT disks?

  17. Thanks for the solution. It works for me.

  18. It worked. I am happy.

  19. Adam Programmer

    Thank you very much, IT WORKS

  20. bro i can’t do it because access is denied

  21. It didn’t worked for me☹️

  22. Hi, yesterday i just deleted the partition using the disk part without knowing anything, i restored the space left into my C: drive and turned off my computer. Today I tried to turn on my computer and i got this GRUB problem. I tried to resolve it with bootsect /nt60 C: /mbr (running as admin) but it doesn’t work, any advice you could give me?

  23. Thank you very much, you really helped me out!

  24. Hi, I really hoped this would work for me, but unfortunately, when I try this, I am given this error message:

    Updated NTFS filesystem bootcode. The update may be unreliable since the volume could not be locked during the update:
    Access is denied.

    I am doing this on my C: volume. I tested this by running the command on my E: volume, and it worked successfully for that. I think it might be because I am currently using my C: volume.

    I am running Command Prompt as administrator. I have also tried to use the command /force. Access unfortunately is still denied. Any advice?

    • I ran command prompt from my X volume, and then ran the bootsec on the C volume, and it ran successfully. Unfortunately, my PC still boots to the GNU Grub first. :( I have done a hard factory reset on my PC, and this Grub boot still exists!

  25. You are worth inverse your weight in saved keystrokes my well typed friend.

  26. I’m not sure Grub hurts anything Andrew. I didn’t read all the comments above so I apologize if I’m rehashing or missing the point but I left Grub on computers long after Grub had any use. It actually provides another layer of recovery possibilities.

    I ran the command provided at the top from the E: prompt (where C ends up after booting from a Windows 10 install thumb drive). I ran it against an ancient original install and it warned about the same access problem my previous attempts encountered but then just did the job anyway. I rebooted, saw windows take over and soiled myself.

    I’m going to clean up now. Idk though Andrew.. I’m assuming you’ve moved on to better things by now but if you’re still trying, maybe use the latest win 10 install media and run the command from the partition you intend to boot too. Good luck. If not that, burn the drive and use this as your opportunity to move up to ssd. T

    hen, never pollute your windows computers with Linux dual boot arrangements again. That’s very abusive to Windows. It has a superiority complex which needs constant attention and throwing it in with the open source crowd makes it fell itchy all over like it’s got lice. That’s where this all really started from. Lack of respect for your Window’s machine’s feelings.

  27. Not working – writing is denied, while the drive is locked

  28. It worked after all trial thank you

Use WordPress.com, Twitter, Facebook, or Google+ accounts to comment (anonymous comments allowed)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.

%d bloggers like this: