kernel panic-not syncing:VFS:Unable to mount root fs on unknown-block

故障信息

kernel panic-not syncing:VFS:Unable to mount root fs on unknown-block_第1张图片

 

 

解决方案:

 

进入系统后修改内核启动,然后查看更改是否生效重启

开机启动时按Esc,然后选择下面的旧版本的内核启动即可。

 

(成功进入系统后,你可以选择改变开机默认选择的内核)。

 

#####################################################################

[root@node-1 ~]#

[root@node-1 ~]# cat /boot/grub2/grub.cfg |grep menuentry

if [ x"${feature_menuentry_id}" = xy ]; then

  menuentry_id_option="--id"

  menuentry_id_option=""

export menuentry_id_option

 

menuentry 'CentOS Linux (3.10.0-1062.18.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-be99dad8-7abd-4dd1-8331-83ce73931ed7' {

menuentry 'CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-be99dad8-7abd-4dd1-8331-83ce73931ed7' {

menuentry 'CentOS Linux (3.10.0-693.17.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-be99dad8-7abd-4dd1-8331-83ce73931ed7' {

menuentry 'CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-be99dad8-7abd-4dd1-8331-83ce73931ed7' {

menuentry 'CentOS Linux (0-rescue-60938260b9bf4f25babd62b36082240e) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-60938260b9bf4f25babd62b36082240e-advanced-be99dad8-7abd-4dd1-8331-83ce73931ed7' {

 

当前 :”CentOS Linux (3.10.0-1062.18.1.el7.x86_64) 7 (Core) “ 此内核启动失败,

修改为: ‘CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)'   为默认启动的内核;

 

[root@node-1 ~]# grub2-set-default "CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)"

 

[root@node-1 ~]# grub2-editenv list

saved_entry=CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)

[root@node-1 ~]# reboot

你可能感兴趣的:(系统)