Make grub boot on default without waiting
Solution 1
In your /etc/default/grub
, you should uncomment #GRUB_HIDDEN_TIMEOUT=0
and should set GRUB_HIDDEN_TIMEOUT_QUIET
to true
as in:
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
Then do:
sudo update-grub2
If from then on you need access to the GRUB menu at boot time, press SHIFT after the BIOS finishes the boot process, but before the hard drive is used, and keep it pressed until GRUB appears.
‘GRUB_HIDDEN_TIMEOUT’
Wait this many seconds before displaying the menu. If ESC is pressed during that time, display the menu and wait for input according to ‘GRUB_TIMEOUT’. If a hotkey associated with a menu entry is pressed, boot the associated menu entry immediately. If the timeout expires before either of these happens, display the menu for the number of seconds specified in ‘GRUB_TIMEOUT’ before booting the default entry.
If you set ‘GRUB_HIDDEN_TIMEOUT’, you should also set ‘GRUB_TIMEOUT=0’ so that the menu is not displayed at all unless ESC is pressed.
This option is unset by default, and is deprecated in favour of the less confusing ‘GRUB_TIMEOUT_STYLE=countdown’ or ‘GRUB_TIMEOUT_STYLE=hidden’.
‘GRUB_HIDDEN_TIMEOUT_QUIET’
In conjunction with ‘GRUB_HIDDEN_TIMEOUT’, set this to ‘true’ to suppress the verbose countdown while waiting for a key to be pressed before displaying the menu.
This option is unset by default, and is deprecated in favour of the less confusing ‘GRUB_TIMEOUT_STYLE=countdown’.
Solution 2
If you have more than one OS, it's probably because of that. Try adding these lines into your GRUB file and updating GRUB.
GRUB_RECORDFAIL_TIMEOUT=0
GRUB_DISABLE_OS_PROBER=true
It worked for me. For reasons of adding these lines check out my post here.
Related videos on Youtube
Jeff Schaller
Unix Systems administrator http://www.catb.org/esr/faqs/smart-questions.html http://unix.stackexchange.com/help/how-to-ask http://sscce.org/ http://stackoverflow.com/help/mcve
Updated on September 18, 2022Comments
-
Jeff Schaller over 1 year
I would like grub(2) to boot on my main os without waiting. Every single time I start my computer, I either have to press
<Enter>
or wait for ten second. Is it possible for grub to boot directly without any prompt into my default OS ? And if yes how ?For information, I have linux mint with the cinnamon desktop.
An here is my
/etc/default/grub
file:# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=false GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
Thank you in advance.
-
devcomrade902 about 6 yearsIt does't work for some reasons. I have tried this in the past. I tried again and it doesn't work.
-
Rui F Ribeiro about 6 years@NilsANDRÉ-CHANG What happens if you also take out the splash from
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
? It may be unrelated, I would give it a try. -
devcomrade902 about 6 yearsGRUB_CMDLINE_LINUX_DEFAULT="quiet splash" is on by default.
-
Rui F Ribeiro about 6 yearsI sugested taking out the
splash
word -
saagarjha over 3 yearsOn Ubuntu this doesn't work because it will "helpfully" reset the timeout to 10 if you set it to zero. See askubuntu.com/questions/268744/grub-hidden-menu-not-working, askubuntu.com/questions/469347/…