20241227通过配置nomodeset参数解决更新grub之后,ubuntu20.04.5无法启动的问题
2024/12/27 17:34
0.397475]pci0000:00:07.0:DPC:RPPI0 l0gsize 0 is invalid
'dev/nvmeon1p9:clean,251849/4276224 files,3266309/17089792 blocks
缘起:公司电脑要安装加密软件,对于ubuntu20.04.5使用linux-6.8的内核安装加密软件失败。
售后要求切换到linux-5.15了。【内置的摄像头在guvcview下没有声音了/有些驱动没有了。】
百度/BING:'dev/nvmeon1p9:clean,251849/4276224 files,3266309/17089792 blocks
https://blog.csdn.net/Machine_yan/article/details/109736020
ubuntu开机卡在/dev/nvme0n1p2: clean 进入不了图形界面 - 20.1117
主要步骤:
1、Ctrl+Alt+F2进入命令行,输入用户名、密码。
2、sudo vi etc/default/grub, 照着那篇博客里讲的改好
3、sudo update-grub
4、reboot
https://blog.csdn.net/u013862444/article/details/103005800
ubuntu 黑屏 进入不了图形界面 dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks
二)、修改grub 引导项(很多人通过这个解决了,但是这招对我没用)
在黑窗口里面(Ctrl+Alt+F2-7都行,输入用户名、密码),输入
sudo gedit /etc/default/grub
找到quiet splash并在后面添加nomodeset;修改前:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
修改后:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset“
然后输入【在启动菜单的recovery模式中】
sudo update-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="1>2"
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
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"
修改为:
# 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="1>2"
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"
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"
参考资料:
百度:PCI DPC RP PIO LOG size 0 is invalid
https://blog.csdn.net/qq_45401419/article/details/125578145
ubuntu 系统安装与问题汇总