您的位置:首页 > 其它

解决内核升级后不能重启系统的故障

2013-07-17 16:04 1056 查看
1.闲来无事,想升级下centos的内核。升级方法就不多讲了。
http://os.51cto.com/art/201107/274905.htm 按照这篇文章操作的

2.升级完后,重启系统,发现系统无法启动,具体原因是系统无法挂载文件系统。

3.在网上找了下资料,原因出在了initrd是旧版本mkinitrd生成的。
所以导致文件系统无法正常挂载
4.解决方法就是加入对旧版sysfs路径的支持,方法如下:
a.通过make menuconfig选中以下对应的选项
General setup -->
enable deprecated sysfs features to support old userspace tools
5.在这个前面加上* 是系统能支持。
6.然后我对内核文件进行了重新编译。
7.重启后成功加载文件系统,并使用了新的内核。

一下是系统报错内容,有些出入,可以参考:

Volume group "VolGroup00" not found
Unalbe to access resume device (/dev/VolGroup00/LogVol00)
mount: could not find filesystem '/dev/root'
setuproot:moving /dev failed: No such file or directory
setuproot:error mounting /proc: No such file or directory
setuproot:error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing:Attempted to kill init!
本文出自 “泡不到妞的可憐蟲” 博客,请务必保留此出处http://sunway.blog.51cto.com/3776215/1251414
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐