Hi, I just had a look at the new automounter autofs(5) that is now in FreeBSD 10.2 and am trying to find out the best way to set it up to mount NFS shares locally upon access.
At present I have in /etc/fstab something along the lines of 172.1.1.1:/share /mnt nfs ro,noauto with the noauto option enabled because I don't want the shares to mount at boot. I would like for the shares to become accessible once users access them.
I have enabled amd_enable="YES" in rc.conf. It seems that I also have to list explicitly the shares that I would like to mount also in the auto_master.
Does anyone have any examples of how they have set this up for themselves?
At present I have in /etc/fstab something along the lines of 172.1.1.1:/share /mnt nfs ro,noauto with the noauto option enabled because I don't want the shares to mount at boot. I would like for the shares to become accessible once users access them.
I have enabled amd_enable="YES" in rc.conf. It seems that I also have to list explicitly the shares that I would like to mount also in the auto_master.
Does anyone have any examples of how they have set this up for themselves?