I have 4 Raspberry Pi’s of various hardware versions. I have a Win 7 PC that I am sharing directories from while utilizing HaneWIN NFS Server. I changed nothing in the config on any Raspberry or the PC. Suddenly the NFS share for my video directory would not connect on any Raspberry. I updated one of the Raspberries to the latest available OSMC via manual update: 4.14.78-4-osmc
I did an uninstall / install of HaneWIN NFS Server, as well.
A showmount -e from the host:
osmc@Brooke-Pi:/mnt$ sudo showmount -e 192.168.1.7
Export list for 192.168.1.7:
/e/my videos 192.168.1.2,192.168.1.253,-range
/e 192.168.1.2,192.168.1.253,-range
osmc@Brooke-Pi:/mnt$
My fstab:
osmc@Brooke-Pi:/mnt$ cat /etc/fstab
/dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automount 0 0
192.168.1.7:/e/my\040videos /mnt/videos/ nfs _netdev,ro,intr,noatime,rsize=32768,wsize=32768,nolock,async 0 0
When I attempt to “sudo mount /mnt/videos” the command hangs until timeout. If I attempt to mount just from command line, bypassing fstab:
osmc@Brooke-Pi:/mnt$ sudo mount -v 192.168.1.7:/e/My\ Videos /mnt/videos
mount.nfs: timeout set for Sat Jan 5 15:45:52 2019
mount.nfs: trying text-based options ‘vers=4.2,addr=192.168.1.7,clientaddr=192.168.1.112’
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options ‘vers=4.1,addr=192.168.1.7,clientaddr=192.168.1.112’
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options ‘vers=4.0,addr=192.168.1.7,clientaddr=192.168.1.112’
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options ‘addr=192.168.1.7’
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.7 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.7 prog 100005 vers 3 prot UDP port 1058
mount.nfs: mount(2): No such file or directory
mount.nfs: mounting 192.168.1.7:/e/My Videos failed, reason given by server: No such file or directory
If I just mount E:, it works. I am then able to browse into My Videos:
osmc@Brooke-Pi:/mnt$ sudo mount 192.168.1.7:/e/ /mnt/videos
osmc@Brooke-Pi:/mnt$ ls /mnt/videos | grep “My Videos”
My Videos
My Videos.scn
osmc@Brooke-Pi:/mnt$ cd /mnt/videos/My\ Videos
osmc@Brooke-Pi:/mnt/videos/My Videos$ pwd
/mnt/videos/My Videos
osmc@Brooke-Pi:/mnt/videos/My Videos$ cd /mnt
osmc@Brooke-Pi:/mnt$ sudo umount videos/
osmc@Brooke-Pi:/mnt$ sudo mount 192.168.1.7:/e/My\ Videos /mnt/videos
mount.nfs: mounting 192.168.1.7:/e/My Videos failed, reason given by server: No such file or directory
I’ve messed with this for several hours now and I can’t find the fix. I do have SMB setup pointing to the same directory on the PC and it’s functional.
I did temporarily create an export to another subfolder of E:, to confirm it wasn’t a subfolder issue. It worked without a problem. That folder did not have a space in the name but again, it was working with the \040 space call.