What is the purpose of having both? Aren't they both used for mounting drives?
- 1askubuntu.com/questions/22215/why-have-both-mnt-and-mediaMikel– Mikel2016-01-02 06:23:22 +00:00Commented Jan 2, 2016 at 6:23
- 2@mohammad.k, this question hadn't been asked before on this site and is totally valid. See How should we deal with Google questions? on Meta. I've written more on this subject here.Wildcard– Wildcard2016-01-02 06:48:26 +00:00Commented Jan 2, 2016 at 6:48
2 Answers
I recommend visiting the Filesystem Hierarchy Standard.
/mediais 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./mntis 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
- 20What about less than temporary mounts? Where would you mount a partition "permanently"?To Do– To Do2016-01-02 21:19:30 +00:00Commented Jan 2, 2016 at 21:19
- 1The 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– Zhro2019-02-03 00:02:41 +00:00Commented Feb 3, 2019 at 0:02 - 1Why 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– Shayan2019-09-28 09:04:57 +00:00Commented Sep 28, 2019 at 9:04
use /mnt for stuff you mount by yourself
leave /media for the system to mount its stuff
- My external hard drives are mounted to /media automaticallyCyberPlayerOne– CyberPlayerOne2022-07-01 01:08:17 +00:00Commented Jul 1, 2022 at 1:08