nfs安装与配置
sudo apt-get install nfs-kernel-server
sudo gedit /etc/export
添加如下 /home/tstnfs *(rw,sync,no_subtree_check)
共享目录
主机启动nfs服务: /etc/init.d/nfs-kernel-server restart
开发板挂载: mount -t nfs 192.168.1.181:/home/tstnfs /mnt -o nolock
主机ip
umount /mnt
mount上之后arm板上文件自动同步
(
1.出现问题:
reason given by server: Permission denied
解决:
服务器端启动一定要sudo启动,不然启动失败,服务拒绝
2.出现问题:
svc: failed to register lockdv1 RPC service (errno 111).
lockd_up: makesock failed, error=-111
mount: mounting 192.168.1.101:/home/share on /mnt/hosts failed: Connection refused
则改成:
mount -t nfs -o nolock 192.168.1.101:/home/share /mnt/hosts
3.出现问题:
mount: mounting 192.168.1.101:/home/share on /mnt/hosts failed: Device or resource busy
解决:
mount上之后在进行mount命令会出现此提示,设备正在运行,不用再次mount
如果想再次mount可以先umount /mnt/hosts
)
sudo apt-get install nfs-kernel-server
sudo gedit /etc/export
添加如下 /home/tstnfs *(rw,sync,no_subtree_check)
共享目录
主机启动nfs服务: /etc/init.d/nfs-kernel-server restart
开发板挂载: mount -t nfs 192.168.1.181:/home/tstnfs /mnt -o nolock
主机ip
umount /mnt
mount上之后arm板上文件自动同步
(
1.出现问题:
reason given by server: Permission denied
解决:
服务器端启动一定要sudo启动,不然启动失败,服务拒绝
2.出现问题:
svc: failed to register lockdv1 RPC service (errno 111).
lockd_up: makesock failed, error=-111
mount: mounting 192.168.1.101:/home/share on /mnt/hosts failed: Connection refused
则改成:
mount -t nfs -o nolock 192.168.1.101:/home/share /mnt/hosts
3.出现问题:
mount: mounting 192.168.1.101:/home/share on /mnt/hosts failed: Device or resource busy
解决:
mount上之后在进行mount命令会出现此提示,设备正在运行,不用再次mount
如果想再次mount可以先umount /mnt/hosts
)