使Grub Bootloader无限期等待操作系统选择

If you are doing a lot of testing of different builds, there’s nothing more annoying than rebooting and then having the system boot into the wrong choice on the grub menu before you have a chance to pick the one you want. Reader Victor wrote in with this tip: You can just comment out the timeout line entirely to stop grub from picking anything, giving you time to get your morning coffee.

如果您要对不同的版本进行大量测试,那么除了重新引导然后在grub菜单上使系统引导到错误的选择之外,没有什么比这更令人讨厌的了,然后才有机会选择所需的版本。 读者Victor写道:“您可以完全注释掉超时行,以阻止grub采摘任何东西,给您时间来喝杯早晨咖啡。

All you need to do is open up the /boot/grub/menu.lst file in your favorite text editor (in sudo mode)

您需要做的就是在您喜欢的文本编辑器中打开/boot/grub/menu.lst文件(在sudo模式下)

sudo vi /boot/grub/menu.lst

须藤vi /boot/grub/menu.lst

Find the section of the file that contains the timeout information

找到文件中包含超时信息的部分

## timeout sec# Set a timeout, in SEC seconds, before automatically booting the default entry# (normally the first entry defined)# timeout      3

## timeout sec#在自动引导默认条目之前设置超时(以SEC秒为单位)#(通常是定义的第一个条目)#超时3

Just put a # before the “timeout 3” line in the file, then save and restart your computer.

只需在文件中的“超时3”行之前放置#,然后保存并重新启动计算机即可。

使Grub Bootloader无限期等待操作系统选择

Now grub will wait forever until you make a choice. This is especially useful if you want to prevent your computer from ever booting into Windows…

现在,grub将永远等待,直到您做出选择。 如果您想防止计算机引导进入Windows,这将特别有用。

翻译自: https://www.howtogeek.com/howto/ubuntu/make-grub-bootloader-wait-indefinitely-for-os-selection/