Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to modify the startup time of grub in ubuntu

Shulou Source: shulou.com Published: 2022-06-01 20:33:44 10月02日 Update

This article is about how to modify the startup time of grub in ubuntu. I think it is very practical, so I share it with you. I hope you can get something after reading this article.

The start-up time of online query modification grub is basically modification / etc/default/grub

# comment out GRUB_HIDDEN_TIMEOUT=0#GRUB_HIDDEN_TIMEOUT=0# and modify GRUB_TIMEOUT = 0 GRUB_TIMEOUT = 0

Then run update-grub to regenerate / boot/grub/grub.cfg. However, it doesn't work. You still have to wait 30 seconds.

View / boot/grub/grub.cfg

# BEGIN / etc/grub.d/00_header # #... function recordfail {set recordfail=1 # GRUB lacks write support for lvm, so recordfail support is disabled.}... if ["${recordfail}" = 1]; then set timeout=30...if [$grub_platform = efi]; then set timeout=30...### END / etc/grub.d/00_header #

As you can see from the above configuration, the timeout is 30 seconds for lvm partitions and 30 seconds for EFI startup. Priority EFI > LVM.

Then take a look at the / etc/grub.d/00_header script that generated this configuration.

... Cat

Tags: Time generation more knowledge article run configuration utility priority that is work meeting article method comment look knowledge point online query script industry details Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi Microsoft NVidia macOS