主题 : “通过NFS启动系统”中的问题(1)已解决:mount_devfs_fs(): unable to mount devfs, err: -2 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10191
精华: 0
发帖: 9
金钱: 85 两
威望: 38 点
综合积分: 18 分
注册时间: 2009-10-27
最后登录: 2010-04-21
楼主  发表于: 2009-10-28 16:36

 “通过NFS启动系统”中的问题(1)已解决:mount_devfs_fs(): unable to mount devfs, err: -2

描述:应该出现的正确结果
图片:
描述:实际的错误(见红色部分)
图片:
我按照说明中的步骤,进行通过NFS启动系统的时候,出现了如下错误:(见红色部分)

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
enable_irq(51) unbalanced from c0170b30
IP-Config: Complete:
      device=eth0, addr=192.168.2.230, mask=255.255.255.0, gw=192.168.2.167,
     host=MINI2440, domain=, nis-domain=arm9.net,
     bootserver=192.168.2.167, rootserver=192.168.2.167, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.167
Looking up port of RPC 100005/1 on 192.168.2.167
VFS: Mounted root (nfs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 144K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

请问各位大侠,这是什么原因引起的,(我已经参考了《vmware下redhat 9.0 登陆nfs成功,总结一下》一贴,并且将防火墙和iptables也关了,nfs也启动了。)
[ 此帖被kasim在2009-10-29 00:01重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-10-28 17:13
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10191
精华: 0
发帖: 9
金钱: 85 两
威望: 38 点
综合积分: 18 分
注册时间: 2009-10-27
最后登录: 2010-04-21
2楼  发表于: 2009-10-28 19:34
问题解决了,解决方法是:

“其实内核本身已经告诉了你出错的原因,你只要稍加分析就可以知道。
根据kernel-2.6.13/include/asm-generic/errno-base.h,

#define    ENOENT        2    /* No such file or directory */

在PC的/opt/FriendlyARM/QQ2440/root_nfs /mnt目录下建一个dev目录让devfs挂载到那里”

谢谢楼上的提供了好的答案。