直到我在 grub 上按回车键,我的系统才会启动。
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-grub
Grub Customizer,但没有任何帮助。我os-prober
的也不行。他们都在我使用 14.04 时工作,现在我使用的是 14.10。
查看您的实际
/boot/grub/grub.cfg
文件,您粘贴的文件不是“真实”文件。我的工作是在 10 秒后使用这些行选择一个“默认”条目(从零开始计数):
你有
我发现现在简单地删除
GRUB_HIDDEN_TIMEOUT
效果最好。简而言之,将上面的内容替换为您应该会看到菜单有 1 秒的超时时间。如果您想要其他样式,请参阅
GRUB_TIMEOUT_STYLE
(从命令行运行info -f grub -n 'Simple configuration'
,因为 grub 不包含合理的man
页面)。