Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264
Source Link
kemra102
  • 1.2k
  • 2
  • 11
  • 17

Mounting NFS via systemd in Centos 7

I am trying to mount an NFS share on a CentOS 7 box using systemd. This is my /etc/fstab entry:

10.0.0.104:/export   /mnt       nfs  users,noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,noatime 0 0

On boot or by entering mount -a has no effect, the partition is not mounted. Nothing seems to be logged either from what I can see.

If I mount it from the CLI with the same options however it works:

mount -t nfs -o users,noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,noatime 10.0.0.104:/export /mnt

Any idea why it might be failing when not calling it using the mount CLI?