Joined: 29 Jan 2006
|Posted: Tue Oct 16, 2012 10:41 am Post subject: autofs only works with one-level mount points ?
|I have the ofllowing in /etc/autofs/auto.master
|# /net does not exists
#/mnt exists, /mnt/hosts does not exist
# /autofs does not exist
# /existingautofs/ exists, /existingautofs/hosts does not exist
I have a host 'portage', which exports /mnt/portage/portage through nfs:
and similar fo the next three.
|ls /net/portage/mnt/portage/portage/| wc
167 167 1812
ls /mnt/hosts/portage/mnt/portage/portage/ | wc
ls: cannot access /mnt/hosts/portage/mnt/portage/portage/: No such file or directory
0 0 0
autofs seems to work when the mount point is a single directory level deep and is not a real directory (autofs creates it),
but it does not work if the mount point should be several levels deep.
Is that the designed bahaviour ? In my opinion that limits its usefullness very much. I wanted all my mounts, both manual and autofs somewhere under /mnt, but this frst attempt seems to fail.
Is there a way to create autofs mount points like /mnt/autofs/net ?