LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3048|回复: 39

内核启动时候出现如下错误,该怎么办?谢谢

[复制链接]
发表于 2006-11-21 12:04:49 | 显示全部楼层 |阅读模式
新编译的内核,启动时出现:
Kernel Panic: Not syncing: Attempted to kill init!!
请问该怎么办?
具体信息见下面一贴
 楼主| 发表于 2006-11-21 12:44:20 | 显示全部楼层
umount: devfs: not mounted
mount: unknown filesystem type 'devfs'
umount: devfs: not mounted
pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel panic - not syncing: Attempted to kill init!
回复 支持 反对

使用道具 举报

发表于 2006-11-21 20:26:45 | 显示全部楼层
Which kernel release?  Do you compile your own kernel?

Missing initrd or incorrect path?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-22 16:36:10 | 显示全部楼层
2.6.18.2
自己编译的,initrd文件做好了,路径检查都没问题
回复 支持 反对

使用道具 举报

发表于 2006-11-23 20:06:17 | 显示全部楼层
2.6.18.2 内核是没有 devfs 的,看来是做 initrd 的工具不对,旧版的 mkinitrd 做出来的 initrd 会依赖 devfs 但新版内核已经移除 devfs 的支持,於是无法启动。

试改用 mkinitramfs或者 yaird 来做 initrd
回复 支持 反对

使用道具 举报

发表于 2006-11-23 20:39:45 | 显示全部楼层
有人写一下新的内核如何装最好不过了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-25 23:20:02 | 显示全部楼层
doom3d兄好.我用你的方法试了一下,结果 mkinitramfs 运行的时候提示:
cp: cannot stat `/etc/udev/udev.conf': No such file or directory
cp: cannot stat `/etc/udev/udev.conf': No such file or directory
cpio: ./bin/*: No such file or directory
cpio: ./bin/busybox: No such file or directory
cpio: ./bin/sh: No such file or directory
cpio: ./bin/casper-reconfigure: No such file or directory
cpio: ./bin/casper-preseed: No such file or directory
cpio: ./bin/udevinfo: No such file or directory
cpio: ./bin/casper-md5check: No such file or directory
cpio: ./lib/klibc-*.so: No such file or directory
cpio: ./lib/udev/cdrom_id: No such file or directory
cpio: ./lib/udev/vol_id: No such file or directory
cpio: ./lib/udev/path_id: No such file or directory
cpio: ./sbin/udevd: No such file or directory
cpio: ./sbin/udevtrigger: No such file or directory
cpio: ./sbin/udevsettle: No such file or directory
做好 initrd.img文件后,内核还是无法启动
回复 支持 反对

使用道具 举报

发表于 2006-11-26 07:57:23 | 显示全部楼层
系统上没有 udev 的吗?
回复 支持 反对

使用道具 举报

发表于 2006-11-26 08:06:12 | 显示全部楼层
若系统上仍只有 devfs,没有 udev 的话,只有两个选择:

1. 放弃自行编译 2.6.13 或以上的内核,这些内核必需 udev 才能运作
2. 安装 udev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-26 14:50:39 | 显示全部楼层
那么请问如何安装 udev , 再次谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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