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 这一行就可以引导 但是只加载了 / 分区什么都做不了
请问怎么回事 怎么没人能回答我的问题么
斑竹啊 快救救我啊 http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=38644 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. 怎么都没人回答我吧 我也遇到这个问题了,斑竹来解答一下吧 我的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 这样啊 这么说lilo的话 这些步骤是可以的了 请问你们的步骤是什么啊
升级内核的时候 这样啊
可是initrd到底是什么东西啊
我先改一下看看 如果是
initrd=/boot/initrd-2.6.0-test6.img
则开机就找不到文件
一定要
initrd=/initrd-2.6.0-test6.img
才行
但是还是说什么 init no found kernel /vmlinuz-2.6.0-test6 ro root=/dev/hda9
试试
fdisk -l贴上来看看 不就是更改了 hdc0,0 么
这时主分区啊 http://www.linuxsir.com/bbs/showthread.php?s=&threadid=35988&highlight=panic
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