当 Customizer 失败时如何调整 Gnu Grub TIMEOUT

当 Customizer 失败时如何调整 Gnu Grub TIMEOUT

我已使用 Grub Customizer 将启动超时更改为 4 秒:Ubuntu 4.15.0-45 通用版。文件已更改,但启动顺序始终默认为 30 秒。30 秒延迟直到最近才出现,之后我才尝试更正超时参数。碰巧我双启动了 Win10,但这并没有什么区别,即使我调整了 Win10 超时 [这似乎适用于其他东西]。

相关文件 etc/default/grub 如下:-

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="4"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_GFXMODE="640x480"
GRUB_SAVEDEFAULT="false"

答案1

我忘了补充一下,这是 Ubuntu 18.04.2 LTS。无论如何,如果我点击 GRUB Customizer File 选项卡,然后点击 Change Environment,我可以看到 DEVICEMAP_FILE: /boot/grub/device.map 处有一个红色感叹号。使用此处的答案Ubuntu 14.04 上缺少 /boot/grub/device.map。我可以安装相关文件 - 一旦我使用 GRUB Customizer 保存了配置,这应该可以解决问题。

相关内容