Skip to contentSkip to conversation

basic question on "key"

DISCUSSION es 2 participants 3 messages Oct 5, 2004 – Oct 6, 2004 Kernel automounter

lore
Share & tools
lore

es

author
#0 lore raw

Hello there, I'm using autofs since a while and works very well.
Now I'd like to mount /home/milly and /home/es/Data from an NFS export. This means I cannot simply have /home in auto.master otherwise /home/es became inaccesible. ********* auto.master file
/home/milly /etc/autofs/auto.home.milly
/home/es /etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/milly

It seems I can't use ./ as key nor I can have /home/es in auto.master and have Data as key in auto.home.es because it will mount /home/es hidding the content of /home/es.

I have read trought the docs but can't find an example of this basic usage scenario. TIA
Eli

maintainer
#1 lore raw
Quoted 10 lines · es

Hello there, I'm using autofs since a while and works very well. Now I'd like to mount /home/milly and /home/es/Data from an NFS export. This means I cannot simply have /home in auto.master otherwise /home/es became inaccesible.
********* auto.master file
/home/milly /etc/autofs/auto.home.milly
/home/es /etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/milly

Quoted 3 lines

It seems I can't use ./ as key nor I can have /home/es in auto.master and have Data as key in auto.home.es because it will mount /home/es hidding the content of /home/es.

You might like to try a multi mount entry like

milly myhost:/home/milly
es / myhost:/home/es \
/data otherhost:/home/data

Note that multi mount map entries mount and umount all their entries as a single unit because of the cross filesystem issues that can arise. So in this case /home/es and /home/es/data would be mounted and umounted together.

Ian

maintainer
#2 lore raw
Quoted 18 lines · Ian Kent
Quoted 10 lines · es

Hello there, I'm using autofs since a while and works very well. Now I'd like to mount /home/milly and /home/es/Data from an NFS export. This means I cannot simply have /home in auto.master otherwise /home/es became inaccesible.
********* auto.master file
/home/milly /etc/autofs/auto.home.milly
/home/es /etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/milly

Quoted 3 lines

It seems I can't use ./ as key nor I can have /home/es in auto.master and have Data as key in auto.home.es because it will mount /home/es hidding the content of /home/es.

You might like to try a multi mount entry like

Quoted 8 lines

milly myhost:/home/milly
es / myhost:/home/es \
/data otherhost:/home/data

Note that multi mount map entries mount and umount all their entries as a single unit because of the cross filesystem issues that can arise. So in this case /home/es and /home/es/data would be mounted and umounted together.

And as Stephen says you need at least autofs version 4.0.0.

Ian