Removed Windows-SSD, how to remove Windows entry from Grub?

I did it … I removed my Windows-SSD, because I don’t need it anymore.

Now I want to remove Windows entry from Grub. How to remove it?

I tried reinstalling Grub with sudo grub-install --no-nvram and sudo grub-mkconfig -o /boot/grub/grub.cfg, but Windows entry is still available for selection in Grub menu.

What do I have to do to get it removed?

I’m not entirely sure anymore, as my grub days are long passed, but if I remember correctly one has to run os-prober to scan for OS’s that are present.

Not sure if os-prober is installed or active on your system, as it was deemed by some to be a security flaw.

Had a quick look:

GRUB_DISABLE_OS_PROBER needs to be set to false in /etc/default/grub to get os-prober to run

Hopefully more knowledgeable people will chime in.

Check if the windows bootloader is still on your system with efibootmgr, if it is there is a guide on this page, showing you how to remove it.

The Windows boot related files should be under /boot/efi.
You could remove those Windows/Microsoft files in there (but not linux related files!). Then run grub-mkconfig like you did before.

No, it isn’t. It was on that SSD that I removed from my computer.

$ efibootmgr
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003
Boot0003* UEFI OS	HD(1,GPT,5c960571-2a05-4c91-a7ee-f66c54806446,0x1000,0x400000)/\EFI\BOOT\BOOTX64.EFI0000424f

I had Linux and Windows on different SSDs and removed that one with the Windows OS and the Bootloader. Only Linux SSD is there and only Linux Bootloader is on that SSD.

Could you show the output of os-prober?
You may need to enable it in file /etc/default/grub.

You need to remove the conf file for Windows in /etc/grub.d. Then run sudo grub-mkconfig -o /boot/grub/grub.cfg

Nothing shown.

That’s it! Now Windows boot entry is gone. Thanks a lot! :+1: