Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 720

How to mount NFS share automatically via WiFi?

$
0
0

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?


Viewing all articles
Browse latest Browse all 720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>