Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the startup time of grub in ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report