Is it possible to change the timeout that grub uses at the menu to boot Ubuntu? I think the default is around 20-30 seconds but I would like to change this to 5 seconds if possible.
![]()
Is it possible to change the timeout that grub uses at the menu to boot Ubuntu? I think the default is around 20-30 seconds but I would like to change this to 5 seconds if possible.
![]()
Last edited by Graham1; January 2nd, 2021 at 09:26 AM.
Yes, it is possible but personally I don't recommend it. If you're seeing the Grub menu it's because you have a dual-boot or multi-boot. 5 seconds is probably very short for comfortably select another OS. BTW, the default is 10 seconds.
But if you want to do it then:
and changeCode:sudoedit /etc/default/grubto the value you want.Code:[COLOR=var(--highlight-color)]GRUB_TIMEOUT=10[/COLOR]
There are literally thousands of pages on the net saying the same thing. Googling would have been a lot faster then posting and waiting for an answer.
Hi CelticWarrior
Thanks for the quick reply. The machine I'm setting up is for Mame and Retroarch only, so no other OS involved. I think the menu was added due to UEFI as I was unable to install the good old fashioned way
. I'm sure the timeout was at least 20 seconds, so really want it to boot as quick as possible with the option (briefly) should I need to get into the settings. If I break things, hopefully Timeshift will come to my rescue.
![]()
UEFI or BIOS installs do NOT show the Grub menu with only Ubuntu installed.
That's a good thing. Why would any sane person want the "old-fashioned way" in a modern UEFI machine?I was unable to install the good old fashioned way![]()
I'm sure the default is 10 seconds. Unless you changed it to 20 - in which case this whole thread would be nonsensical - then no, you're absolutely wrong about that. It's possible that you're considering the POST also but you shouldn't, the Grub timeout counts from the moment the POST is over and the firmware relays control to the OS. And while you can change the Grub timeout value, you CAN'T change the time your specific computer takes until it finally starts some bootloader.I'm sure the timeout was at least 20 seconds
I would also agree but in this case, only Ubuntu 18.04.5 is installed and was partitioned manually. Existing partitions deleted prior to install.
Personally, I have found UEFI to be a PITA and for this setup, security isn't required.That's a good thing. Why would any sane person want the "old-fashioned way" in a modern UEFI machine?
Having checked, the timeout was 30 seconds. This wasn't a one off as I re-installed Ubuntu twice with the same results. For some reason, I couldn't install grub (during installation) without having UEFI enabled in the BIOS. Having used mostly older equipment (non uefi), this may have been the reason as Ubuntu forces you to create an EFI partition. Thinking about it, this may have been due to having a GPT partition instead.I'm sure the default is 10 seconds. Unless you changed it to 20 - in which case this whole thread would be nonsensical - then no, you're absolutely wrong about that. It's possible that you're considering the POST also but you shouldn't, the Grub timeout counts from the moment the POST is over and the firmware relays control to the OS. And while you can change the Grub timeout value, you CAN'T change the time your specific computer takes until it finally starts some bootloader.
![]()
FWIW, Canonical includes the following base settings for /etc/default/grub.ucf-dist (comments redacted):
For my Hot Rod gPC and a system I'm prepping for projector duty in a house of worship, I set GRUB_TIMEOUT=5 and GRUB_INIT_TUNE="480 440 1". The GRUB Menu has an independent default countdown.Code:GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="debug" GRUB_CMDLINE_LINUX="" #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" #GRUB_TERMINAL=console #GRUB_GFXMODE=640x480 #GRUB_DISABLE_LINUX_UUID=true #GRUB_DISABLE_RECOVERY="true" #GRUB_INIT_TUNE="480 440 1"
As of 29 December 2020 I'm still waiting on a reply to a question on configuring an Acer G43T-AM-based system with a Creative Technology CA0102-equipped audio card for boot parameters and whether I can use a 64-bit kernel with an audio card with a 31-bit DMA controller.
Last edited by bcschmerker; December 30th, 2020 at 12:30 AM. Reason: Append relevant data.
Video Drivers:
nVIDIA® nForce® chipsets require discrete GPU's up to Kepler and appropriate nVIDIA Kernel modules.
Most intel® ExpressSets™ and AMD® RS-Series are fully supported in open source.
Bookmarks