这不是这个问题的重复——那个问题涉及双引导情况。
我在主硬盘驱动器/引导设备上安装了完整的 Ubuntu 20.04(在 Thinkpad p1 gen 2 上),没有其他操作系统。当我打开笔记本电脑并且什么都不做时,它会引导到 grub 菜单,其中默认选项是引导 Ubuntu。
我想跳过 grub 菜单并直接启动 Ubuntu。我的(股票)/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_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
添加
GRUB_RECORDFAIL_TIMEOUT=0
到您的/etc/default/grub
(sudo
需要对其进行编辑),然后运行sudo update-grub
.
只需重新启动,系统就会直接启动 Ubuntu,而无需在 grub 菜单上暂停。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句