hyliar 发表于 2003-10-3 17:03:33

kernel panic,iniitrd?

升级 2.6 -test6 内核 总是不对
在网上翻了很多资料 编译内核的
还是没有弄好
希望高手指点一下

我的步骤如下

make mrproper
make xconfig
make bzImage
make modules
make modules_install
System.map
vmlinuz
mkinitrd /boot/initrd-2.6.0-test6.img 2.6.0-test6


grub.conf 如下
default=0
timeout=
splashimage=(hd0,8 )/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8 )
        root (hd0,8 )
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdb=ide-scsi
        initrd /initrd-2.4.20-8.img
title Windows
        rootnoverify (hd0,0)
        chainloader +1
title Red Hat Linux (2.6.0-test6)
        root (hd0,8 )
        kernel /vmlinuz-2.6.0-test6 ro root=/dev/hdc10
        initrd /initrd-2.6.0-test6.img

我的fstab应该在2.4下能用的

奇怪的时
如果我在 2.6的kernel下加initrd 这一项
就显示 kermnel panic : please passing init= to kernel
如果不要 initrd 这一行就可以引导 但是只加载了 / 分区什么都做不了
请问怎么回事

hyliar 发表于 2003-10-4 01:06:55

怎么没人能回答我的问题么
斑竹啊 快救救我啊

Dragonfly 发表于 2003-10-4 07:16:40

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=38644

hyliar 发表于 2003-10-4 09:25:58

linux version:RH9
gcc version 3.2.2

fstab 在原2.4内核能用的
不至于出问题吧
启动2.6内核时进不去,耶没办法截图了,现摘录语句如下
mount :error 19 mounting ext3
……
umount /initrd/proc failed:2
……
kernel panic :No init found .Try passing init= option to kernel.

hyliar 发表于 2003-10-4 10:45:17

怎么都没人回答我吧

linjiang_82 发表于 2003-10-4 15:50:24

我也遇到这个问题了,斑竹来解答一下吧

hyliar 发表于 2003-10-4 17:18:12

我的fstab

LABEL=/               /                     ext3    defaults      1 1
LABEL=/boot             /boot                   ext3    defaults      1 2
none                  /dev/pts                devptsgid=5,mode=6200 0
none                  /proc                   proc    defaults      0 0
none                  /dev/shm                tmpfs   defaults      0 0
LABEL=/usr            /usr                  ext3    defaults      1 2
/dev/hdc11            swap                  swap    defaults      0 0
/dev/cdrom            /mnt/cdrom            udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/hdc1    /mnt/c ntfs               iocharset=gb2312,ro,umask=0 0 0
/dev/hdc5   /mnt/d vfat               iocharset=gb2312,codepage=936,umask=0 0 0
/dev/hdc6   /mnt/e vfat               iocharset=gb2312,codepage=936,umask=0 0 0
/dev/hdc7   /mnt/f vfat                iocharset=gb2312,codepage=936,umask=0 0 0
/dev/hdc8   /mnt/g vfat                iocharset=gb2312,codepage=936,umask=0 0 0

hyliar 发表于 2003-10-4 21:40:59

这样啊 这么说lilo的话 这些步骤是可以的了

hyliar 发表于 2003-10-4 21:45:53

请问你们的步骤是什么啊
升级内核的时候

hyliar 发表于 2003-10-4 22:41:59

这样啊
可是initrd到底是什么东西啊
我先改一下看看

hyliar 发表于 2003-10-4 23:03:46

如果是
initrd=/boot/initrd-2.6.0-test6.img
则开机就找不到文件
一定要
initrd=/initrd-2.6.0-test6.img
才行
但是还是说什么 init no found

cnhnln 发表于 2003-10-4 23:57:00

kernel /vmlinuz-2.6.0-test6 ro root=/dev/hda9
试试
fdisk -l贴上来看看

hyliar 发表于 2003-10-5 00:25:34

不就是更改了 hdc0,0 么
这时主分区啊

tekwei 发表于 2003-10-5 05:52:37

http://www.linuxsir.com/bbs/showthread.php?s=&threadid=35988&highlight=panic

cnhnln 发表于 2003-10-5 13:20:06

Re: kernel panic,iniitrd?


grub.conf 如下
default=0
timeout=
splashimage=(hd0,8 )/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8 )
        root (hd0,8 )
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdb=ide-scsi
        initrd /initrd-2.4.20-8.img
title Windows
        rootnoverify (hd0,0)
        chainloader +1
title Red Hat Linux (2.6.0-test6)
        root (hd0,8 )
        kernel /vmlinuz-2.6.0-test6 ro root=/dev/hdc10
        initrd /initrd-2.6.0-test6.img

root (hd0,8 )这是你的根分区,告诉内核root分区的时候当然要用/dev/hda9了。你这样试了吗?不行吗?
什么主分区?我怎么知道哪个是你的主分区呀?
fdisk -l贴上来看看呀
页: [1] 2
查看完整版本: kernel panic,iniitrd?