Many times because of the fast boot, we couldn’t see the Grub menu at the time of boot. Thus if you want to access it temporarily or increase the Grub menu time, so that we can access it, here is the tutorial.
Get to the GRUB menu at boot time
To make the Grub menu to appear permanently at the time of boot, we have to edit the Grub file, however, there is one temporary solution for that using the keyboard key.
View the Grub menu using the keyboard Shift key (temporary)
- Restart your Linux PC such as Ubuntu or any other you are using.
- Press and hold the
Shiftkey while the system is getting the boot.
- You will see the Grub menu, however, the shift key works for the Linux system running on Legacy BIOS booting.
- For Linux system booted using UEFI, for example, the latest Ubuntu 20.04, instead of using the shift key, press the
Esc, when the system gets booted.
- In a few seconds, the Grub menu will appear to select various options such as Advance and recovery.
If you always want to see the Grub menu without using any keyboard keys, follow the below method.
- Switch on your Linux system.
- Open a command terminal.
- Edit Grub file using the command:
sudo nano /etc/default/grub file
- Now either type “#” symbol at the starting of the line
GRUB_TIMEOUT_STYLE=hiddenor simply replace the hidden value with
menuas shown in the screenshot.
- Second, change the value of GRUB_TIMEOUT=0. Replace 0 with 25.
- To save the file press CTRL+O and then CTRL+X to exit.
- To reflect the changes, update the grub by running:
sudo update-grubto apply changes.
- Output for the above command:
[email protected]:~$ sudo update-grub [sudo] password for h2s: Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.4.0-28-generic Found initrd image: /boot/initrd.img-5.4.0-28-generic done
- Finally, reboot the system to see the Grub menu.