Mapping to NFS Share on OSMC

I’m having some trouble mapping to an NFS share on my QNAP using my Raspberry Pi 4B with OSMC. I had no problem accessing the same file share with the same credentials on my old Raspberry Pi 3 with OSMC.

I followed the steps here:

This is in my Auto.Master file

+auto.master
/- /etc/auto.nfs.shares --timeout 15 browse
/mnt/192.168.74.96/nfs 192.168.74.96/nfs

Testing using the ls -lah command shows the following

osmc@osmc:~$ sudo nano /etc/auto.master
osmc@osmc:~$ ls -lah /mnt/192.168.74.96/nfs
total 4.0K
drwxr-xr-x 2 root root 0 Dec 18 18:12 .
drwxr-xr-x 3 root root 4.0K Dec 18 18:12 …
osmc@osmc:~$

I’ve enabled logging and attempted to map to the NFS share within the OSMC gui. the error is “cannot access share, do you want to connect anyway?”

Link to logs:

https://paste.osmc.tv/tinetafexo

I can access the share on a windows machine without issue using the osmc/osmc credentials.

Hi, you need two files (and pay attention to the upper and lower case)

  1. /etc/auto.master
    Content should be:
+auto.master
/- /etc/auto.nfs.shares --timeout 15 browse
  1. /etc/auto.nfs.shares
    Content (pay attention to the colon):
/mnt/192.168.74.96/nfs 192.168.74.96:/nfs
  1. sudo reboot your rpi to get the nfs share mounted

Since the user osmc will not be a real user on your QNAP, you should also pay attention whether the right squash option is set on your NAS: Mounting NFS - QNAPedia. You say you don’t have any issues accessing the NFS share using your rpi 3, so there there might nothing to do here.

If this is all done, you can use the Root Filesystem method to specifiy the access to the data on the NFS share. Use the path /mnt/192.168.74.96/nfs accordingly.

Did you allowed 192.168.74.4 in your NFS export range?