Root-NFS:服务器在挂载rootfs时返回错误-5

时间:2012-10-29 08:52:02

标签: linux-kernel nfs u-boot

我尝试在我的设备上加载嵌入式Linux。

内核命令行:

setenv bootcmd 'nfs 10.0.0.1:/home/master/rootfs3/boot/uImage;bootm;'
setenv bootargs console=ttyTX0,57600n8 root=/dev/nfs rw nfsroot=10.0.0.1:/home/master/rootfs3 ip=dhcp init=/sbin/init

系统加载失败:

VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1
rtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-06 00:47:10 UTC (434830)
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.0.10
IP-Config: Complete:
     device=eth0, addr=10.0.0.10, mask=255.255.255.0, gw=10.0.0.1,
     host=10.0.0.10, domain=, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=10.0.0.1, rootpath=
Waiting 4sec before mounting root device...
Looking up port of RPC 100005/1 on 10.0.0.1
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /home/master/rootfs2
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00        768 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02       2048 mtdblock2 (driver?)
1f03      15360 mtdblock3 (driver?)
1f04      87040 mtdblock4 (driver?)
1f05      23808 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Server returned error -5 - 这是什么意思,我在哪里可以知道这个错误?

1 个答案:

答案 0 :(得分:0)

1.禁用防火墙 在我的Fedora 18上 systemctl停止firewalld systemctl禁用firewalld

2.Disable selinux vi / etc / selinux / config

- 评论SELINUX =强制执行 - 添加#SELINUX =禁用

重新启动你的Linux。

相关问题