I can find a lot of information on the opposite (removing Ubuntu from a dual boot) but not how to remove Windows from a dual boot. I did this once before and then I just deleted the whole EFI partition, however, that was a bad decision (also couldn't boot Ubuntu because it was installed in UEFI mode) and in the end I had to do a clean install.
So what I did now is removing the NTFS partition and keep the EFI partition intact. However the Windows Boot Manager still shows up in GRUB, but of course gives an error when selected.
So I thought an update-grub
might solve it, but it says:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-24-generic
Found initrd image: /boot/initrd.img-4.4.0-24-generic
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
So how do I get rid of this Windows Boot Manager entry in EFI? I tried to use efibootmgr
as suggested by https://superuser.com/questions/930725/how-to-delete-os-from-boot-menu but update-grub
keeps picking it up and when I reboot and run efibootmgr
again the entry is back...