The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 2,832β€…    Votes:  2β€…
Tag : grub2  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

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: December 3, 2023    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.

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

⇧ Selecting files from different folders How well does Intel Graphics on Linux work vs Windows, for gaming and day-to-day use?  β‡©