LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-20-2020, 07:40 AM   #1
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 149

Rep: Reputation: Disabled
mounting mess


whats the story with mounting drives

in old days it used to be /mnt to mount drives then it become /mnt and /media
noways there is:
/mnt
/media
/run/media

whats the point where i suppose to mount correctly drives and other media to access it by normal user
 
Old 05-20-2020, 07:55 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,814

Rep: Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712
See the fhs standards:
/media
https://refspecs.linuxfoundation.org...s/ch03s11.html

/mnt
https://refspecs.linuxfoundation.org...s/ch03s12.html

Mounting stuff under run user name is debian/systemd nonsense
 
Old 05-20-2020, 07:59 AM   #3
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 149

Original Poster
Rep: Reputation: Disabled
somehow slackware does it too ;-)
 
Old 05-20-2020, 08:04 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,814

Rep: Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712
Quote:
Originally Posted by przemo View Post
somehow slackware does it too ;-)
Not used Slack for a while but you do surprise me,
 
Old 05-20-2020, 08:04 AM   #5
0XBF
Member
 
Registered: Nov 2018
Location: Winnipeg
Distribution: Slackware
Posts: 174

Rep: Reputation: 124Reputation: 124
Usually you will see that a USB stick is mounted somewhere in /run/media when it's auto-mounted (e.g. dolphin does this). This is because udisks2 handles automounting this way, and this comes with slackware.
 
Old 05-20-2020, 09:45 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,395

Rep: Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639
Quote:
Originally Posted by przemo View Post
whats the point where i suppose to mount correctly drives and other media to access it by normal user
Do what you want. Nobody will blame on you. As you can see there are several conventions, and actually it is completely irrelevant.

Is this a host used by one person or by several different users?
 
2 members found this post helpful.
Old 05-20-2020, 01:32 PM   #7
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 467

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by 0XBF View Post
Usually you will see that a USB stick is mounted somewhere in /run/media when it's auto-mounted (e.g. dolphin does this). This is because udisks2 handles automounting this way, and this comes with slackware.
I have used udisks --mount for a few years now because in contrary to mount it doesn't require root access and it always creates a mountpoint in /media.
 
Old 05-20-2020, 01:35 PM   #8
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,575

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
Try this:

Code:
# Where to mount removable devices.
# 0: Mount to a private directory ([/var]/run/media/$USER/$UUID)
# 1: Mount to a shared directory (/media/$UUID)
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"
 
Old 05-20-2020, 03:17 PM   #9
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 277
Blog Entries: 1

Rep: Reputation: 52
There is nothing whatsoever to prevent you mounting any drive (mounted or not) wherever you want to.
 
1 members found this post helpful.
Old 05-20-2020, 03:22 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,814

Rep: Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712Reputation: 712
One caveat to all this is if your distro by default mounts to a specific folder (/media or whatever) any badly written scripts may not function on your distro if they assume a different standard mount directory.
 
Old 05-20-2020, 08:14 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,221
Blog Entries: 27

Rep: Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841Reputation: 4841
I think the important thing here is to be consistent when adding disks to /etc/fstab.

For what it's worth, when I add disks (say, additional HDDs, whether internal or external) in /etc/fstab, I create the mount points in /media.
 
Old 05-21-2020, 09:24 AM   #12
0XBF
Member
 
Registered: Nov 2018
Location: Winnipeg
Distribution: Slackware
Posts: 174

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by average_user View Post
I have used udisks --mount for a few years now because in contrary to mount it doesn't require root access and it always creates a mountpoint in /media.
I think the "udisks --mount" command uses udisks to mount a device which uses /media for its standard mount point.

Udisks2 has changed that mount point to /run/media. You can do a similar unprivileged mount with udisks2 by running "udisksctl mount -b /dev/sda1" for example, and this will mount to /run/media/ by default.

Last edited by 0XBF; 05-21-2020 at 09:25 AM. Reason: Missed a udisksctl option
 
2 members found this post helpful.
Old 05-21-2020, 06:29 PM   #13
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,244
Blog Entries: 4

Rep: Reputation: 192Reputation: 192
I must be old school, I still use /mnt

notices the standard talks about removable media, doesn't specify NFS mounts
 
Old 05-21-2020, 06:50 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,962

Rep: Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643Reputation: 4643
Quote:
Originally Posted by enine View Post
I must be old school, I still use /mnt

notices the standard talks about removable media, doesn't specify NFS mounts
The specification is what distros need to follow to be FHS compliant.The FHS doesn't intend to cover every scenario and gives system administrators (you) leeway in handling local issues.

Quote:
Local placement of local files is a local issue, so FHS does not attempt to usurp system administrators.
I actually created a folder in my root called /share/ that I have all 6 of my additional hard drives mounted to. I always felt /mnt/ was for short-lived mountings, not permanent ones. I still use /mnt/ when I manually mount drives. If I mount something via a GUI, I just let it do its thing (which I think is usually to /run/media/jbhansen/). I don't use /media/ for anything. I'm now stuck in my ways and have no intention to change (unless there's a good reason to change).
 
Old 05-21-2020, 07:06 PM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,425

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
Quote:
Originally Posted by bassmadrigal View Post
I don't use /media/ for anything.
Me neither. It's like a useless nub that we have to carry around now.
 
  


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
Partition mess Tristan Sharp Linux - Software 3 02-10-2003 12:45 AM
X mess. No driver for agp trident blade. Racso Linux - Software 1 01-07-2002 12:24 PM
*error mess* Waiting for X Server to shut down Tasha v71 Linux - General 9 10-19-2001 09:45 PM
ok, what'd I mess up breed Linux - Networking 1 10-02-2001 01:42 PM
authorizations and/or ownership mess marlaina1 Linux - General 3 06-14-2001 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 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