我试图从Ubuntu15.10PC( NFS客户端)的Raspberry Pi 2( NFS服务器)挂载一个目录。当我尝试的时候,我得到了一个错误:
mount.nfs: access denied by server while mounting 192.168.1.135:/home/pi这就是我在做的。
树莓Pi 2 (NFS服务器)上的
将这一行添加到/etc/导出中
/home/pi/workspace 192.168.1.*(rw,no_subtree_check,sync,root_squash)印发:
sudo update-rc.d rpcbind enable && sudo update-rc.d nfs-common enable然后启动NFS服务器:
pi@dex ~ $ sudo service nfs-kernel-server start
[ ok ] Exporting directories for NFS kernel daemon....
[ ok ] Starting NFS kernel daemon: nfsd mountd.PC上的
> showmount -e 192.168.1.135
Export list for 192.168.1.135:
/home/pi/workspace 192.168.1.*然后,我尝试挂载目录,并获得错误:
> sudo mount 192.168.1.135:/home/pi/workspace /home/fanta/nfs
mount.nfs: access denied by server while mounting 192.168.1.135:/home/pi/workspace有什么我可以收集的信息来排除这个问题吗?
Raspberry Pi 2运行Linux 4.1.13-v7+和PC Ubuntu 15.10 64位.
谢谢!
https://unix.stackexchange.com/questions/275093
复制相似问题