LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo基本系统安全完后,出现的Kernel panic[已经解决]

[复制链接]
发表于 2006-6-20 00:13:39 | 显示全部楼层 |阅读模式
错误信息如下
>> Mounting root...
mkdir: Cannot create directory '/newroot/tmp':Read-only file system
mkdir: //newroot/dev/console: No such file or directory
mknod: //newroot/dev/tty1: No such file or directory
Booting (initramfs)......
chroot: cannot execute /bin/sh: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

用的是genkernel编译的内核

grub.conf如下
default 0
timeout 10

title=Gentoo Linux 2.6.16-r9
root (hd0,5)
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=dev/hdb6 udev
initrd /boot/initramfs-genkernel-x86-2.6.16-gentoo-r9

是用livecd 2005编译的gentoo

why?
发表于 2006-6-20 05:36:17 | 显示全部楼层
real_root=dev/hdb6改写味real_root=/dev/hda6.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-20 14:01:24 | 显示全部楼层
我的硬盘就是/dev/hdb
回复 支持 反对

使用道具 举报

发表于 2006-6-20 16:54:14 | 显示全部楼层
那就写成:
root (hd1,5)
... real_root=/dev/hdb6 ...

第二行比你的那个只在 dev 之前多了个“/”,至于第一行,也不知道要不要将 (hd0,5) 改为 (hd1,5)。都试试吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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