User Tools

Site Tools


using_autofs_to_mount_nfs_share_when_needed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
using_autofs_to_mount_nfs_share_when_needed [2013/03/05 21:03]
sgripon created
using_autofs_to_mount_nfs_share_when_needed [2013/03/05 21:59] (current)
sgripon
Line 10: Line 10:
   ​   ​
 Then, configure master file in order to point to a nfs configuration file. At then end of /​etc/​auto.master,​ add this: Then, configure master file in order to point to a nfs configuration file. At then end of /​etc/​auto.master,​ add this:
 +
 +  /​mnt /​etc/​auto.nfs --ghost,​--timeout=30
 +
 +/mnt is the folder where all shares will be mounted.
 +
 +Then, create file /​etc/​auto.nfs with this content:
 +
 +  nas -fstype=nfs,​rw,​intr,​nolock 192.168.0.10:/​share/​1000/​public
 +  ​
 +nas is the folder where the share will be mounted in /mnt. Adapt the nfs options to your needs. I added nolock because lock was not supported by my old NAS.
 +
 +To activate all this setting:
 +
 +  sudo service autofs restart
 +
 +
using_autofs_to_mount_nfs_share_when_needed.1362513818.txt.gz ยท Last modified: 2013/03/05 21:03 by sgripon