Ubuntu: How do I set the grub timeout and the grub default boot entry?
Channel: Roel Van de Paar
Date: 17/06/2019

Ubuntu: How do I set the grub timeout and the grub default boot entry?


Question: In Ubuntu 12.04 (or above), how do I set the GRUB time and the default OS (that
I see at boot time) as I'm dual-booting Windows (7/8) and Ubuntu (12.04 or
above)?

Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):

== This solution helped 12 people ==
You can use an application called https://launchpad.net/grub-customizer. It is
much more easier.
You can install it by:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
There is an https://www.howtogeek.com/about/ article about it, How_to_Configure
the_Linux_GRUB_2_Boot_Menu_the_Easy_Way. Also, there is a solved thread on the
Ubuntu Forums, Change_boot_order_in_GRUB_2 that mentions this tool.
Here are some screen shots of this software:
[screen_1]
[screen_2]
[screen_3]

== This solution helped 1 person ==
This doesn't work for me on 16.04, too.
But I fixed it by changing the file /boot/grub/grub.cfg
sudo vim /etc/default/grub
https://i.stack.imgur.com/JXraJ.png
sudo update-grub
sudo chmod u+w /boot/grub/grub.cfg
sudo vim /boot/grub/grub.cfg
https://i.stack.imgur.com/v9gyC.png
###segment in /boot/grub/grub.cfg:
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
#set timeout=10 # comment this original
set timeout=0 # add this
fi

sudo chmod -w /boot/grub/grub.cfg
reboot

== This solution helped 217 people ==
    * Press Alt + F2, type gksudo gedit /etc/default/grub press Enter and enter
      your password.
    * You will see the following contents:
      GRUB_DEFAULT=0
      GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2＞ /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
      GRUB_CMDLINE_LINUX=""
    * You can change the default from 0 to any number, corresponding to the
      entry in the Grub bootup menu (first entry is 0, second is 1, etc.)
    * You can change the "hidden timeout" (no menu); and also display the
      countdown (GRUB_HIDDEN_TIMEOUT_QUIET=false)
    * You can force the grub menu to show by commenting out the two GRUB_HIDDEN
      lines with a # at the beginning of the line
    * And set the grub menu timeout (default is 10 seconds)
    * Make your changes, press Ctrl + S to save and Ctrl + Q to exit
    * Important: Open a terminal with Ctrl + Alt + T and type sudo update-grub
      to apply the changes you just made
    * Reboot and you should see your timeout/default entry change
----
Linked Question:
    * https://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-
      the-default-in-the-boot-loader

With thanks & praise to God! With thanks to all the many who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music & music license: https://www.bensound.com/royalty-free-music | Images & images license: https://stocksnap.io/license and others | With thanks to user wjandrea (https://askubuntu.com/users/301745), user VictorLee (https://askubuntu.com/users/815517), user Sean (https://askubuntu.com/users/81769), user meteors (https://askubuntu.com/users/68760), user Kolappan Nathan (https://askubuntu.com/users/234891), user jsfines (https://askubuntu.com/users/597771), user ish (https://askubuntu.com/users/58612), user CeDeROM (https://askubuntu.com/users/869333), user belacqua (https://askubuntu.com/users/8844), and the Stack Exchange Network (http://stackoverflow.com/questions/148095). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.