Kernal Panic

升级了一下centos6.5

执行了 yum -y update

reboot

出现了以下问题:

Kernal Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)

Kernal Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)

Kernal Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)

原因是由于linux系统内核冲突。

原来升级前的内核可以启动。

解决方案有两个。推荐第一个。

1.进入前一个版本的系统,执行以下命令即可

yum remove kernel
yum update
 
 
2.修改默认启动的内核项目
Vim /boot/grub/grub.conf
-----------------

#boot=/dev/sda

#修改默认启动内核项目,从0开始计数
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu

#以下是系统中存在的内核版本列表
title CentOS (2.6.18-194.17.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.17.1.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.17.1.el5.img
title CentOS (2.6.18-194.17.1.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-194.17.1.el5
module /vmlinuz-2.6.18-194.17.1.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-194.17.1.el5xen.img
title CentOS (2.6.18-194.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-194.el5
module /vmlinuz-2.6.18-194.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-194.el5xen.img
title CentOS-base (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.el5.img
-----------------------------------
默认由0开始计数,将default值改为你要启动的数字即可。
原文地址:https://www.cnblogs.com/amwuau/p/6432414.html