秋雨梧桐 发表于 2004-11-19 13:45:52

求助,编译内核后进不去系统

我的电脑装的是rh9
升级内核前安装了module-init-tools-3.0.tar.gz工具包,更新了mkinitrd程序和device-mapper-1.00.07-1.i386.rpm包和lvm2-2.00.08-2.i386.rpm包.整个编译过程中没有出现错误,但是重启电脑后进不去系统,电脑提示如下:


Mounting /proc filesystem
Creating block devices
Creating root device
Usb 1-2:new low speed USB device using address 2
Mounting root filesystem
mount:error 19 mounting ext3
pivotroot:pivot_root(/sysroot,?sysroot/initrd) failed:2
umount /initrd/proc failed:2
Free unused kernel memory:248k
Kernel panic:No init found.Try passing init=option to kernel
<7>uhci_hcd 0000:00:1f.4:suspend_hc


另外grub.conf内容如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:You have a /boot partition.This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,8)
#          kernel /vmlinuz-version ro root=/dev/hda11
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,8)/grub/splash.xpm.gz
title Red Hat Linux (2.6.8)
        root (hd0,8)
        kernel /vmlinuz-2.6.8 ro root=LABEL=/
        initrd /initrd-2.6.8.img
title Red Hat Linux (2.4.20-8)
        root (hd0,8)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title DOS
        rootnoverify (hd0,0)
        chainloader +1


哪位高手给指点一下?
谢谢!!!!

dannycat 发表于 2004-11-19 22:56:23

不要用 LABEL=/ 这一类,直接使用 /dev/hdaX 这种形式。

同样修改 /etc/fstab。

atfa 发表于 2004-11-19 23:37:26

initrd出的错

重新mkinitrd做一个initrd出来

aboy 发表于 2004-11-20 13:48:24

我也遇到了这个问题

我也遇到了这个问题, 并且我在 fstab 和 grub.conf 中都用了 /dev/hdaX 的表示方法

安装时用的是 make install 命令

但还是不行, 有没有人知道这是怎么回事 ?

秋雨梧桐 发表于 2004-11-21 00:10:15

我又重新编译了内核,并且这次我在 fstab 和 grub.conf 中都用了 /dev/hdaX 的表示方法 ,但是还是启动不了,如下:
failed to laod transform for src32c
failed to laod transform for md5
failed to laod transform for sha1
failed to laod transform for sha256

...........
...........
...........
...........

hda:130551MB.CHS=16643/255/63
devfs_mk_dir:invalid agument<6>hda:



请大虾指教,谢谢!

aboy 发表于 2004-11-21 12:09:25

我明白了

必须把对 ext3 文件系统的支持编译到内核中去, 而不能设定为模块, 如果

你的根文件系统是其他类型的, 也要把对那种文件系统的支持编译到内核中.

2.4.x 系列内核中好像不是这样的 ......

这极有可能是模块载入工具版本太低的原因, 因为我还没有按 Changes 中

所列去更新那些工具, 全都是 RH9 自带的


*有没有哪位达人有所有的更新工具包? 在论坛上发布一个吧, 造福众人啊 :)

翔羽 发表于 2004-11-21 12:57:40

用该是ext3加载问题

秋雨梧桐 发表于 2004-11-21 14:48:40

呵呵,问题解决了,把对 ext3 文件系统的支持编译到内核中,设置为build-in就可以了
谢谢上面的几位大虾:)

cnhnln 发表于 2004-11-21 21:58:47

ext3不一定要编译进内核,模块也行。但此时需要将“initrd”和“启动时初始化initrd”编译进内核
页: [1]
查看完整版本: 求助,编译内核后进不去系统