我在 ThinkPad X200 上使用 Ubuntu MATE 16.04。出于某种原因,我无法在启动时访问 GRUB 菜单。当我shift
在启动屏幕后立即点击时,GRUB loading
(或类似的东西)短暂出现,然后我得到一个空白屏幕,然后正常启动过程重新开始,我发现自己有正常的 LUKS 密码提示(我使用的是全盘加密)。
然后,我尝试禁用 中的图形终端/etc/default/grub
,但随后我得到了error: no video mode activated
,并且它再次继续正常启动过程。
/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_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.unit=multi-user.target consoleblank=0"
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=640x480
# 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"
答案1
我有同样的问题。您可以通过注释掉行GRUB_HIDDEN_TIMEOUT=0
或并确保设置为大于的某个数字来强制显示 GRUB 菜单。GRUB_TIMEOUT_STYLE=hidden
/etc/default/grub
GRUB_TIMEOUT
0
例如
sudo nano /etc/default/grub
并将该行改为:
#GRUB_HIDDEN_TIMEOUT=0
或者
#GRUB_TIMEOUT_STYLE=hidden
确保GRUB_TIMEOUT=
值大于 0(我可以看到默认值为 10,因此您可以保留原样,但在更高版本中默认值可能会设置为 0),保存并退出
然后运行
sudo update-grub