我在具有 NFS 共享的计算机上运行 FreeNAS 9.3.1。我无法通过 mount 命令挂载此共享:
mount -t nfs 192.168.0.104:/mnt/NAS /mnt/test
在 Ubuntu 15.10 或 FreeNAS 计算机本身上。
但是,我可以通过文件 GUI 浏览并查看文件夹(浏览网络、FreeNAS 等),并可以通过这种方式访问文件,但不能通过 nfs。
FreeNAS /etc/exports
/mnt/NAS -alldirs -mapall=mediactr:wheel freenas AMD6Core DellXPS
上述所有机器都可以 ping FreeNAS 盒
Ubuntu /etc/fstab
192.168.0.104:/mnt/NAS /mnt/FreeNAS nfs async,auto,dev,exec,rw,nouser,vers=3 0 0
命令行也失败:
mount -v -t nfs -o nfsvers=3 192.168.0.104:/mnt/NAS /mnt/FreeNAS
命令行超时,直到我添加了 nfsvers,现在出现协议不支持的错误。
尝试在 FreeNAS 计算机上进行安装,看看用户是否可以执行此操作,使用 Web 界面中的 Shell GUI 选项:在 FreeNAS 计算机本身上尝试命令行,出现以下错误:
nfsd: RPCPROG_NFS: RPC: Remote system error - Connection refused
shell 以 ~# 开头,但也许我也需要在那里使用 sudo?
从 Ubuntu 15.10(192.168.0.103)到 FreeNAS(192.168.0.104)
8~$ ping 192.168.0.104
PING 192.168.0.104 (192.168.0.104) 56(84) bytes of data.
64 bytes from 192.168.0.104: icmp_seq=1 ttl=64 time=0.214 ms
64 bytes from 192.168.0.104: icmp_seq=2 ttl=64 time=0.257 ms
64 bytes from 192.168.0.104: icmp_seq=3 ttl=64 time=0.252 ms
^C
--- 192.168.0.104 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.214/0.241/0.257/0.019 ms
~$ sudo mount -t nfs -o nfsvers=3 192.168.0.104:/mnt/NAS /mnt/test
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: Connection timed out
mount.nfs: timeout set for Tue Nov 3 08:17:51 2015
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.4'
mount.nfs: prog 100003, trying vers=3, prot=6