autofs
autofs
automatically mount remote filesystems on a as-needed basis. quite handy from time to time.
nfs auto mount
installing autofs:
apt-get install autofsconfigure a nfs share:
I did this for my synology nas, I created a new folder on my other linux system at /nfs, let’s edit /etc/auto.master to make this work. Add the following to the end of /etc/auto.master
/nfs /etc/auto.nfsthen create or edit /etc/auto.nfs:
synologyName synologyHostname.local:/volume1/synologySharerestart / reload autofs:
systemctl restart autofswell, now you should be good to go if you do something like:
ls /nfs/synologyNameautofs should automatically mount the share