DEV Community

Cover image for Reboot Windows Shortcut
Hadi Houssainy
Hadi Houssainy

Posted on

Reboot Windows Shortcut

Hello,
this is my first post here,
I have Arch Linux installed with windows 10 dual boot & systemd-boot as bootloader

so first u need to check your boot entries:

bootctl list
Enter fullscreen mode Exit fullscreen mode

image

remember the windows id in the output

then create a new file anywhere in your machine

cd & touch reboot-windows.sh
Enter fullscreen mode Exit fullscreen mode

And add the following code inside the new file

#!/bin/sh
systemctl reboot --boot-loader-entry=auto-windows
Enter fullscreen mode Exit fullscreen mode

here --boot-loader-entry=<your windows id>

launch the script and you will escape to windows!
escape to windows

Top comments (0)