Grub timeout set to 30 after upgrade

17,323

Solution 1

This thread grub-recordfail-broken-regarding-lvm tries to get to the bottom of the problem.

If you are looking for a quick fix, you can

sudo sh -c 'echo GRUB_RECORDFAIL_TIMEOUT=5 >> /etc/default/grub';
sudo update-grub;
  • thank @borislav for pointing out sudo grub-install; is not needed for configuring Grub menu timeout

Solution 2

It worked for me to add

GRUB_RECORDFAIL_TIMEOUT=0

in /etc/default/grub

and then run

sudo update-grub

Solution 3

I had the same issue. This fixed it for me:

In a terminal window run:

sudo sed -i "/recordfail_broken=/{s/1/0/}" /etc/grub.d/00_header

then

sudo update-grub

courtesy of: https://forums.linuxmint.com/viewtopic.php?t=287026

Share:
17,323

Related videos on Youtube

James Pascaleff
Author by

James Pascaleff

Updated on September 18, 2022

Comments

  • James Pascaleff
    James Pascaleff over 1 year

    Today I ran a routine "apt upgrade", and it upgraded several GRUB-related packages. I am using GRUB 2.02 on Ubuntu 18.04 LTS.

    After this, the GRUB menu appears on every boot with a 30 second timeout.

    Previously, the GRUB menu was hidden.

    Any ideas as to what might cause this? My /etc/default/grub is below.

    # 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_TIMEOUT_STYLE=hidden
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="--verbose nosplash debug"
    GRUB_CMDLINE_LINUX=""
    
    • Felipe
      Felipe about 5 years
      This is a bug that has been reported and fixed. It will come soon to everybody: bugs.launchpad.net/ubuntu/+source/grub2/+bug/1814403
    • Ubuntu_enthusiast
      Ubuntu_enthusiast over 4 years
      From the thread above it seem like it's not been fixed for UEFI and LVM. Reducing GRUB_TIMEOUT doesn't change anything. Still getting 30 second wait.
    • jpaugh
      jpaugh over 3 years
      @Ubuntu_enthusiast Great! I have UEFI and LVM! Lol.
  • Bo rislav
    Bo rislav over 4 years
    are you sure that sudo grub-install is needed? In my system (elementary OS based on Ubuntu 18.04) execution of grub-install finishesh with update-grub, also why it have to be done when only this line into config file do the job?
  • Terence Ho
    Terence Ho over 4 years
    @Borislav you are right, grub-install only installs MBR and is not needed for the Grub menu timeout