Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autofs only works with one-level mount points ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 339

PostPosted: Tue Oct 16, 2012 10:41 am    Post subject: autofs only works with one-level mount points ? Reply with quote

I have the ofllowing in /etc/autofs/auto.master

Quote:
# /net does not exists
/net -hosts
#/mnt exists, /mnt/hosts does not exist
/mnt/hosts -hosts
#/mnt/existingdir exists
/mnt/existingdir -hosts
# /autofs does not exist
/autofs/hosts -hosts
# /existingautofs/ exists, /existingautofs/hosts does not exist
/existingautofs/hosts -hosts


I have a host 'portage', which exports /mnt/portage/portage through nfs:

Quote:
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
and similar fo the next three.

In short:

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 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum