QNAP NFS shares on Ubuntu

First you have to enable NFS shares on your QNAP NAS.

On the QNAP you should start the Control panel, go to Privilege, Shared folders.

There you see the shared folders. Then press the button Edit Shared Folder Permission.

Select permission type: NFS

And now select the shared folder you want to share using NFS and choose to mount it read-only or read-write and press Apply.

You could define additional privileges, but that is another topic.

Now in Ubuntu open a terminal and type:

sudo apt update

sudo apt install nfs-common

showmount -e 192.168.178.52

using the correct IP number.

That gives you the export list of the NAS.

Now you have to create a mount point for every shared folder you want to mount.

For Example:

mkdir media/NFSmountpoint

that makes a mount point in your media folder called NFSmountpoint.

To mount the share use:

sudo mount -t nfs 192.168.178.52:/Multimedia /media/NFSmountpoint

and check with nautilus or files if it works.

If it works, you should consider to automount it using an entry in

/etc/fstab by using nano:

sudo nano /etc/fstab

in our case it should read:

192.168.178.52:/Multimedia /media/NFSmountpoint nfs defaults,bg 0 0

(If you type this, enter TABs between NFSmountpoint nfs defaults,bg 0 and 0)

press X, confirm to save and exit.

The bg option means that the mounting process is hapening in the background and booting continues. If not used, the booting process can take several minutes.

Double check you spelled the mountpoint correctly and reboot to check if it works, or in a terminal:

sudo umount /media/NFSmountpoint

sudo mount -a


If you need more info about NFS shares on Ubuntu read this tutorial:

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-18-04

and this post about mounting in the background

https://forums.linuxmint.com/viewtopic.php?t=239935