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

Cheers!

Comments

  1. Katyii zeharrπŸ”₯πŸ”₯πŸ”₯

    ReplyDelete
  2. 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?

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

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

    ReplyDelete
    Replies
    1. Try opening CMD in windows, and enter bootrec /fixmbr. It should rebuild the boot path and remove grub screen.

      Delete
    2. Heyo the one I must delete is the on that is my hard drive if I select it what will happen

      Delete
    3. What must I do if none of this works

      Delete
  4. 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?

    ReplyDelete
    Replies
    1. In that case, simply exit from Diskpart, and run "bootrec /fixmbr" command. it should rebuild the boot back to windows boot mgr and bypass Grub.

      Delete
    2. Me too same problem and bootrec is not is not identified as internal or external command

      Delete
    3. Yeah, bootrec isn't getting recognised.
      I see on the "bcdedit", path is pointed out right to windows boot, but still the grub screen pops up.

      Delete
  5. I can't exit grub by using any command
    After exit command it sends me to boot menu where ubuntu and windows boots manager and 3 more options are displayed and when I click on windows boot manager it again sends me to grub menu.
    And I am not able to exit it
    Please help me....������

    ReplyDelete
  6. I can't exit grub by using any command
    After exit command it sends me to boot menu where ubuntu and windows boots manager and 3 more options are displayed and when I click on windows boot manager it again sends me to grub menu.
    And I am not able to exit it
    Please help me....πŸ™πŸ™πŸ™

    ReplyDelete
  7. Hi I found bootmgfw.efi on following location
    grub> chainloader (hd0)/efi/microsoft/boot/bootmgfw.efi
    But after enter it shows
    error: Invalid file name `',

    I am unable to find the error, can you help me her

    ReplyDelete
  8. Dear Dope
    i got a imac deleted everything and after some struggle installed Ubuntu, then i decided after a while to use debian, now after turning the imac on comes a GRUB message:

    error: file '/boot/grub/x86_64-efi/normal.mod' not found
    Entering rescue mode...
    grub rescue>

    i tried some advices that need to use sudo but sudo is not installed said grub once, insmod too there is unavailable, there is few commands that work and i know this uefi imac still good to use but even using your advices up is impossible to use any suggested command
    i am now seeing the ls which is

    (hd) (hd1) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (cd0)
    grub rescue> ls (hd1,gpt2)
    (hd1,gpt2): Filesystem is ext2.

    i think there is something there but how to find the boot?
    sorry im tired and not much skills with commands
    would be nice if you or someone could help me installing ubuntu again
    thnks a lot

    ReplyDelete

Post a Comment

What are your thoughts on this post?

Popular Posts