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

周末公司断电,所以使用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.

 


无法定位软件包 `nfs-kernel-server` 表示在尝试安装或更新 `nfs-kernel-server`(NFS 内核服务器)时,你的包管理器无法在系统中找到该软件包。NFS(网络文件系统)是一种用于分布式文件系统的协议,允许计算机之间共享文件和存储设备。 这种情况可能由几个原因造成,包括但不限于: 1. 仓库配置错误:可能是系统的软件仓库配置不正确或仓库源不可用。 2. 系统未更新:系统可能没有更新到最新状态,导致包管理器无法识别新的包名称或版本。 3. 软件包名称错误:可能是软件包名称输入错误,应该检查软件包的正确名称。 4. 缺少依赖:安装 `nfs-kernel-server` 可能需要先安装或更新其他依赖软件包。 解决这个问题的方法通常包括: 1. 更新软件源列表:运行系统更新命令,如 `sudo apt update`(对于基于Debian的系统),以确保软件包列表是最新的。 2. 检查仓库设置:确认你的软件源仓库设置正确,如果需要,可以添加或替换为正确的NFS软件仓库。 3. 检查软件包名称:确认你尝试安装的软件包名称是否正确,因为一些发行版可能已经将软件包名称更改为 `nfs-kernel-server`。 4. 安装依赖:确保所有必要的依赖包都已安装,或者尝试先安装这些依赖。 如果你使用的是基于Debian的系统,如Ubuntu,可以通过以下命令来尝试解决: ```bash sudo apt update sudo apt install nfs-kernel-server ``` 如果你使用的是其他类型的Linux发行版,请使用对应的包管理工具和命令来解决问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值