LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2015, 07:20 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Rep: Reputation: 1
what is the difference between /media, /mnt and /run/mount


In FHS-2.3, we have /media that holds mount points for removable media such as CD-ROMs and we have /mnt that holds temporarily mounted filesystems.

On the other hand, we have /run/media and /run/mount. For me, the CDs and USBs are mounted on /run/media

I have seen similar trend (mount on /run/media) in fedora 20 - GNOME 3.10.4 and ubuntu 14.04.1 (installed on virtual box) with GNOME 3.10.4. But when I plugged in a USB flash (with auto-mounter script) on a system with Centos 6 and GNOME 2.28.2 it was mounted on /media.

I don't see any clear distinction. What is the difference between /media, /mnt and /run/mount?
 
Old 01-02-2015, 07:30 AM   #2
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
In short words /run/media/username/ allows to differentiate permissions on particular media for multi-users systems. It might be actual if you had a dosen of users logged in simultaneously.
In my opinion, for single user system it's pointless.
 
Old 01-02-2015, 08:34 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,601

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by Teufel View Post
In short words /run/media/username/ allows to differentiate permissions on particular media for multi-users systems. It might be actual if you had a dosen of users logged in simultaneously.
In my opinion, for single user system it's pointless.
The problem with /run/media/username is that it allows a single user to block all other users... a local denial of service attack if you will, as /run is tmpfs, as is /run/media/username.

Not good if you have a dozen users logged in....
 
Old 01-02-2015, 08:35 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
/media for medias like floppy cd/dvd, pen drive
/mnt for other
/run/mount for per user/per process
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch help request to Restore mount to /media vs /run/media lkraemer Slackware 1 10-13-2012 07:35 PM
[SOLVED] Unable to mount NOR Flash (mount -t jffs2 /dev/mtdblock0 /mnt) cruiser Linux - Embedded & Single-board computer 2 08-28-2012 10:50 PM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 04:05 PM
ln -s /mnt /media alaios Linux - Newbie 2 10-11-2004 07:21 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 05:51 AM


All times are GMT -5. The time now is 08:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration