LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: xwos

启动挂起:No init found

[复制链接]
发表于 2004-2-6 14:17:15 | 显示全部楼层

在linux下面装了nt系统也有这样的问题

继续关注
发表于 2004-2-6 15:45:40 | 显示全部楼层
我也碰到了这种情况,我的情况是在vmware下安装LFS5.0到最后一步了,启动出现这个错误,错误信息完全一致
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=88249
发表于 2004-2-6 15:49:01 | 显示全部楼层
其实这个问题的确和发行版本的init脚本有关。
fedora就是一个很经典的例子。rc.d里的启动脚本都是针对其内核2.4+nptl的,也就是说,自己编译的新内核一定要匹配fedora的实际环境。
首先值得注意的一点是,initrd的相关支持要编译进内核,这样内核2.6会自动生成initrd-2.6.x.img;
然后就是文件系统,尤其涉及到initrd的文件系统,如ext2,ext3,ramfs就应该要编译进内核而不是模块;
还有一点,应该是rc.sysinit中挂载/proc的部分与新内核有冲突,所以系统不能识别fstab中的LABEL=/,而这却是新内核在其安装时照着fedora自动在grub.conf中生成的,应该要改成/dev/hdax;
另外,大多数发行版本除了slackware吧都使用了bootsplash,为防止黑屏,要把framebuffer编译进内核。
总之,新内核和原启动脚本不协调,如usb模块的名称变化。
(不知大家注意到没有,在fedora的自动升级中会警告你不应该手工安装新内核


个人觉得这种说法不太可能。

不知道是不是有内核配置上的问题。
我也是想破了脑袋,不知道有没有熟悉内核的朋友能够提供一点帮助。
这种情况出现的话我个人觉得有一点是可以肯定的。那就是内核已经载入了,但是准备启动时出现了错误。错在哪里?为什么出错。实在是不知道。
发表于 2004-2-6 16:02:12 | 显示全部楼层
看来不光我们遇到这个问题。看看下面的邮件列表:

That could mean two things:
1. You don't have /sbin/init; ensure that you uncomment it in Config.h, and
ensure you have the link to busybox.
2. You don't have required shared libraries; use chroot and ldd to check
what is needed.

"Try passing init= option" means that you could give a init=/bin/sh argument
to the kernel when LILO ask you which image to use.

-amery

----- Original Message -----
From: "mount me" <linladn at yahoo.co.in>
To: <busybox at busybox.net>
Sent: Saturday, June 29, 2002 5:25 AM
Subject: [BusyBox] Kernel panic : No init found. Try passing init= option


> Hi all,
> I get the following errors after using the busybox
> to build it into the floppy as an image.
>
> RAMDISK : compressed image found at block 0
> RAMDISK : uncompressing root image : done
> VFS : Mounted root (romfs filesystem)
> Freeing unused kernel memory : 60K freed
> Kernel panic : No init found. Try passing init= option
> to kernel
>
> How to avoid this kernel panic ?
>
>
>
> Help me out !!
> Karthik .
>
>
>
> ________________________________________________________________________
> Everything you always wanted to know about cars and bikes,now
>  at: http://in.autos.yahoo.com
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://codepoet.org/mailman/listinfo/busybox
发表于 2004-2-6 16:03:29 | 显示全部楼层
> Hi,
>
> After compiling the kernel and creating the boot and root disk as per the
> instuctions in the latest Pocket Linux, I get the error message
>
> Kernel panic: No init found. Try passing init= option to kernel
>
> Even though I had entered
>
> boot: bootdisk init=/bin/sh
>
> bash is installed as described on the rootdisk, and there there is a
symlink
> to bash. I also tried boot: bootdisk init=/bin/bash with the same results.
>
> Any ideas?
>
> Thanks a lot,
>
> Peter
>
> _______________________________________________
> Pocket-Linux mailing list
> Pocket-Linux at ufo.chicago.il.us
> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux
>
>

Peter,

It appears that you have done everything correctly.  Check for any
typographical errors in lilo.conf.  If that does not fix it I would
suggest downloading the kernel and root disk images from
http://my.core.com/~dhorton/linux/pocket/ and using them to narrow down
the problem.  Try using the downloaded root disk with your kernel and
also try the downloaded kernel with your root disk.  That should help
you figure out which of the diskettes is causing the problem.

Dave
发表于 2004-2-6 16:04:30 | 显示全部楼层
有google上搜索kernel panic: No init found,Try passing init= option kernel

有很多的相关资料。
发表于 2004-2-6 16:28:01 | 显示全部楼层
最初由 黄叶 发表
有google上搜索kernel panic: No init found,Try passing init= option kernel

有很多的相关资料。


在下的lfs用的是内核2.4+sysvinit,未对启动脚本改动的情况下升级到内核2.6,并且采用了内核自动生成的initrd,同时考虑到了以上我所述的问题,重新启动,一切正常。
lfs与fedora等各发行版本有个很显著的区别,那就是启动脚本。可见启动脚本应该值得怀疑。
建议多尝试不同的GRUB启动参数,比如说加上init=/dev/hdax(x为/boot分区,我试过成功),看看能否正常启动。
发表于 2004-2-6 18:05:42 | 显示全部楼层
lfs和red hat 的启动方式采用的是两种不同的方法。lfs的是采用的bsd式的启动方式。而red hat采用提sys V的启动方式,这里应该也不存在问题。

我的fedora 1就是在那次检查文件系统时出了错,其他的时候都很好。
我现在也用的是fedora 1 + 2.6.2的内核。
发表于 2004-2-6 18:18:11 | 显示全部楼层
最初由 黄叶 发表
lfs和red hat 的启动方式采用的是两种不同的方法。lfs的是采用的bsd式的启动方式。而red hat采用提sys V的启动方式,这里应该也不存在问题。

我的fedora 1就是在那次检查文件系统时出了错,其他的时候都很好。
我现在也用的是fedora 1 + 2.6.2的内核。


这里要修正一下。
lfs按文档是使用sysvinit的(我的也是),当然也可用bsd风格的init;
redhat所有版本都使用混合的init脚本,也就是sysv+bsd。
lfs的启动脚本是针对基本的linux系统由sysvinit略加改造过来的,基本上很纯净;而fedora开发者对其启动脚本作了很多优化,所以只能适应其自带的内核2.4+nptl。
发表于 2004-2-6 18:39:01 | 显示全部楼层
最初由 xwos 发表
我把正常系统下的整个/etc目录替代现有的/etc目录,然后修改了一下fstab
文件,/boot目录我就是用的正常系统的/boot当然我有把新内核放进去,里面
也包含了新内核的initrd,还是同样的问题!然后我用正常系统的内核替换现有
内核问题还是存在!
请大哥们帮忙分析看看!谢谢!


建议还是把整个系统都拷到新硬盘上,确保能运行后再进行剪裁。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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