Chinaunix首页 | 论坛 | 博客
  • 博客访问: 359221
  • 博文数量: 102
  • 博客积分: 2070
  • 博客等级: 大尉
  • 技术积分: 1019
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-14 11:07
文章存档

2011年(1)

2010年(34)

2009年(37)

2008年(30)

我的朋友

分类: LINUX

2010-06-15 16:52:35


环境:一台PC机,安装的是RedHat Entprise Linux5 ,内核版本是:2.6.18-92.el5,GCC是gcc-4.1.2-42.el5,从网上下载了linux-2.6.33.3.tar.bz2,在升级编译完内核,重启后提示如下错误信息:

RedHat nash Version 5.1.19.6 startingrver(2.6.33.3)
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!
[Linux-initrd @ 0x1fc37000,0x228585 bytes]

于是在网上找了很多,也尝试了很多加模块、重编译了N次、改fstab等方法,都不行。最后在一个网站上找到解决方法。

方法:编译时修改.config文件中的“CONFIG_SYSFS_DEPRECATED_V2”,默认该选项为not set,被注释掉的,将其改为y。即修改为“CONFIG_SYSFS_DEPRECATED_V2=y”,修改后,再编译,重启即正常了。


阅读(5106) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

楚逍遥风之痕2014-04-12 16:25:23

我也出现了类似问题,我在向redhat添加完一个系统调用后重新编译内核再重启后开始界面出现Error 15:File not found的错误,我也查了很多网站试了很多次都不行;之前我试过,修改过grub或lilo.config都不成功,都快放弃了。你能把你编译内核的最详细的步骤和添加系统调用的步骤发给我看下吗,我比照看下哪出了问题。

chinaunix网友2010-06-20 10:44:19

你好!博客狠棒discount MBT Shoes on sale! nike air max 2010 discountWomens MBT Chapa Shoe MBT Lami Shoe kobe shoes mbt lami