CentOS启动报错:Centos kernel panic-not syncing:VFS:Unable to mount root fs on

  • A+
所属分类:Linux
CentOS启动报错:Centos kernel panic-not syncing:VFS:Unable to mount root fs on

这是由于更新内核出现的问题

解决方法,在开机启动时,选择下面的旧版本的内核启动,正常进入后,需要设置内核启动项来改变默认启动内核。以下操作需要root权限。

1.查看当前默认内核启动项 

grub2-editenv list

2.查看当前系统使用内核

uname -r

3.查看可以使用的内核项

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg

4.更改默认启动内核项

 grub2-set-default 1

5.重启系统

reboot

转载: https://blog.csdn.net/qq_40707451/article/details/91126372

zore

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: