Contents
What is the mnt folder in Linux?
The /mnt directory and its subdirectories are intended for use as the temporary mount points for mounting storage devices, such as CDROMs, floppy disks and USB (universal serial bus) key drives. /mnt is a standard subdirectory of the root directory on Linux and other Unix-like operating systems, along with directories …
What is Media Linux?
/media — Removable Media The /media directory contains subdirectories where removable media devices inserted into the computer are mounted. For example, when you insert a CD into your Linux system, a directory will automatically be created inside the /media directory.
What’s the difference between / media and / MNT?
FHS states that /media is for users and /mnt is for admins. Furthermore, it forbids adding user mounts into /mnt since that was a common practice before /media was created. /run is the replacement for /var/run. Those directories are for changes made to the system since boot and should be cleared on each boot.
Why do you need to mount a device at / MNT?
The purpose of mount (and the opposite umount) is to allow dynamic mounting of devices. What I mean here is that perhaps you may want to only mount a device under certain circumstances, and at other times have it not readily accessible. You may wish to mount an entire file system at /mnt when repairing a system.
When to mount a device in / Dev or / media?
You may wish to mount an entire file system at /mnt when repairing a system. You may wish to mount a disc image (e.g. foo.iso) from time to time. Etc. You may choose to mount a device in /dev at either /media or /mnt. There are more or less correct ways of doing this. For example, from your question you say: That’s pretty much correct.
Is the Mount the same as the device?
In function, they are the same. The theoretically difference is that the same removable devices might show up repeatedly and if possible it’s nice to have them mount to the same directory. Any time you insert a CD it’s nice to have that CD at a unique path like “/media/My_CD_Title”.