Automatically Mount NFS with Systemd

Follow this step:

  1. create network share for NFS
[[email protected] ~]# exportfs -v
/data           (sync,wdelay,hide,no_subtree_check,sec=sys,rw,no_root_squash,no_all_squash)

try those NFS mounting, with mount command:

mount /share

and check:

df -h /share

if you’re successfully to mount those NFS, then unmount.

umount /share

  1. Create Systemd Unit to mount NFS

with nano/vim, create a new file /etc/systemd/system/mount-nfs

Description=NFS Share from



reload systemd daemon,

systemctl daemon-reload

then start it:

systemctl start mount-nfs

and check the mounting directory.

Wagiman Wiryosukiro

Petani Sistem Informasi, tukang las plugin & themes Wordpress. Co-Founder Saat ini aktif sebagai Developer & kontributor di OpenMandriva Linux.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: