0

I had to reinstall my Ubuntu OS after they stopped supporting my version and my upgrade process wasn't easy. Because the package servers for 20.10 were no longer up I couldn't fully upgrade my packages before upgrading. I was able to upgrade from the command line by deselecting all package servers before re-running the command to upgrade to the newer 22.04 LTS. This broke a lot of package dependencies in the upgraded version so I nuked the drive from orbit and installed 22.04 fresh.

Usually I remove all drives from my computer before installing any new OS to prevent bootloader shenanigans, but my new Windows drive is physically difficult to reach so I didn't do that this time, fully aware of the consequences.

As expected, Ubuntu scanned the drives in my computer and installed its boot loader to the Windows drive despite me allocating the entirety of a separate disk for its install.

I've since manually installed grub to the Ubuntu drive, so it can boot itself now, but I want to be able to launch my Windows drive from grub on my Ubuntu drive. os-prober and update-grub are not solving this problem.

I've seen many guides like this one for removing Ubuntu from a Windows boot partition, but I don't think that's a complete solution because I can still grep for "Ubuntu" amongst the .efi files on my Windows boot partition and I see entries.

How can I fully uninstall grub from my Windows boot partition? What's the safe way to restore those binary efi files?

  • What you are calling a "Windows boot partition" is probably the EFI which is not a Windows partition. It's the extended partition for your motherboard firmware. The EFI partition is supposed to contain boot information for all installed operating systems. EFI extends the limitations of your motherboards CMOS storage and is intended to support the "pre-OS" abilities of your computer, especially bootloaders like GRUB and the Windows boot loader. – Nmath Aug 18 '22 at 05:50
  • Please copy & paste the pastebin link to the Bootinfo summary report ( do not post report), do not run the auto fix till reviewed.Lets see details, use ppa version with your USB installer (2nd option) or any working install, not Boot-Repair ISO https://help.ubuntu.com/community/Boot-Repair Most common issue is that Windows fast start up/hibernation is on. https://askubuntu.com/questions/843153/unable-to-mount-windows-10-partition-it-is-in-an-unsafe-state & https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation Or Ubuntu install is not UEFI. – oldfred Aug 18 '22 at 13:56

0 Answers0