GRUB 未启动默认系统

GRUB 未启动默认系统

直到我按下 grub 上的 Enter 键,系统才能启动。

cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_TIMEOUT_STYLE="countdown"
GRUB_DEFAULT="0"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET="false"
GRUB_TIMEOUT="1"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw init=/lib/systemd/systemd"
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'
#GRUB_GFXMODE="1280x1024"

# 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_DISABLE_OS_PROBER="false"
GRUB_RECORDFAIL_TIMEOUT="0"

GRUB_SAVEDEFAULT="false"

为什么设置不起作用GRUB_TIMEOUT?我运行了update-grubGrub Customizer,但没有任何帮助。我的os-prober也不起作用。当我使用 14.04 时它们都正常工作,现在我使用的是 14.10。

答案1

看看你的实际/boot/grub/grub.cfg文件,你粘贴的文件不是“真实的”文件。

我的工作是 10 秒后选择一个“默认”条目(从零开始计数),如下所示:

set timeout=10
set default=0

答案2

你有

GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET="false"
GRUB_TIMEOUT="1"

我发现现在直接删除GRUB_HIDDEN_TIMEOUT效果最好。简而言之,将上面的内容替换为

GRUB_TIMEOUT="1"

您应该会看到菜单超时 1 秒。如果您想要其他样式,请参阅GRUB_TIMEOUT_STYLEinfo -f grub -n 'Simple configuration'从命令行运行,因为 grub 不包含合理的man页面)。

相关内容