Adding Windows Boot Manager to Grub
Recently I installed Windows 11 to a second NVME in my system. By default I boot into grub and wanted an easy way to swap to windows without pressing keys. I found this to be the easiest solution with only two steps.
Updating Grub
The first step is to run a search for OS on your machine.
sudo os-probe
Then run update-grub
to update the grub menu with what was found.
sudo update-grub
Example
dan@ubuntu:~$ sudo os-prober
[sudo] password for dan:
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
dan@ubuntu:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.13.0-22-generic
Found initrd image: /boot/initrd.img-5.13.0-22-generic
Found linux image: /boot/vmlinuz-5.13.0-21-generic
Found initrd image: /boot/initrd.img-5.13.0-21-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
done