Posted On September 13, 2020

Ubuntu/Lubuntu 20.04 GRUB_TIME=0 Defaults to 10 Seconds Instead of Zero

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Ubuntu/Lubuntu 20.04 GRUB_TIME=0 Defaults to 10 Seconds Instead of Zero
# GRUB configuration that still resulted in a count-down of 14 seconds
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/d7623939-d093-4461-bcd9-deef3e22427c"
GRUB_CMDLINE_LINUX=""

# Option 1: Fix this bug

sudo vim /etc/grub.d/30_os-prober
### comment out the last line ###
#adjust_timeout

sudo vim /etc/default/grub
### Set these 2 lines ###
GRUB_TIMEOUT=1 # value of 1 will count as 1,0; while, value of 0 will be converted to 3,2,1,0
GRUB_TIMEOUT_STYLE=hidden
GRUB_RECORDFAIL_TIMEOUT=0

# Tested these to see no effects
# Save the $timeout and $timeout_style values set by /etc/grub.d/00_header
# before /etc/grub.d/30_os-prober misconfigures them
sudo cat << EOF > /etc/grub.d/25_pre-os-prober
set timeout_bak=\${timeout}
set timeout_style_bak=\${timeout_style}
EOF

# Reset $timeout and $timeout_style to their original values set by /etc/grub.d/00_header
# before /etc/grub.d/30_os-prober misconfigures them
sudo cat << EOF > /etc/grub.d/35_post-os-prober
set timeout=\${timeout_bak}
set timeout_style=\${timeout_style_bak}
EOF

sudo update-grub

# Option 2: install Grub customizer
# sudo apt install Grub2customizer

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Using Python to Automate Video Playing on Ubuntu

This little snippet was generated using ChatGPT with more than a little bit of prompting…

VMware Virtual Disk Manager Does Not Expand Partitions

If you are using the VMware Virtual Disk Manager included in GSX Server, VMware Server,…

How to Create USB Bootable Drive on Ubuntu

Navigate to Start Menu > System Tools > Startup Disk Creator Verify that the Source…