我的系统不是双启动的,我在“金属上”运行标准的 Ubuntu 桌面系统(我认为在 VM 中运行它是一样的)。
c启动时按下不会导致 GRUB 菜单出现(我相信它适用于双启动系统)。
如何让 GRUB 菜单在单引导系统上显示?
我试图将我的 grub 配置文件更新为超时值为 0,因此操作系统启动很快。我/etc/default/grub
在 Ubuntu 18.04 上修改了配置文件,然后运行:
sudo update-grub
Run Code Online (Sandbox Code Playgroud)
它没有用。我也跑了:
sudo grub-mkconfig
sudo update-grub
Run Code Online (Sandbox Code Playgroud)
但他们没有工作。
我在网上搜索了很多来解决这个问题,但所有指南都说运行 update-grub 命令来通过/etc/default/grub
配置文件更新 grub 。我不知道 Ubuntu 18.04 是否以不同的方式处理 grub 文件,但我无法用我的参数更新我的 grub。
这是我的/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=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# …
Run Code Online (Sandbox Code Playgroud)