linux重启时新内核出错,为CentOS5.3重新编译内核时出现的问题

原本的内核是kernel-2.6.18.128,后来下了一个kernel-2.6.31.1并用它来重新编译,我的编译过程是这样的:

1.把新内核的压缩包解压到/usr/src/kernel_2.6.31.1

2.#make mrproper

3.#make menuconfig,修改必要的配置项并save成“.config”(没有设置文件前缀名)

4.#make dep

5.#make clean

6.#make bzImage

7.#make modules

8.#make modules_install

9.#make install

10.#reboot(重启)

从网上看了一些方法,有的没有了4-6步。但无论有没有,重启时使用新内核的时候都打印以下错误提示然后死机:

Red Hat nash version 5.1.19.6 starting

insmod:error inserting '/lib/dm-region-hash.ko':-l File exists

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:moving /sys failed:No such file or directory

switchroot:mounting failed:No such file or directory

kernel panic - not syncing Attempted to kill init!

|

kernel-2.6.18.128,

先到2.6.26

最后再考虑kernel-2.6.31.1

|

试试楼上说的 不过我从楼主的版本升到2.29没出现过错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值