QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 643|回复: 2

重新编译redhat9内核后,重启进不了系统,救救!

[复制链接]
发表于 2005-8-1 17:22:49 | 显示全部楼层 |阅读模式
make menuconfig dep clean bzImage modules modules_install depmod -a 执行完上面步骤后,编译成功,然后
#cp /usr/src/linux2.4.20-8/System.map /boot/System.map-2.4.20
#cp /usr/src/linux2.4.20-8/arch/i386/bzImage /boot/wwybzImage-2.4.20,
再修改GRUB/////////////////
default=1
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
///这里开始修改
title wwy Linux
        root(hd0,6)
kernel /wwybzImage-2.4.20 ro root=LABEL=/
initrd /initrd-2.4.20-8.img 这部分都是参照原来GRUB文件来修改的
title DOS
rootnoverify (hd0,0)
chainloader +1

重新启动系统后,出现以下一些错误:
loading jbd.o module
/lib/jbd.o:kernel-module version mismatch.h
           /lib/jbd.o was compiled for kernel version 2.4.20-8
           while this kernel is version 2.4.20-8custom
ERROR:/bin/insmod exited abnormally!
.......
mount:error 19 mounting ext3
...
umount /initrd/proc failed:2
kernel panic:No init found Try Passing init=optiong to kernel ///关键这里?????
就停在这里,不动了
谢谢啊
发表于 2005-8-1 18:31:08 | 显示全部楼层
你不应该直接替换grub中的原内核项,而是另加一个title项。不行的话就可以选项原来的了。

grub菜单里按c
手动输入启动吧。
grub>root (hd0,6)
grub>kernel /...
grub>initrd /...
grub>boot
(...处不知道文件名就按tab键,然后准确输入)

进入系统后,修改回原来的
回复

使用道具 举报

 楼主| 发表于 2005-8-1 23:06:40 | 显示全部楼层
版主,你好!呵呵 其实我也是留了原内核项的:
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-
        root (hd0,6)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title wwy Linux
        root(hd0,6)
        kernel /wwybzImage-2.4.20 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title DOS
        rootnoverify (hd0,0)
        chainloader +1
我只是想问为什么用我重新编译后的内核就进不去系统。谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-24 17:15 , Processed in 0.050419 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表