装的是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]
方法:编译时修改.config文件中的“CONFIG_SYSFS_DEPRECATED_V2”,默认该选项为not set,被注释掉的,将其改为y。即修改为
“CONFIG_SYSFS_DEPRECATED_V2=y”
修改后,再编译,重启即正常了。
阅读(1586) | 评论(0) | 转发(0) |