Solved! How to delete Ubuntu Grub from Windows using CMD

Dual-booting Windows and a Linux based operating systems has been a thing for a very long time now. Each OS has its own plus points, and thankfully we don't have to choose between them.

But if for whatever reason you chose to delete the Linux partition and go solo with Windows, you may end up with a screen like this:

This happens when you simply delete the Ubuntu (or any other Linux distribution that you previously had) from its partition and reboot straight away.

You should've actually deleted Ubuntu's GRUB image as well from the boot partition so that your computer knows which operating system it has to boot, and which boot image to look for.

This can easily be done using Windows Command Prompt and its DiskPart utility. But now that you're stuck in this black GNU screen, you must be thinking how to get back into Windows from GNU GRUB Screen.

Here's a video I made a while ago where I go through the steps i.e GRUB commands you need to type in order to locate your Windows Boot image and get back into that OS.

This article covers how to delete Ubuntu GRUB partition from Windows in order to solve GRUB screen error during Windows startup. So let's get into it.

You just need to access the CMD utility of Windows. If you are unable to get back into the full OS from the GNU GRU, you can still get this done either through Windows Boot Recovery Screen or Through the Repair My Computer option from a Windows Bootable Media.

Once the CMD window is open, you need to type DiskPart and press Enter.
You will get an alert prompting you to either allow the DiskPart utility to Run or not. Click Yes.


A new window will likely open running on "diskpart.exe". Now we list all the available disks by typing List Disk and press Enter.

dope tech fever gnu grub

select the disk 0 by typing Select Disk 0 or sel disk 0. Both of these commands work.
When you press enter it should say Disk 0 is now the selected disk.

diskpart dope tech fever gnu grub

We now list the volumes available in order to locate the boot volume. Simply type list volume or list vol and press Enter.
You will now see all the volumes listed on the drive.

Select the one that says System in the Info tab by typing sel [volume_name] (Example: sel Volume 2)

We now have to list the partitions present in this volume.
Simply type List partition [enter]
select the partition that reads something like ubuntu by using the Sel partition "its name" [enter] command and type Delete partition Override [enter] to delete it.

Once you delete the Ubuntu partition, you just have to exit from the command prompt and restart your system. If you're on a Bootable Media then simply unplug it from your PC and restart.

Voila! Your computer should now be free from any GNU GRUB Screen! That's basically how you remove gnu grub after deleting ubuntu from windows.

If you found this article useful, be sure to subscribe to the new YouTube Page for more content on troubleshooting and general PC upgrades, tech tips, and such. You can follow me on twitter too if you feel like it.



  1. Hey I got up to the bit where you make the virtual drive and try to explore it. But it says that 'ls' is not recognised as an internal or external command, openable program or batch file. What should i do?

    1. I've updated the post; please try using these new steps now.

  2. Bro , the boot mgr is set to winodws boot itself , but I am still getting the grub screen , what to do , help me

  3. When I do "list partition" none say Ubuntu, It just says "Partition 1 Partition 2 Partition 3 Partition 4" and there's no info column. Is there a way to tell which one I need to delete?


Post a Comment

What are your thoughts on this post?

Popular posts from this blog

PTron BassBuds vs BassBuds Pro vs BassBuds Lite | Which one should you get?

Plextone G20 Review: The Absolute Best Gaming Earphones In This Price!