ubuntu10 nfs挂载

1.在  /etc/exports  后面添加   /home/root   *(rw,no_subtree_check,sync,no_root_squash)
 /home/root 虚拟机中要挂载的目录    *表示要挂载的ip  ()内是读写权限    
2.在开发板上输入 mount -t nfs -o nolock 192.0.0.1(主机ip):/home/root   /mnt/
 直接使用mount无效,需加上后面的参数     /mnt/是开发板上的挂载点
注:若出现mount rpc unable to receive errno =no route to host 
则要关闭防火墙 service iptables stop 
重启nfs Service nfs restart

猜你喜欢

转载自blog.csdn.net/robinvanpersie/article/details/12564695