Working 29.2.2020.
install kernel nfs server
opkg install nfs-kernel-server
modify exports file /opt/etc/exports (not sure how secure this is)
/media *(rw,no_root_squash,insecure,no_subtree_check,fsid=0,crossmnt)
modify start script /opt/etc/init.d/S57nfs-kernel-server (just some small modifications)
remove this 4 lines checking for portmap
if [ -z "`pidof portmap`" ] ; then
echo 'Error: portmap not started'
exit 1
fi
remove --no-tcp
, add --udp
and increase number of threads from 1 to 8
rpc.nfsd --no-nfs-version 4 --udp 8
rpc.mountd --no-nfs-version 4
start nfs server
/opt/etc/init.d/S57nfs-kernel-server start
mount share (only for test)
mkdir /storage/test_nfs_mount
mount -t nfs THIS_DEVICE_IP:/media /storage/test_nfs_mount