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

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.lryc.cn/news/510638.html

相关文章:

  • 从 GitLab.com 到 JihuLab.com 的迁移指南
  • 深度学习中的并行策略概述:2 Data Parallelism
  • Python大数据可视化:基于Python对B站热门视频的数据分析与研究_flask+hive+spider
  • 利用 Python 编写一个 VIP 音乐下载脚本
  • linux内核如何实现TCP的?
  • 【Spring】基于XML的Spring容器配置——FactoryBean的使用
  • Docker使用——国内Docker的安装办法
  • 电商会员门店消费数据分析
  • Vue.js 入门与进阶:打造高效的前端开发体验
  • Java包装类型的缓存
  • 【蓝桥杯——物联网设计与开发】拓展模块4 - 脉冲模块
  • .NET平台用C#通过字节流动态操作Excel文件
  • SpringMVC详解
  • springboot、spring、springmvc有哪些注解
  • Apache Commons ThreadUtils 的使用与优化
  • 重温设计模式--5、职责链模式
  • 下午四点半
  • 嵌入式单片机中Flash存储器控制与实现
  • loki failed to flush
  • 微信小程序打印生产环境日志
  • 利用 deepin-IDE 的 AI 能力,我实现了文件加密扩展
  • JPA 基本查询(五)
  • hiprint结合vue2项目实现静默打印详细使用步骤
  • 项目报 OutOfMemoryError 、GC overhead limit exceeded 问题排查以及解决思路实战
  • 【计算机-显示屏灰阶测试】
  • CSS系列(40)-- Container Queries详解
  • 工作生活做事慢效率低原因及解决方案
  • 各种数据库类型介绍
  • 了解智能运维
  • js实现仿windows文件名称排序