I think it is easier to ensure that the grub menu appears at every boot but for only 2 or 3 seconds, not the default 10 seconds.
Use command
Code:
sudoedit /etc/default/grub
and edit the lines as shown below. All other lines in the menu can remain unchanged.
After these edits run command sudo update-grub
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=2
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_DISTRIBUTOR="Ubuntu2404" #this edit is not important so can be left unedited.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Bookmarks