LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2014, 11:45 PM   #1
rcdawson
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Rep: Reputation: Disabled
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
 
Old 08-26-2014, 12:01 PM   #2
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
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.
 
1 members found this post helpful.
Old 08-26-2014, 02:50 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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.
 
Old 08-26-2014, 07:34 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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/
 
Old 08-26-2014, 09:20 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 08-26-2014, 09:21 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
Quote:
The point of this changes is to make Linux more suitable for multiseat usage.
That is a reasonable rationale. Thanks.
 
Old 08-27-2014, 04:43 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Debian mounts to /media/username/. The default location can be changed if you really want to.
 
Old 08-27-2014, 04:54 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by rcdawson View Post
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.
 
Old 08-27-2014, 04:55 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by sgosnell View Post
Debian mounts to /media/username/.
What part of "Debian" does that?

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] change the mount point of flash drives shahin_belly Linux - Newbie 4 08-27-2011 09:03 PM
Create one mount point / partition from 2 drives sir-lancealot Linux - Server 1 08-11-2009 07:29 PM
Using ext4 with lvm and making multiple drives have /home mount point cjae Ubuntu 2 07-24-2009 02:06 PM
Help! I want one mount point to span several drives. hrp2171 Ubuntu 10 03-16-2007 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration