Windows/Linux Dual Boot - Boot into Windows
One-time Boot to Windows
- Inside the Linux installation, run the following command to view the GRUB menu entries:
sudo grep menuentry /boot/grub/grub.cfg
# Example Output
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
menuentry 'Ubuntu, with Linux 6.8.0-90-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.0-90-generic-advanced-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
menuentry 'Ubuntu, with Linux 6.8.0-90-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.0-90-generic-recovery-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
menuentry 'Ubuntu, with Linux 6.8.0-88-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.0-88-generic-advanced-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
menuentry 'Ubuntu, with Linux 6.8.0-88-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.0-88-generic-recovery-e28ef1f1-41b8-42a9-b930-ea541bbe3842' {
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-76BA-31C3' {
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
- The part you’re looking for is the
'Windows Boot Manager (on /dev/nvme0n1p1)’information so that you can instruct GRUB to boot to that option on next boot - Execute the following commands to boot into Windows and reboot the system:
sudo grub-reboot "Windows Boot Manager (on /dev/nvme0n1p1)"
sudo reboot
- After rebooting, the computer will boot into Windows unless there are pending reboots from Windows updates, in which case you will need to execute the same commands until the computer boots into Windows successfully
Permanently set Windows as the default boot option
:::info Alternatively, and the cleanest and most efficient way to accomplish this, is to simply set Windows as the first option in the UEFI boot order in the computer’s BIOS. :::
- Run the same
sudo grep menuentry /boot/grub/grub.cfgcommand from above to verify the Windows Boot Manager location - Instead of a one-time boot into Windows, run the following commands to set Windows as the permanent default option
sudo grub-set-default "Windows Boot Manager (on /dev/nvme0n1p1)"
sudo update-grub
sudo reboot