How to Configure the GRUB Bootloader Timeout in Ubuntu to Boot Faster

Why Change the GRUB Timeout?

GRUB (GRand Unified Bootloader) is the default boot manager used by Ubuntu and many other Linux distributions. If you have a dual-boot setup (e.g., Ubuntu and Windows) or multiple kernel versions installed, GRUB pauses during the boot process to display an OS selection menu. By default, Ubuntu usually sets this timeout to 10 seconds. This means your computer literally sits idle for 10 seconds every time you turn it on, waiting for input. If you almost always boot into the same primary operating system, reducing this timeout to 1 or 2 seconds can significantly speed up your boot time without entirely removing your ability to access the menu if needed.

How to Edit the GRUB Configuration File

To change the timeout, you must edit the master GRUB configuration file using a terminal text editor.

  1. Open your Terminal in Ubuntu (Ctrl + Alt + T).
  2. Open the GRUB configuration file with root privileges using the Nano text editor by running this command:
  3. sudo nano /etc/default/grub
  4. Enter your administrator password when prompted.

Modifying the Timeout Value

Once the file is open in Nano, you need to locate and change the specific timeout variable.

  1. Look for the line that says GRUB_TIMEOUT=10.
  2. Use your arrow keys to navigate to that line and change the number from 10 to your preferred delay. For example, to set a two-second delay, change the line to:
  3. GRUB_TIMEOUT=2
  4. Note: Do not set this to 0 if you are dual-booting, as it will make it nearly impossible to select your secondary operating system. A value of 1 or 2 is recommended for fast booting.
  5. Once you have made the change, save the file by pressing Ctrl + O, then press Enter to confirm the filename.
  6. Exit Nano by pressing Ctrl + X.

Updating the Bootloader

Editing the text file is not enough; you must instruct the system to generate a new boot configuration based on your changes.

  1. In the terminal, run the following command:
  2. sudo update-grub
  3. You will see the terminal output as it scans for operating systems and generates the new grub.cfg file.

Once the command completes, restart your computer. You will notice that the GRUB menu now only pauses for the brief period you specified before automatically booting the default operating system.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.