Grub-set/change the default selection

I have a habit of pressing the power button and then going away from the PC until it boots.This worked well with ubuntu,because GRUB had ubuntu as the default selection so i could just press the power button and do something else. However, i recently switched to manjaro. The GRUB in manjaro remembers the last OS i booted in and then sets that as the default selection during the next boot, and then i have to come and select the OS that i want to boot in.
How can i configure GRUB such that it has one selection that it defaults to during booting?

Im not familiar with manjaro, but try changing the GRUB_DEFAULT=0 (0 is the first entry, 1 the second and so on) line in /etc/default/grub.

You will probably need to run grub-mkconfig after that.

1 Like

I set GRUB_DEFAULT to 0, and i also ran grub-mkconfig after that.But it still sets the default as the OS i lasted booted in.

Although, something else i saw in that file was this option

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

I wonder what would happen if i set this to false...(but this is GRUB so i dont want to screw it up)

Remove true and then put false then run sudo update-grub then sudo grub-set-default

EDIT: If that does not work their is a program called Grub Customizer. At about 5:45 in the video he talks about boot order

2 Likes

If you do not want to edit config files there is also the grub-customizer that provides a gui to customize grub. I believe it is part of manjaro main repositories as well.