Ask Your Question

Fedora 28 How to set Grub to remember the last selected entry

asked 2018-09-28 12:43:53 -0600

heliosstyx gravatar image

I am using a Multiboot-environment (BIOS) and I want to configure grub so, that it remembers the last selected entry(OS) for booting next time. Is it all right to add the following entry to /etc/default/grub: GRUB_SAVEDEFAULT=true and afterwards to run sudo grub-mkconfig -o /boot/grub/grub.cfg? Please explain, if that is the right way. THY

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-09-28 16:42:00 -0600

ed209 gravatar image

Almost. Fedora uses grub2, so in /etc/default/grub you should have the line


and as root run afterwards

 grub2-mkconfig -o /boot/grub2/grub.cfg
edit flag offensive delete link more



GRUB_DEFAULT=saved is not enough. You need GRUB_SAVEDEFAULT=trueas well, see

florian gravatar imageflorian ( 2018-09-28 22:54:41 -0600 )edit

It is enough. We're talking about Fedora, and it works as I said. I have


and it works as stated.

ed209 gravatar imageed209 ( 2018-09-29 18:18:10 -0600 )edit

I very much doubt it. In order to save the selected grub item at boot as the new default you have to have a line


in addition to GRUB_DEFAULT=saved

florian gravatar imageflorian ( 2018-09-29 21:12:17 -0600 )edit

answered 2018-09-29 21:21:17 -0600

florian gravatar image

Yes, when you want grub to remember the last selected entry as default for the next boot, it is required to add the following line to /etc/default/grub:



As @ed209 said, it's grub2-....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-09-28 12:43:53 -0600

Seen: 164 times

Last updated: Sep 29 '18