QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2038|回复: 21

kernel panic,iniitrd?

[复制链接]
发表于 2003-10-3 17:03:33 | 显示全部楼层 |阅读模式
升级 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 这一行就可以引导 但是只加载了 / 分区  什么都做不了
请问怎么回事
 楼主| 发表于 2003-10-4 01:06:55 | 显示全部楼层
怎么没人能回答我的问题么
斑竹啊 快救救我啊
回复

使用道具 举报

发表于 2003-10-4 07:16:40 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=38644
回复

使用道具 举报

 楼主| 发表于 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.
回复

使用道具 举报

 楼主| 发表于 2003-10-4 10:45:17 | 显示全部楼层
怎么都没人回答我吧
回复

使用道具 举报

发表于 2003-10-4 15:50:24 | 显示全部楼层
我也遇到这个问题了,斑竹来解答一下吧
回复

使用道具 举报

 楼主| 发表于 2003-10-4 17:18:12 | 显示全部楼层
我的fstab

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 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
回复

使用道具 举报

 楼主| 发表于 2003-10-4 21:40:59 | 显示全部楼层
这样啊 这么说lilo的话 这些步骤是可以的了
回复

使用道具 举报

 楼主| 发表于 2003-10-4 21:45:53 | 显示全部楼层
请问你们的步骤是什么啊
升级内核的时候
回复

使用道具 举报

 楼主| 发表于 2003-10-4 22:41:59 | 显示全部楼层
这样啊
可是initrd到底是什么东西啊
我先改一下看看
回复

使用道具 举报

 楼主| 发表于 2003-10-4 23:03:46 | 显示全部楼层
如果是
initrd=/boot/initrd-2.6.0-test6.img
则开机就找不到文件
一定要
initrd=/initrd-2.6.0-test6.img
才行
但是还是说什么 init no found
回复

使用道具 举报

发表于 2003-10-4 23:57:00 | 显示全部楼层
kernel /vmlinuz-2.6.0-test6 ro root=/dev/hda9
试试
fdisk -l贴上来看看
回复

使用道具 举报

 楼主| 发表于 2003-10-5 00:25:34 | 显示全部楼层
不就是更改了 hdc0,0 么
这时主分区啊
回复

使用道具 举报

发表于 2003-10-5 05:52:37 | 显示全部楼层
http://www.linuxsir.com/bbs/showthread.php?s=&threadid=35988&highlight=panic
回复

使用道具 举报

发表于 2003-10-5 13:20:06 | 显示全部楼层

Re: kernel panic,iniitrd?

[quote:db3694ba30="hyliar"]
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
[/quote]
root (hd0,8 )这是你的根分区,告诉内核root分区的时候当然要用/dev/hda9了。你这样试了吗?不行吗?
什么主分区?我怎么知道哪个是你的主分区呀?
fdisk -l贴上来看看呀
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-14 10:56 , Processed in 0.061026 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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