Ask Your Question

how can I set which Fedora version I want as default at startup

asked 2016-06-06 01:31:43 -0500

mpduty gravatar image

My Fedora startup shows a number of options with several Fedora versions. How do I set which one I want as the default at startup.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-06 02:34:51 -0500

swilson gravatar image

As root:

  • Edit /etc/default/grub and edit the GRUB_DEFAULT line to reflect the number you want as the default. Numbering starts at 0.
  • Save the file.
  • Run grub2-mkconfig -o /boot/grub2/grub.cfg
  • Reboot and verify the correct entry is the default.
edit flag offensive delete link more


And how would the commands look like on an EFI system?

florian gravatar imageflorian ( 2016-06-06 11:05:35 -0500 )edit

my GRUB_DEFAULT=saved. So should I make it 2 if I want the third option as default?

mpduty gravatar imagempduty ( 2016-06-06 11:43:01 -0500 )edit

okay it worked, what if I want to remove the other options from the menu altogether?

mpduty gravatar imagempduty ( 2016-06-06 11:47:07 -0500 )edit

Yes you can put a 2 or you may want to set the title of the boot entry. In that case you make sure your default remains, even if the order number changes (in case there are additional kernels installed and your desired default moves down by one.) See this one here:

florian gravatar imageflorian ( 2016-06-06 11:49:53 -0500 )edit

Another thing you could do: Set GRUB_SAVEDEFAULT="true" (and keep GRUB_DEFAULT=saved). Then your Grub will remember the entry you booted last time, and it will boot that.

florian gravatar imageflorian ( 2016-06-06 11:53:48 -0500 )edit

Question Tools

1 follower


Asked: 2016-06-06 01:31:43 -0500

Seen: 92 times

Last updated: Jun 06 '16