I have this line in auto.master :
/- /etc/auto.misc --timeout=30
and in auto.misc :
/media/autofs/winlinux -fstype=auto :/dev/sdb1
/media/autofs/BACKUP -fstype=auto :/dev/sdc1
/media/autofs/NAS -fstype=cifs,user=xxxxxxxx,password=xxxxxxxxxx,iocharset=utf8,workgroup=workgroup ://192.168.1.253/volume_1-1
Each time I browse /media/autofs, ALL entries in auto.misc are mounted, whereas I only want to enter in /media/autofs/NAS. To avoid this, I add a specific top level folder for each entry :
/media/autofs.winlinux/winlinux -fstype=auto :/dev/sdb1
/media/autofs.BACKUP/BACKUP -fstype=auto :/dev/sdc1
/media/autofs.NAS/NAS -fstype=cifs,user=xxxxxxxx,password=xxxxxxxxxx,iocharset=utf8,workgroup=workgroup ://192.168.1.253/volume_1-1
It works, but I wonder if there is a mean to keep the same top level directory without mounting all entries automatically.
autofs 5.0.6-0ubuntu2 - linux-image-3.0.0-26-generic 3.0.0-26.42