Views:
2,939β
Votes: 2β
Tag :
grub2
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/905477
Title:
Unable to reduce Grub boot delay
ID:
/2017/04/16/Unable-to-reduce-Grub-boot-delay
Created:
April 16, 2017
Edited: April 20, 2017
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Grub ignores a timeout of zero and sets to 10 seconds
In your /etc/default/grub
you are passing the value β0β. Grub ignores timeouts of zero and resets the value to 10 instead. To βtrickβ Grub pass the value 0.0 which when tested by Grub is not equal to 0.
Setting timeout to zero
In my /etc/default/grub
I have these relevant lines setup:
#GRUB_DEFAULT=0 # Rather than option #1, we'll always default to last boot choice.
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_HIDDEN_TIMEOUT=0.0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0.0
Iβve used the values 0.0
without double quotes to reflect how numeric values are used.
Notice the first line is commented out. This means grub no longer defaults to the first menu option (in my case Kernel 4.9.21) but rather the last option booted with (in my case Kernel 4.4.0-72-generic from the Advanced Options Menu)
The second and third lines ensure you always boot to the same option last chosen.
Changing the boot option when no menu appears
A better method is to reduce timeout and provide option to force your menu to appear. This method is described here: How can I get my GRUB menu to be hidden, AND have the shift or esc keys show the hidden GRUB menu at boot time