LinuxSir.cn,穿越时空的Linuxsir!

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

刚完成lfs6.1重启后,出错:unable to open an initial console

[复制链接]
发表于 2005-11-10 19:50:40 | 显示全部楼层 |阅读模式
我已经把相关的udev,/dev目录,启动脚本都查了,
可是找不到错在哪?


有人也遇到过这样的错吗?
发表于 2005-11-10 21:25:53 | 显示全部楼层
"unable to open an initial console"代表kernel未能成功加载你的root filesystem,多半是grub.conf或者menu.lst定义不正确引起的
回复 支持 反对

使用道具 举报

发表于 2005-11-10 22:13:11 | 显示全部楼层
是由于你的/dev没有null&console这两个设备文件。
你看lfs手册的第6章,新建这两个文件重新启动就好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 08:15:35 | 显示全部楼层

有关设置

##menu.lst##
######################################
default 0

timeout 30

color green/black red/black


title LFS 6.1
root (hd0,3)
kernel /boot/lfskernel-2.6.11.12 root=/dev/hda4

title Slackware 10.2
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1
######################################



/dev里的各个设备都正确
回复 支持 反对

使用道具 举报

发表于 2005-11-11 09:29:20 | 显示全部楼层
Post by hongfeng
是由于你的/dev没有null&console这两个设备文件。
你看lfs手册的第6章,新建这两个文件重新启动就好了。


应该就是这个原因。


查看你的dev目录的内容的方法:

在/mnt/root下mount 你的根目录,然后去/mnt/root/dev里边看看有没有文件。

别看 /dev的,因为已经是覆盖过的了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 09:38:42 | 显示全部楼层
Post by 黯然销魂
应该就是这个原因。


查看你的dev目录的内容的方法:

在/mnt/root下mount 你的根目录,然后去/mnt/root/dev里边看看有没有文件。

别看 /dev的,因为已经是覆盖过的了。


我重新建立了/dev下的设备,还是不行,
又重新编译了内核,这回好了。

看来真是这个原因,可就是有点想不通。

装了5次lfs6.1就这次最郁闷了,差点想重做第六章,现在爽了
回复 支持 反对

使用道具 举报

发表于 2005-11-11 09:45:20 | 显示全部楼层
重新编译内核,加入了什么?
只是重新编译?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 10:39:47 | 显示全部楼层

只是重新编译内核,.config一点没变

Post by drowsyboy
重新编译内核,加入了什么?
只是重新编译?


所以我才会想不通
回复 支持 反对

使用道具 举报

发表于 2005-11-28 02:07:53 | 显示全部楼层
If this is a new install and configuring it for a Pure UDEV system, or you get an error when you finally reboot after installing udev and setting it correctly like this: WARNING: Unable to open an initial console. It is because there is no /dev/console and /dev/null. What is happening is that /dev/console is needed before udev is populating the /dev folder. You can try this by manually deleting all static devices in /dev folder from another system, then rebooting to the udev system. You will get the console error. You will also notice that it is faulting at a time before it normally loads udev. If you just make /dev/console though it will then fail for /dev/null. So it needs both of those static in /dev, at least for the time being. The fix for now is to manually create them in your /dev folder.

cd /dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3


http://webpages.charter.net/deci ... elp_UDEVPrimer.html
回复 支持 反对

使用道具 举报

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

本版积分规则

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