Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

opensuse的grub2引导修复——U盘修复[0]

Posted on 2023年11月14日 by

使用linux免不了会将系统搞崩溃,但是此次的崩溃还是有些以外。由于修改yast中的引导引起无法进入系统桌面,主要作怪的是新的内核没有包含英伟达的显卡驱动导致ACPI奔溃。鉴于是U盘安装的系统,手头的U盘没有格式化,就测试了修复的过程。

登录名root没有密码

操作过程:

#加载本机磁盘非U盘
lsblk  #列出磁盘
mount /dev/sda2 /mnt
mount -t proc proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
#进入目标系统
chroot /mnt /bin/bash
#重装grub2
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda2
#退出目标系统
exit
#重启主机
reboot

补充说明:

grub2的修复,并不能修复由于英伟达的显卡驱动丢失导致的问题,推荐直接重装系统。

总结:

在修改yast启动项,需要在grub2时将每个新项进行测试后再修改生效。生效后能够启动再删除多余的内核。

参考资料:

  1. https://zh.opensuse.org/%E4%BF%AE%E5%A4%8DGRUB2

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT