加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

解决因升级Centos导致引导失败

(2022-03-25 12:49:27)
系统无法引导,之前5.xxx的kernel ,还原为3.10.xxxxx的kernal
默认启动报错:
linux image:/boot/vmlinuz-5.4.92-1.el7.elrepo.x86_64 Found

解决:
选择第二个启动项,进入救援模式,输入以下命令

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file …
Found linux image: /boot/vmlinuz-3.10.0-957.10.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.10.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f968ef350cd04cd1b19a7091ea0e75c2
Found initrd image: /boot/initramfs-0-rescue-f968ef350cd04cd1b19a7091ea0e75c2.img
done
[root@localhost ~]# rebootit

重启完成后查看内核信息:
[root@localhost ~]# uname -a

0

阅读 收藏 喜欢 打印举报/Report
后一篇:TCP状态
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有