The FHS
is defining directory names and usage. Creating a custom directory directly under the root one is considered risky as it might conflict with a future version of the standard or with a new OS owned directory.
Unlike many other Unix and Unix like OSes file system standards (e.g. freeBSD and Solaris), the FHS
fails for some reason to define /net
as a generic mount point for automounted NFS shares. On the other hand, the FHS
defines /mnt
and /media
for a similar but distinct purposes.
While /media
is for locally attached devices like CD, DVDs and thumb drives, /mnt
doesn't restrict the kind of device so should theoretically be usable to store your sshfs
mount, for example in /mnt/sshfs/xxx
, but creating an exclusive subdirectory under /mnt
might conflict with existing admin usage so I wouldn't recommend doing it. /mnt
is defined to hold file systems temporarily mounted here by the administrator, which doesn't exactly match file systems automatically mounted by a daemon.
There is no way to use /net
to store sshfs
mounts as autofs
configuration is forbidding to have multiple handlers for the same mount point.
As auto.smb
is suggesting /cifs
for its root mount point directory, I would simply use /sshfs
. The risk for /sshfs
to clash in the future with an OS owned directory is essentially zero.
Excerpt from the auto.smb
manual page:
# Put a line like the following in /etc/auto.master:
# /cifs /etc/auto.smb --timeout=300
Excerpt for the auto.master
default configuration file:
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
# /net -hosts