#boot into windows from arch

66 messages · Page 1 of 1 (latest)

median aspen
#

Hello,

I frequently have to reboot my pc to get into windows and it is getting quite annoying to navigate the grub menu and select windows. Is there a button perhaps that enables you to boot directly into windows? I remember there being a feature like this when i dual booted windows with my old mac a few years ago. Cheers

misty pier
#

man systemctl

median aspen
misty pier
#

Never used it, test it out and see

#

systemctl reboot --boot-loader-entry=whatevertheentryis

median aspen
misty pier
#

"Windows Boot Manager"

median aspen
#

probs cant see that but it says not valid, refusing

misty pier
#

Could just try using a number, I would test with you but I don't use a bootloader

median aspen
#

hmm i tried a number just now and it gave the same error

misty pier
median aspen
misty pier
#

Is there no windows entry shown?

#

Could try this too: sudo systemctl reboot --boot-loader-entry=auto-windows

#

I'm just googling for you to find answers at this point though

median aspen
#

oh damn dont worry abt it then i did a bit of googling just didnt find what u r finding lol

#

will google harder

delicate burrow
median aspen
delicate burrow
misty pier
#

Are you sure your grub has a windows entry? It's weird it doesn't show up in: sudo systemctl reboot --boot-loader-entry=help

median aspen
median aspen
delicate burrow
#

@median aspen did you read the .sh?

#

and is zenity installed?

median aspen
#

zenity is installed but sudo update-grub doesnt work

delicate burrow
#

grub-mkconfig -o /boot/grub/grub.cfg

median aspen
#

nah the script doesnt work for me

#

i press yes and it boots back into arch

delicate burrow
#

make sure you have GRUB_DEFAULT=saved in your grub config

median aspen
#

yeah it is

delicate burrow
#

from /etc/default/grub

median aspen
#

yep

delicate burrow
#

Find grub menu entries

#

grep -i "menuentry '" /boot/grub/grub.cfg

median aspen
#

not sure if i needed to cross that stuff out lol

delicate burrow
prime wagon
#

That’s the only way I’ve ever seen this done

misty pier
#

I just assumed since --firmware-setup works T_T

prime wagon
#

Sets an efi variable or something

misty pier
#

Well, you could always switch to systemd-boot and solve your problem then 😛

prime wagon
#

I’ve got another (untested) idea. You can configure GRUB to boot into the last used entry. If you modify the file that stores the last used option, you could set it to the one that corresponds with Windows.

#

Then you’d probably want a script in Windows as well to change it back to Arch’s boot entry

#

Looks like that does something similar to what I was describing

night quest
#

@median aspen

prime wagon
night quest
#

I understood it as they want to boot into Windows and be able to boot into it again without selecting it from the menu

prime wagon
#

Hmm, either way they know what to do now

night quest
#

In order to do it with your link they have to uncomment a line in the link I sent

#

They just need to read section 8 of the grub wiki page

median aspen
#

im most likely just being stupid but im not sure how to do this lol

#

nvm i think i figured it out. i have to run two commands:

grub-mkconfig -o /boot/grub/grub.cfg```
#

but how do i make these two into like a file which i click and it executes so i dont have to put it in the terminal every time?

prime wagon
prime wagon