notice

当前位置: 系统之家 » 技术应用 » 阅读正文


Vmware编译内核switchroot: mount failed: No such file or directory的解决方法

2011年1月13日 | 发布: admin


点击图片查看更多内容

在Vmware虚拟机上编译新内核重启报错
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

解决方法:
make menuconfig 选上以下模块

Linux Kernel Configuration
    -> Device Drivers
        -> SCSI device support
            -> SCSI disk support

Linux Kernel Configuration
    -> Device Drivers
        -> SCSI device support
            -> SCSI low-level drivers
                -> BusLogic SCSI support

Linux Kernel Configuration
    -> Device Drivers
        -> Fusion MPT device support
            -> Fusion MPT (base + ScsiHost) drivers

Linux Kernel Configuration
    -> Filesystem
        -> Partition Types
            -> Advanced partition selection
                -> PC BIOS(MSDOS partition tables)support
                    -> BSD disklabel(FreeBSD partition tables) support

Linux Kernel Configuration
    -> General setup
        -> Enable deprecated sysfs features which may confuse old userspace tools

# 编辑内核编译配置文件
# vi .config
找到# CONFIG_SYSFS_DEPRECATED_V2 is not set并修改为CONFIG_SYSFS_DEPRECATED_V2=y

然后编译重启就可以了.

请对我们的文章进行评论


版权声明:

转载时请注明文章出处,并在文章结尾表明本文链接,特此声明!

本文链接:http://www.xtgly.com/1327.htm


  1. xa
    2011年1月28日15:27

    辛卯新春佳节即将来临,中国美术馆精心策划筹办的“中国美术馆50年捐赠作品大展”西安人才网:http://www.xa198.com
    中国画廊网:http://www.hl198.com
    中国画家网:http://www.rc900.com在岁末年初之际隆重推出,为欢度春节的全国观众献上一次异彩纷呈的新年贺岁文化盛宴。