Score:0

autofs mounts all shares instead of only the accessed one

nl flag

I set up autofs with sshfs to mount my shares when I access them. However, if I access one of them, all of them get mounted which I would like to avoid. Am I doing something wrong? Here's my config

/etc/auto.master:

/media/sshfs /etc/auto.sshfs uid=1000,gid=1000,--timeout=0,--ghost

/etc/auto.sshfs:

pi2 -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#pi2\:
pi2_root -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#pi2\:/
pi2_hdd -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#pi2\:/media/hdd/

To avoid HDD spin-ups I would like to not mount the HDD if I only access the home directory.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.