Home BIOS Remove GRUB bootloader from Windows 10

Remove GRUB bootloader from Windows 10

by blackMORE

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.

You may also like

40 comments

Randy May 17, 2019 - 2:07 pm

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

Reply
Jota Mudo May 10, 2020 - 11:57 pm

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

Reply
Ben Hijdra June 8, 2020 - 10:43 pm

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

Reply
Bart December 30, 2020 - 12:37 am

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

Reply
avni January 10, 2021 - 2:09 pm

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

jagadhesh mani June 9, 2019 - 10:38 pm

It’s worked thanks

Reply
Randy C June 15, 2019 - 2:41 pm

Worked for Me!!!

Reply
Shaheer June 21, 2019 - 6:44 pm

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

Reply
Gallo August 6, 2019 - 5:08 pm

Great, it worked for me.

Reply
Computer geek January 1, 2021 - 10:24 am

Awesome, worked a treat 😁

Reply
den August 11, 2019 - 6:45 pm

It worked for me as well. Thanks,,,

Reply
Pikale January 10, 2020 - 1:48 pm

Thanks a lot! This was the only solution I found that worked for me.

Reply
Bart December 30, 2020 - 12:38 am

I think you’ll find that grub is still installed. Hit F9 at start up you will still see Linux (Distro ??) still listed

Reply
Noorulla Khan August 13, 2019 - 11:52 pm

Simplest and perfect solution works on windows 10. Thanks

Reply
doug t. September 17, 2019 - 4:32 am

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

Reply
Kelick November 18, 2019 - 12:35 pm

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

Reply
Bart December 30, 2020 - 12:39 am

Grub is still installd

Reply
yhudz January 27, 2020 - 6:26 pm

it works tanks

Reply
some interest guy February 6, 2020 - 4:52 pm

what is the ‘nt60’?

Reply
Kenneth Kitchen February 28, 2020 - 4:33 am

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

Reply
Andy Mussell February 29, 2020 - 11:16 pm

not worked on my Acer e15

Reply
William March 9, 2020 - 1:38 pm

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.

Reply
Dr. N Bora March 17, 2020 - 6:33 pm

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

Reply
Weqas Weqas March 26, 2020 - 7:55 am

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?

Reply
BHAVIK BHANSALI April 1, 2020 - 10:11 pm

Thanks for the solution. It works for me.

Reply
Hahn April 3, 2020 - 4:23 am

It worked. I am happy.

Reply
Adam Programmer May 20, 2020 - 7:21 am

Thank you very much, IT WORKS

Reply
ahmed July 17, 2020 - 2:52 am

bro i can’t do it because access is denied

Reply
lollolman October 27, 2020 - 5:31 am

run as administrator you braindead idiot.

Reply
Pradeep kumar August 12, 2020 - 2:49 am

It didn’t worked for me☹️

Reply
Tony Sandoval August 24, 2020 - 2:29 am

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?

Reply
Olaniran Ogoluwa October 28, 2020 - 10:57 am

Worked. Thanks

Reply
Gandalf November 5, 2020 - 7:23 am

Thank you very much, you really helped me out!

Reply
Andrew November 22, 2020 - 9:50 pm

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?

Reply
Andrew November 22, 2020 - 10:12 pm

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!

Reply
Chris January 8, 2021 - 3:03 pm

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

Reply
Chris January 8, 2021 - 3:26 pm

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.

Reply
Anders July 6, 2021 - 12:01 am

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

Reply
Samuel September 25, 2021 - 1:30 am

It worked after all trial thank you

Reply
Geoff Davis November 8, 2022 - 3:41 am

I have 2 disks in 1 logical partition. 1 disk has on old entry of grub in the mbr. How might I delete this? Tried: “bootsect /nt60 D: /mbr” but it complains about the volume not being connected to a disk partition. /ALL complains that it’s not a MBR partitioned disk (windows created Dynamic). It bugs me because it appears in the BIOS as a valid boot entry… :D

Reply

Leave a Reply to ShaheerCancel reply

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