嵌入式linux配置挂载nfs--Ubuntu10.04

在嵌入式linux开发的过程中,经常需要从pc和目标板直接传送文件,使用tftp太繁琐,还是直接挂载pc上的一个目录到目标板,方便调试,大大加快开发进度。下面是建立目标板挂载nfs:

 

安装

apt-get install nfs-kernel-server  nfs-common

 配置

dpkg-reconfigure portmap 

选择<否>

gedit /etc/exports

我的配置文件:

root@crazyleen-desktop:/home/dlrc# cat /etc/exports 
# /etc/exports: the access control list for filesystems which may be exported
#		to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/home/dlrc/nfs  *(rw,sync,no_root_squash)

重启

/etc/init.d/nfs-kernel-server restart

开发板挂载

mount  -o nolock 192.168.14.46:/home/dlrc/nfs /mnt/nfs




你可能感兴趣的:(linux,list,嵌入式,Access,filesystems)