I’ve got a V4K setup downstairs with an attached USB hard drive. I’m trying to share database and library with my rPi3 upstairs.
I’ve mounted the device to /mnt/hdd using fstab (I read that it was better to do that than mount the /media/ folder). I’ve added it to /etc/exports with the following:
But I can’t browse it when using the built in Kodi browser for NFS. I’m not experienced with linux so I’m almost sure I’m missing something simple but I can’t figure out what. Any help is appreciated.
I have. Just did it again to be sure. Even the local V4K can’t find any NFS folders. I don’t know if that is normal or not since the files are local to that device.
Sure. Can you give me a quick string on how to do it (I’m googling everything and translating it best I can to my needs)? Local device should be 192.168.1.60
Do I mount this through the local device or through remote device for testing purposes?
I’m guessing something like:
192.168.1.60:/mnt/hdd/Media <new mount point?> vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0111,dmask=0000,allow_utime=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks
On the device which is serving your share (ie the one your hdd is plugged into) try running
sudo showmount -e
That will prove whether or not the entries in /etc/exports are actually being shared correctly.
If they are then try
sudo showmount -e IP.OF.SERVER on the client machine. That will determine if they’re visible. If they aren’t, ensure you have connectivity with ping -c5 IP.OF.SERVER
If you have connectivity and the first showmount was ok then try adding a line like this to the /etc/fstab file on the client:
osmc@osmc:~$ sudo showmount -e
clnt_create: RPC: Program not registered
I was playing around with that a little bit last night, but I couldn’t find a good resolution for why its giving me that error. I double checked that NFS server and portmapper were installed and they seemed to be up to date (although portmapper is now rpcbind or something).
It will probably be the same issue. It arises because NFS still uses a file in /etc/init.d to start and systemd (the startup software used by OSMC) isn’t properly backwards compatible.
I used to fix this by adding a sleep command to the nfs-kernel file in init.d but this is no longer necessary in the RPi OSMC images (maybe newer systemd code).
The Vero 4K uses a different kernel though so you may need to do something similar.