I've always found it confusing on where to mount permanent non-standard filesystems in Linux. Such as a filesystem that contains company files which is shared out via Samba or NFS.
It's not something that the Filesystem Hierarchy Standard has really tackled that I have found. The latest version of the spec 2.3 adds /srv but at this point it doesn't look like many distro's have started defaulting to using this directory for services data. Traditionally most distro's have defaulted to /var for this so I'm not sure administrators will adopt that convention.
Out of habit I tend to mount these non-standard filesystems under /mnt but FHS states that this should be used for temporary mount points. But I've also seen administrators put additional mount points in /, in /home, in /var, and in /usr/local.
So I'm curious to what the consensus is here on where these filesystems should be mounted.
- What have you found has worked for you and your organization?
- Are there any published best-practices that cover this subject?
Wherever it makes sense.
The FHS is great for maintaining consistency across distributions, whereas you have specific exceptions that need to be handled.
If it's a couple machines, mount them where it makes sense. If it's many, create your own policy for your company and document it (standards are great, everybody should have one).
For example, we:
/var/dominodata
and/var/dominolog
/var/spool/squid
On Ubuntu, it is common to mount disks in /media though it is usually prefered for removable disks, I think it can fit well for permanent mount point.
A good point to use /media on ubuntu is if you are using some Desktop environment, it usually appears in the file manager (e.g. it appears in the Places menu in Gnome, and in Nautilus as well.)
If something normally uses /var (apache, mysql etc.) then I'm happy to let it, moving those kinds of things just causes confusion. In other cases I'll use /srv.
IMO, /home should be reserved for actual users and /usr should not be used for variable data