Install software:

opkg update
opkg install nfs-kernel-server

IP address of Yun (192.168.0.102)

Change exports:

nano /etc/exports
/mnt    *(ro,all_squash,insecure,sync)
mv /etc/exports /etc/exports.bk
nano /etc/exports
/mnt/sda1        192.168.0.240(rw,sync,no_subtree_check)

Setup service:

/etc/init.d/firewall stop
/etc/init.d/firewall disable
/etc/init.d/portmap start
/etc/init.d/nfsd start
/etc/init.d/portmap enable
/etc/init.d/nfsd enable

Test at linux box (192.168.0.240):

mkdir -p /mnt/sda1  
mount -t nfs 192.168.0.102:/mnt/sda1   /mnt/sda1   -o nolock

 

 

Comments powered by CComment