Difference between revisions of "Using autofs (automount) with NFS"
Using autofs (automount) with NFS (view source)
Revision as of 08:37, 10 February 2019
, 5 years ago→Configuration
imported>DeMus |
imported>DeMus |
||
Line 101: | Line 101: | ||
* ghost, an option which places empty folders in the base folder to make it possible, after the time-out, to mount the device again. | * ghost, an option which places empty folders in the base folder to make it possible, after the time-out, to mount the device again. | ||
A typical auto.master file can look like this: | A typical line in the auto.master file can look like this: | ||
'''/mnt /etc/autofs/auto.NAS1 --timeout=10 --ghost''' | '''/mnt /etc/autofs/auto.NAS1 --timeout=10 --ghost''' | ||
Line 130: | Line 130: | ||
This way I have one master file which, with one line, controls the base of the system and one file which controls all my shares. But again, this is totally up to you. | This way I have one master file which, with one line, controls the base of the system and one file which controls all my shares. But again, this is totally up to you. | ||
= '''Explanation of auto.master''' = | = '''Explanation of auto.master''' = | ||
This file is created when you install the autofs package. You will need to edit it to make it work for you. The complete file looks like this when created: | This file is created when you install the autofs package. You will need to edit it to make it work for you. The complete file looks like this when created: |