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.


Diskpart


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 can now go ahead and assign a separate drive letter to that volume for our reference to Mount it onto our File System.

Let's say we assign it the Letter D by using the command assign letter=D:

You can assign any drive letter of your choice.

We can now exit out of Diskpart, as we're done here.
You can choose to explore the newly created D: virtual drive through the file explorer, or through command prompt itself.

We have to basically navigate to the EFI folder and remove the folder that reads something like ubuntu.



Once you delete the Ubuntu folder, 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.

Cheers!

Comments

Popular posts from this blog

Plextone G30 Review : An earphone with an external mic!

PTron Boom 3 VS Realme Buds 2: A Non-Basshead's Perspective

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