Archives For November 30, 1999

This simple tutorial shows how to hide / disable the Grub boot menu while booting Ubuntu.

You can do the job easily via Grub-Customizer (available in Ubuntu Software) under General Settings tab. However, you need to also disable “look for other operating systems” option.

Any time you want to show the Grub menu, press ESC while booting up will NO longer show dual-boot (multi-boot) systems other than Ubuntu.

NOT OK with Grub-Customizer settings? Re-enable “show menu” and “look for other operating systems” options, save changes, and do following steps one by one.

Hide boot menu by manually editing the config file:

In most Linux including Ubuntu, you can edit the /etc/default/grub file along with scripts under /etc/grub.d to control how the Grub boot menu works.

1.) Firstly, open terminal from system app launcher. Run command to edit the configuration file:

sudo -H gedit /etc/default/grub

For Ubuntu flavors / Linux Mint, replace gedit with your favorite text editor.

When the file opens, you need to set following lines:

  • GRUB_TIMEOUT_STYLE=hidden – Hide the boot menu. Though it still wait a few seconds you set by GRUB_TIMEOUT.
  • GRUB_TIMEOUT_STYLE=countdown – Hide boot menu and show countdown. Even set GRUB_TIMEOUT=0. It counts 3,2,1.
  • GRUB_TIMEOUT = 0 – It will boot the default OS immediately. However, you may set it to 3 or 5 so you can press ESC (F4 or hold Shift) during the time to show the boot menu if need.
  • GRUB_DISABLE_OS_PROBER=true – Disable “/etc/grub.d/30_os-prober” because it overwrite the value of GRUB_TIMEOUT_STYLE. However, it will no longer find other OSes other than Ubuntu.
  • GRUB_RECORDFAIL_TIMEOUT=0 – Set timeout if last boot failed. Without the key, it will show and stop at boot menu waiting user action.

2.) Step 1. will do the job after applying changes. However, it will no longer display other operating systems if any in your machine.

In case you want to boot other OS once in a while. Modify 30_os-prober file instead of disable it via “GRUB_DISABLE_OS_PROBER=true”.

To do so, run command:

sudo gedit /etc/grub.d/30_os-prober

And set quick_boot=”0″. So it will no longer overwrite “GRUB_TIMEOUT_STYLE” value you set in step 1, while also find other OSes on your machine.

3.) Finally apply changes via command:

sudo update-grub

How to restore:

Just undo what you did in step 1 and / or 2 and apply change by running command sudo update-grub.

This tutorial is going to show beginners how to easily disable or hide the Grub boot menu on startup.

Without dealing with Ubuntu configuration files, this can be easily done via a graphical tool called Grub Customizer.

1. Grub Customizer is not available in Ubuntu repositories until Ubuntu 19.04. So first open terminal (Ctrl+Alt+T) from application menu, then run command to add the software PPA:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

Type user password (no asterisks feedback) when it prompts and hit Enter to continue.

2. Then install the tool via command:

sudo apt install grub-customizer

3. Search for and launch Grub Customizer from application menu:

4. When the tool opens, do:

  • navaigate to Generate settings tab,
  • un-check the checkboxes for ‘show menu’ and ‘look for other operating systems’,
  • finally click the Save button to apply changes.

That’s it! For temporary use, you can press and hold the Shift key to access the grub boot menu on startup.

This quick tutorial is going to show you how to get rid of (hide) the annoying Grub boot menu while booting up Ubuntu and make it directly go to the login screen.

If you just have a single Ubuntu installed on your computer, Grub bootloader is hidden by default and you can press and hold Shift key to show the menu while booting.

If you have more that one kernel on your system, Grub menu keeps showing up on booting and you can follow below steps to hide it again.

Method 1: Edit the config file.

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, paste below command and run to edit the grub config file:

sudo gedit /etc/default/grub

You’ll be asked to type in user password. Type in mind and finally hit enter (terminal won’t display your password).

When the file opens, remove “#” before “GRUB_HIDDEN_TIMEOUT=0” and set “GRUB_HIDDEN_TIMEOUT_QUIET=true”. So it looks like:


GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=”`lsb_release -i -s 2> /dev/null || echo Debian`”
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=””

Save the file and apply the changes by running below command:

sudo update-grub

Method 2: Use graphical tool grub-customizer:

Grub Customizer is a graphical interface to configure the GRUB2/BURG settings and menu entries. Press Ctrl+Alt+T to open terminal. When it opens, run below commands one by one to install it from developer’s PPA:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer 

sudo apt-get update

sudo apt-get install grub-customizer

Open the app and do below changes:

  1. Switch to General settings.
  2. un-check the boxes which say “show menu” and “look for other operating systems.”
  3. Click refresh button.
  4. Click Save button.

That’s it. Enjoy!