24

What is the purpose of having both? Aren't they both used for mounting drives?

2

2 Answers 2

32

I recommend visiting the Filesystem Hierarchy Standard.

  • /media is mount point for removable media. In other words, where system mounts removable media. This directory contains sub-directories used for mounting removable media such as CD-ROMs, floppy disks, etc.

  • /mnt is for temporary mounting. In other words, where user can mount things. This directory is generally used for mounting filessytems temporarily when needed.

Ref:
http://www.pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT
http://www.pathname.com/fhs/pub/fhs-2.3.html#MNTMOUNTPOINTFORATEMPORARILYMOUNT

3
  • 19
    What about less than temporary mounts? Where would you mount a partition "permanently"?
    – To Do
    Jan 2, 2016 at 21:19
  • 1
    The only good answer to this is "yes" or "anywhere you like". You can always locate a mount at a later point with either mount, findmnt, or other similar commands.
    – Zhro
    Feb 3, 2019 at 0:02
  • 1
    Why would I mount anything in root? That would require applications and Terminal sudo to be able to write to the. Why not just use home? I'm mounting a folder from local network.
    – Shayan
    Sep 28, 2019 at 9:04
24

use /mnt for stuff you mount by yourself

leave /media for the system to mount its stuff

1
  • My external hard drives are mounted to /media automatically Jul 1 at 1:08

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