Ubuntu20.04配置grub ,不必每次都输入 nomodeset

一、查看原来的grub配置:

复制代码
grep menuentry /boot/grub/grub.cfg

重点注意以下类似的核心版本号

gnulinux-5.15.0-92-generic-advanced-86a86651-8070-4338-92ee-8a1a13a98a05

gnulinux-5.15.0-67-generic-advanced-86a86651-8070-4338-92ee-8a1a13a98a05

============================================================

二、修改默认的grub配置,不必每次都输入 nomodeset

1.打开grub

复制代码
sudo vim /etc/default/grub

2.修改grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 在末尾添加 nomodeset ,即为: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

bash 复制代码
# 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=gnulinux-5.15.0-92-generic-advanced-86a86651-8070-4338-92ee-8a1a13a98a05
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"  #在末尾添加 nomodeset
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"
相关推荐
羌俊恩2 天前
统信UOS存在elfverify绕过漏洞
debian·grub·uos v20·内核升级·deb包
晚风吹人醒.3 个月前
Linux系统安全及应用(账号权限管理、登录控制、弱口令、端口扫描)
linux·运维·系统安全·grub·sudo·账号管理
奔跑吧 android5 个月前
【Docker】【03.使用docker搭建ubuntu20.04 Qt5.12 开发环境】
qt·docker·ubuntu20.04·qt5.12
潇然四叶草7 个月前
VMware虚拟机ubuntu20.04共享文件夹无法使用
vmware·ubuntu20.04·共享文件夹·hgfs·vmhgfs
Henson Liu8 个月前
ubuntu22.04 安装 petalinux 2021.1
ubuntu20.04·petalinux2021.1
Shier833_Ww8 个月前
Windows10+WSL2+Docker相关整理
docker·容器·ubuntu20.04·windows10·wsl2
麟城Lincoln9 个月前
【Linux-云原生-笔记】系统引导修复(grub、bios、内核、系统初始化等)
linux·笔记·云原生·bios·grub·系统修复·系统引导
halfpast310 个月前
Ubuntu20.04 gr-gsm完整安装教程
ubuntu20.04·gsm·gr-gsm·gnuradio
SamHou01 年前
从 UEFI 启动到双系统——记一次双系统 Linux 分区迁移
linux·windows·grub
Natsuagin1 年前
轻松美化双系统启动界面与同步时间设置(Windows + Ubuntu)
linux·windows·ubuntu·grub