Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.