Skip to content

Instantly share code, notes, and snippets.

@BoQsc
Last active July 20, 2019 15:25
Show Gist options
  • Save BoQsc/aae2812515b0af04648a9cef9ae327bf to your computer and use it in GitHub Desktop.
Save BoQsc/aae2812515b0af04648a9cef9ae327bf to your computer and use it in GitHub Desktop.
I have Dual Boot: Windows 10 + Ubuntu 19.10. I've got tired of Windows operating system. Today, I tried to remove timeout for the Grub2. However, simply setting Timeout to 0, in the file: /etc/default/grub did not work. This Workaround does work.

Problem: Setting Grub2 Timeout to 0 leads to the same Timeout 10, on Dual Boot.

These are the instructions to make Grub2 load Ubuntu directly.

  1. Open Grub2 Default Settings file: sudo gedit /etc/default/grub

  2. Changing the Grub2 Settings file

    1. Make sure GRUB_TIMEOUT is set to 0
    2. Make sure to add GRUB_DISABLE_OS_PROBER=true line somewhere.
    3. Make sure to add GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT line somewhere near as well.
    • Summary: These are the additions and changes to the file: /etc/default/grub

      GRUB_TIMEOUT=0
      GRUB_DISABLE_OS_PROBER=true
      GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
      
  3. Generate a new Grub2 Boot file: sudo update-grub

More information: https://askubuntu.com/a/698230
https://help.ubuntu.com/community/Grub2/Setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment