4

I installed Ubuntu on an external HDD without adding EFI partition on the HDD. So during installation it added Ubuntu to the existing EFI partition on my laptop and now it is always showed in boot menu options, near to Windows Boot Manager. I tried to remove it from Windows with Visual BCD but after restart it is still present. In addition, I tried to remove it from Linux with efibootmgr but after restart it is still present. Where am I wrong?

Update: I removed Ubuntu from EFI partition correctly, in fact it no longer appears in boot menu options. Now I have noticed the presence of grub files in Boot folder. Which files can I remove without problems?

1 Answers1

5

Was this your only Linux install and you are trying to change your system back to use solely Windows? If so, I always have to use diskpart in windows to remove the Ubuntu option after Ubuntu is removed, the method I use is detailed here: linuxbsdos.com

  1. run powershell as administrator
  2. start diskpart utility with diskpart
  3. list connected drives with list disk
  4. select the disk that hosts your windows OS with sel disk #
  5. list volumes on selected disk with list vol
  6. select the volume with filesystem FAT32, there is probably only one sel vol #
  7. assign a letter to the selected volume with assign letter=D: *if D is already used, use a different letter, just remember what you used and use that letter instead of D for later steps
  8. exit diskpart with exit
  9. now that your volume with GRUB has a drive letter, change to that directory with cd D:
  10. list all entries in that drive with ls *EFI should be listed, if it is not and you have multiple FAT32 volumes on your drive try the other volume or you are doing this in the wrong drive.
  11. move to EFI directory with cd EFI then check entries with "ls"
  12. assuming ubuntu shows up, type rmdir /S ubuntu and confirm with y after entering
  13. list entries in drive with ls to make sure ubuntu entry is gone
  14. reboot system and the boot menu option for Ubuntu should be gone, as should the assigned drive letter

    Update

You should be fine to remove all GRUB options however, it would be a good check to make sure that date of last write predates your current working installation date of Ubuntu. But ultimately, Windows doesn't need GRUB and if all you have on that drive is Windows, anything with GRUB in the name should be able to be removed safely. Another good check would be to make sure you can boot the external drive without your Windows drive. !remember to always back the files up before you delete them!