I have the following disks:
/dev/sda
/dev/sda1 EFI partition
/dev/sda2 Windows
/dev/sdb
/dev/sdb1 EFI partition
/dev/sdb2 Linux <-- currently mounted as /
and I am currently using Linux, so /dev/sdb2
is currently mounted as /
.
My BIOS is set up to boot by default on second HDD, thus booting on Linux.
Question: from Linux command-line, how to reboot to Windows, i.e. /dev/sda2
? (the bootloader is in /dev/sda1
, more precisely in /EFI/Boot/bootx64.efi
)
Without having to do something like F12 on computer startup to trigger a boot menu, and without choosing an option in a Grub / boot menu.
TL;DR: Is there a way to reboot to /dev/sda2
with a single command line command?
/dev/sda1
's/EFI/Boot/bootx64.efi
directly from command line, could we imagine to avoid having to reboot, and skip the BIOS sequence, and directly execute code/dev/sda1
's/EFI/Boot/bootx64.efi
? – Basj Oct 27 '21 at 14:11