NFS Client

hello,

when mounting a NFS share point
mount 192.168.2.55:/share /mnt/share -o nolock
fails: "failed: No such file or directory"

other clients (ubunt, debian) to connect to correct.

Has anyone run an NFS client on the Yun?

vg jens

The NFS in Linino and Openwrt up to R39459 is broken.

https://dev.openwrt.org/changeset/39459

fix: recompile kmod-fs-nfs to include nfsv3.ko, it was split out of nfs.ko in Linux 3.6 ( linino version is 3.8.3 )

$(LINUX_DIR)/fs/nfs/nfs.ko 
AUTOLOAD:=$(call AutoLoad,40,nfs) 
$(LINUX_DIR)/fs/nfs/nfs.ko \ 
$(LINUX_DIR)/fs/nfs/nfsv3.ko 
AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)

thank you. something I had read, but the rebuild and install ... because I need some more time ...
Apparently the upates for yun come seldom. Let's see.

vg jens

Start from fresh (backup your own file!):

Code:

/usr/bin/reset-to-factory-anyway
reboot

Install updated kmod-fs-nfs which has both nfs.ko and nfsv3.ko ( I compiled, Dropbox - kmod-fs-nfs_3.8.3-1_ar71xx.ipk - Simplify your life):

opkg update
opkg install wget 
opkg install  kmod-fs-nfs-common
cd /tmp
wget https://www.dropbox.com/s/obg1uzviz1xepk3/kmod-fs-nfs_3.8.3-1_ar71xx.ipk --no-check-certificate
rm /tmp/opkg-lists/*; opkg install kmod-fs-nfs_3.8.3-1_ar71xx.ipk
opkg update
opkg install  nfs-utils

Test NFS:

mkdir -p  /mnt/nfs
mount -t nfs 192.168.0.240:/var/nfs /mnt/nfs -o nolock
cd /mnt/nfs
touch test111

Great thanks!
a error with wget: "wget: not an http or ftp url: https://www...." but i load the file over another way ...

In the meantime I had newly translated, with the SDK package, but how I can install individually ... because I would have used forever.

Thanks again, jens

The wget which come from linino is busybox and no support https, You need upgrade it full scale wget by

opkg update
opkg install wget

thanks for the wget-tipp.
now it would be nice if the volume can be incorporated by fstab. That will probably linino config made ??fstab when /etc/config/fstab. Since I have entered:

config mount
option target /mnt/share
option device 192.x.x.x.:/share
option fstype nfs
option options nolock
option enabled 1

But the drive will not mount on startup?

vg jens

An other BUSYBOX' s problem, BUSYBOX_CONFIG_FEATURE_MOUNT_NFS =n.

I am not brave enough recompile BUSYBOX. :stuck_out_tongue:

Here is the work around:

nano /etc/rc.local
wifi-live-or-reset
/bin/mount -t nfs 192.168.0.240:/var/nfs /mnt/nfs -o nolock
exit 0

quick and dirty, but super for this case

thanks, jens