Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

According to Wikipedia

http://en.wikipedia.org/wiki/Unix_directory_structure

http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

extra disks should not be mounted in /mnt/ according to the first link, but doesn't seams so according to the second link.

Both say thought that they shouldn't be in /media.

Question

So where should extra permanent disks be mounted?

share|improve this question

migrated from serverfault.com Jan 14 '12 at 17:30

This question came from our site for professional system and network administrators.

2  
The reason for avoiding /media is that that's where (for instance) udisks will put automatically mounted devices, so if you put things there then you might clash with it. –  Richard Kettlewell Jan 14 '12 at 16:42
    
I think /media is more trendy these days. People used /mnt way back before there was this concept of USB drives and hot-swapping. –  djangofan Jan 20 '12 at 18:24
    
/mnt is itself intended as a point where filesystems can be mounted temporarily by the system admin. If you obey this recommendation, then you wouldn't mount anything permanently in there. But similarly, /media is intended to contain mount points for removable media. If the user cannot "eject" or "remove" it then it probably doesn't belong in there. Which still leaves the question of where to mount permanent additional drives. –  trr Oct 12 '12 at 4:56

4 Answers 4

up vote 8 down vote accepted

According to the FHS link that you gave

 /mnt/  Temporarily mounted filesystems.

So I assume that you must mean permenantly mounted non-root non-system (meaning not /var/log or similar) filesystems.

I've always put them in /mnt/fsidentifier and then symlinked to then where needed.

So for instance, I had /mnt/website at one point, /mnt/appdata, /mnt/whatever, then symlink that. I never mounted anything directly to /mnt

If you wanted a "clean" solution, you could write a script to take the UUID of the filesystem, create a mount point for it (under /mnt or wherever you wanted), then mount the filesystem to the mountpoint.

share|improve this answer

Wherever you like and where it makes the most sense for you. I have seen countless variants.

Myself, I usually mount them at /data0, /data1 or subdirectories below /data and put symlinks to the appropriate places (like /home).

share|improve this answer

Extra disks are typically mounted in a directory called /media/something where the something reflects the mounted device, e.g. /media/cdrom0 for the first CD-ROM device. This convention is widely followed under Linux for removable devices, and often but not always for permanent devices.

The FHS forbids distributions from using directories under /mnt because some administrators use /mnt itself as a mount point for temporary mounts. If you're the administrator, you can do what you like; just don't use /mnt itself as a mount point if you create directories under it.

Many places have their own convention. Some automounters have their own directory or directories (configured through /etc/fstab and /etc/auto.*); /amnt or /auto are typical names. Network mounts are often put under /net/$machine_name. Some places just use whatever went through the administrator's mind: /data, /local, /scratch, …

Of course, filesystems that have a specific place in the directory structure should be mounted there. For example, the mail partition is normally mounted directly on /var/mail or /var/spool/mail. If your home directories are spread between several disks, it's typical to mount them underneath /home, e.g. ~alice = /home/disk0/alice and ~bill = /home/disk1/bill and so on, if you want to expose the different disks in home directories. If you don't, then mount the home partitions wherever you like and create symbolic links or automounts in /home.

share|improve this answer

SuSE had /srv as generic mountpoint for server-related stuff.

/var/lib/yourapplication seems to be a standard, too.

Since I use the automounter with fixed entries for these things, I tend to use /automnt.

The media automounted by UDEV (/media) is being redirected through CLAMFS (for virus scanning) to /extern on my workstation.

So short - there is no real standard - it`s up to you.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.