当前位置: 首页 > article >正文

20241227通过配置nomodeset参数解决更新grub之后,ubuntu20.04.5无法启动的问题

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 系统安装与问题汇总


 


http://www.kler.cn/a/459663.html

相关文章:

  • spring mvc源码学习笔记之五
  • CSS——2.书写格式一
  • 掌握RabbitMQ:全面知识点汇总与实践指南
  • RocketMQ面试题:进阶部分
  • C++ —— 智能指针
  • NLP 复习大纲
  • 移动 APP 设计规范参考
  • GXUOJ-算法-第二次作业(矩阵连乘、最长公共子序列、0-1背包问题、带权区间调度)
  • 工厂方法模式详解
  • Redis - 1 ( 7000 字 Redis 入门级教程 )
  • 语言模型在时间序列预测中的作用
  • PHP关键字Self、Static和parent的区别
  • 小程序中引入echarts(保姆级教程)
  • 对jenkins的rpm进行处理
  • Windows配置IE浏览器不自动跳转到Edge
  • Spring中的设计模式
  • 秒杀场景的设计思考
  • Webpack学习笔记(9)
  • 掌握 PostgreSQL 的 psql 命令行工具
  • 宝塔服务器安装备份配置
  • Effective C++ 条款36:绝不重新定义继承而来的 non-virtual 函数
  • 钉钉h5微应用鉴权
  • 数仓建模:如何进行实体建模?
  • 数据结构之线性表之链表(附加一个考研题)
  • docker学习记录-部署若依springcloud项目
  • 4.3 数据库HAVING语句