I'm trying to mount a local network NFS share on a laptop connected via WiFi.
The NFS server is set up correctly as far as I'm aware and it's possible to connect to it manually with:
sudo mount -t nfs4 -o proto=tcp,port=2049 192.168.(Server IP):/share /mnt/share
Then, the share is mounted to /mnt/share
and immediately accessible.
However, when I try to add the share to /etc/fstab
, Dolphin (on Kubuntu) always shows the following error:
An error occurred while accessing '/mnt/share', the system responded: mount.nfs4: failed to prepare mount: Operation not permitted
So far, I've tried various fstab entries, such as:
192.168.(Server IP):/share /mnt/share nfs4 _netdev,x-systemd.after=network-online.target 0 0
nfs://192.168.(Server IP):/share /home/usr/share nfs vers=4,uid=(User ID),gid=(Group ID) 0 0
And other variations of these. The error is always the same (except for the different paths).
Kerberos is not used for authentication.
I am not sure if the issue is that WiFi is not connected when the fstab entry is accessed or something else is the problem.
How can I automatically mount this NFS share using a WiFi connection?