周末公司断电,所以使用shutdown命令将CentOS关闭,周一回来后,启动CentOS报错:Kernal Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)
,在启动菜单选择老版内核后可以正常启动,但空有一个桌面,无法操作,ctrl+alt+f2切换至命令行界面,查看/etc/fstab、/boot/grub、/dev/disk/by-uuid、df,没有发现异常。在网络上找到的解决办法如下(删除内核,安装新内核):
https://www.centos.org/forums/viewtopic.php?t=22425
KernalPanic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)
8 posts • Page 1 of 1
Postby milindras » 2013/02/16 16:10:16
Hi,
This machine is a Virtual machines on VMWARE ESX. This guest OS is not stratingup after a POWER CRASH to the server. Its just straight away going to thefollowing message on the black screen.
Kernal Panic - Not syncing : VFS: unable to mount root fs on unknown-block(0,0)
The OS is CentOS 5.5 64 bit.
Its a live web server & I am trying to make it up since yesterday withoutsleep but no luck!!
I booted up from an ISOimage to the rescue mode, but quite not sure what to do.
Please assist me to resolve the problem.
Thank you inadvance.
Kind Regards
Mili[img]Libraries\Pictures\Error.png[/img]
Postby TrevorH » 2013/02/16 23:49:31
Can you choose an older kernel from the list presented by the grub menu atfirst boot if you hit Esc to interrupt it?
Postby milindras » 2013/02/17 09:56:11
Hi,
Thanks for the reply.
It doesnt give that options. When I press ESC, it giving me a boot menu.
One this I noticed that before I get the kernal panic error I was this error
error: no such disk & then the kernal panic error.
Thanks
Postby TrevorH » 2013/02/17 12:45:26
Did you change anything from the VMWare side of things? Did you updateyour CentOS system recently and not reboot afterwards? Can you boot from theinstall CD/DVD in rescue mode and see if the hard disks are seen correctly? Ifso, can you run fsck against the various volumes?
Postby cstacy » 2013/03/04 22:22:34
I am having this same panic. Using VMWARE Fusion I did a "yumupdate" which finished and dumped a new kernel. I thought I booted into itwithout problem. But after a normal CentOS shutdown and host reboot, I get thissame panic!
I can boot into the previous kernel without any problem.
What can I do to get this new kernel to work? The same fs works fine when Iboot into 2.6.32-279.11.1.e16.x86_64.
Perhaps it is relevant that the initramfs for the losing system is zero length,unlike all the other ones.
Postby cstacy » 2013/03/04 23:01:09
I did a "yum remove kernel-2.6.32-279.22.1.el6" and another"yum update" to re-install the kernel.
It completed normally.
I shut down, rebooted the VMWARE host, and was able to start the CentOS machinewithout problems.
No idea how the installation failed or was zapped the first time, but doing itagain seems to work.
Hopefully no underwear gnomes will assault my files now...
Postby georggg » 2013/11/30 20:15:28
Same here, works, thx
Postby BooRoNiC » 2015/02/05 15:40:27
Hello,
I got same error CentOS 7 on VMESXi 5.5.0.
CODE:
yum removekernel
CODE:
yum update
commands solve this problem.
Thanks a lot cstacy
Best regards.