1

I am trying to use grub-reboot to boot just once to Windows (following this post).

Strangely enough, using the auto-completion from grub-reboot (or awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg from this post,) I only see Ubuntu entries, or the last one UEFI Firmware Settings. Am I not supposed to see the Windows entry listed? How would I then boot to Windows at next restart?

Here is the output from awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg:

Ubuntu
Ubuntu, with Linux 5.4.0-54-generic
Ubuntu, with Linux 5.4.0-54-generic (recovery mode)
Ubuntu, with Linux 5.4.0-53-generic
Ubuntu, with Linux 5.4.0-53-generic (recovery mode)
Ubuntu, with Linux 5.4.0-52-generic
Ubuntu, with Linux 5.4.0-52-generic (recovery mode)
UEFI Firmware Settings
Matifou
  • 766

1 Answers1

2

Since you use UEFI, you can make use of it's next-boot-feature.

All you need is the efibootmgr-command. Use

efibootmgr -v

to see the list of your boot entries. Then choose the entry for the next boot with

sudo efibootmgr -n XXXX

where XXXX is the number of the desired entry from the list.

reboot
mook765
  • 18,644