LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mount point for jump drives (https://www.linuxquestions.org/questions/linux-general-1/mount-point-for-jump-drives-4175516370/)

rcdawson 08-25-2014 11:45 PM

Mount point for jump drives
 
This is a "why" question rather than a "how to" question. I notice that at least two recent distributions mount usb drives to a subdirectory that they create within a subdirectory of /media rather than simply mounting to a subdirectory of /media. For instance, in KDE Mint 13 my Lexar jump drive is automatically mounted to a directory /media/Lexar_Media, but in KDE Mint 17 it gets mounted to /media/username/Lexar_Media. Even stranger, the current Mageia automatically mounts the Lexar jump drive to /run/media/username/Lexar. I know Mandriva mounted to /media/Lexar.

Why this change? For that matter, why did distributions stop using /mnt for mounting drives?

Richard Dawson

pwalden 08-26-2014 12:01 PM

I use Fedora-gnome and it automounts to /run/media/<user>/<drive name>. /run is a tmpfs. My other Fedora-xfce does not automount but uses the gnome disks utility to mount in the same place. So each distro and desktop has a different flavor, it seems.

I am not a desktop expert, but I recall reading that /mnt is preferred for fstab based mount points at boot time or system events. /media/ is for user directed mounts.

jefro 08-26-2014 02:50 PM

The /media is a common place and has been for quite a number of years in many distro's. Forget why they did it exactly, something to do with something related to common use not any technical issue. So maybe pwalden is correct.
You may find differences still in major distro's. I think Debian is an odd place. /var or /tmp maybe. Not sure it really affects user except to know the distro.

frankbell 08-26-2014 07:34 PM

We were discussing this on my LUG's forums last night.

The /media/run stuff seems to be a udisks2 thing:

http://forums.fedoraforum.org/archiv.../t-277383.html

http://igurublog.wordpress.com/2012/...oss-for-linux/

TobiSGD 08-26-2014 09:20 PM

The point of this changes is to make Linux more suitable for multiseat usage. Mounting removable storage devices to a directory owned by your user increases security when more than one user is connected to the machine.

frankbell 08-26-2014 09:21 PM

Quote:

The point of this changes is to make Linux more suitable for multiseat usage.
That is a reasonable rationale. Thanks.

sgosnell 08-27-2014 04:43 PM

Debian mounts to /media/username/. The default location can be changed if you really want to.

evo2 08-27-2014 04:54 PM

Hi,
Quote:

Originally Posted by rcdawson (Post 5227297)
For that matter, why did distributions stop using /mnt for mounting drives?

I think this (eg /mnt/mydrive) was a misuse of /mnt. As I understand it /mnt was supposed to be a single mount point, not a directory to create mount points. See for example http://www.linuxbase.org/betaspecs/fhs/fhs/ch03s12.html

So /mnt is "supposed" to be used like:
Code:

mount -t ext2 /dev/sdg1 /mnt
not like
Code:

mkdir /mnt/somedrive
mount -t ext /dev/sdg1 /mnt/somedrive


Evo2.

evo2 08-27-2014 04:55 PM

Hi,
Quote:

Originally Posted by sgosnell (Post 5228323)
Debian mounts to /media/username/.

What part of "Debian" does that?

Evo2.


All times are GMT -5. The time now is 04:22 PM.