【问题标题】:Root-NFS: Server returned error -5 while mounting rootfsRoot-NFS:挂载 rootfs 时服务器返回错误 -5
【发布时间】:2014-04-30 13:24:37
【问题描述】:

我正在尝试在我的设备上加载嵌入式 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 - 这是什么意思,我在哪里可以知道这个错误?

【问题讨论】:

  • 好的,我发现error-5 的意思是NFSERR_IO(看include/linux/nfs.h)。这也可能是磁盘错误(查看ietf.org/rfc/rfc1094.txt)。但是我该如何解决这个错误呢?

标签: linux-kernel nfs u-boot


【解决方案1】:

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

2.禁用selinux vi /etc/selinux/config

-- 注释 SELINUX=enforcing -- 添加#SELINUX=disabled

重启你的 linux。

【讨论】:

    猜你喜欢
    • 2017-02-26
    • 2014-04-30
    • 2019-01-10
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多