LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-10-2020, 05:12 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
location of mount point and config file


1.
/home and / are configured in this file that located at this location below,

/etc/fstab
but where is the mount point (such as /run/media/user/) ?

2.
in /run/media/<user> are located the mount point of temporary usb storage
but where is the config file of it ? there should be files such (fstab ) as above right ?
 
Old 10-10-2020, 05:20 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,326
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Which distro is this about, including version?
 
Old 10-10-2020, 05:25 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
there should be files such (fstab ) as above right ?.
Wrong. Do a search on fhs. Note that this (fhs) is ignored as often as observed.

Last edited by syg00; 10-10-2020 at 05:27 AM. Reason: addded quote for context
 
Old 10-10-2020, 05:39 AM   #4
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Which distro is this about, including version?
I am using arch based linux. to be precide, endea linux.
Code:
$ uname -r
5.8.14-arch1-1
 
Old 10-10-2020, 05:43 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Read the man page for pmount. This is the command that file managers use to mount plug-in devices on temporary directories. These are typically devices that are not in fstab.
 
Old 10-10-2020, 05:52 AM   #6
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Read the man page for pmount. This is the command that file managers use to mount plug-in devices on temporary directories. These are typically devices that are not in fstab.
@hazel
where is pmount manual page located?

Code:
$ man pmount
No manual entry for pmount
$ man pmount
No manual entry for pmount
There is no
Code:
pmount
in my os

Last edited by andrewysk; 10-10-2020 at 05:54 AM.
 
Old 10-10-2020, 05:58 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by andrewysk View Post
@hazel
where is pmount manual page located?
Universal rule: if you can't find a man page on your system, google it. Put in "man pmount" and see what comes out. You may not have the command but your system certainly has the facility.
 
1 members found this post helpful.
Old 10-10-2020, 06:51 AM   #8
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Wrong. Do a search on fhs. Note that this (fhs) is ignored as often as observed.
I have took time to read thru FHS on
https://appuals.com/filesystem-hiera...ard-explained/
and
https://geek-university.com/linux/fi...-standard-fhs/
It did not answer my question.
 
Old 10-10-2020, 06:56 AM   #9
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Universal rule: if you can't find a man page on your system, google it. Put in "man pmount" and see what comes out. You may not have the command but your system certainly has the facility.
Good idea. Never cross my mind of google search when i see "man" :0p
according to google:
pmount ("policy mount") is a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry.

Ya, so.. however does it not require to have a config file in text form that user can "cat" them to see the content ? How do i know what is mounted or modify the mounting of those temporary usb devices ?
Does installing pmount package of any good ?
 
Old 10-10-2020, 07:23 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
To know what is mounted at any time, open a terminal and type mount. Using the mount command in this way without any arguments gives you a list of all the mounted systems.
 
1 members found this post helpful.
Old 10-10-2020, 10:21 AM   #11
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
To know what is mounted at any time, open a terminal and type mount. Using the mount command in this way without any arguments gives you a list of all the mounted systems.
Why not just use lsblk ? it is neat.
 
Old 10-10-2020, 10:44 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
There's always more than one way of skinning a cat.
 
1 members found this post helpful.
Old 10-10-2020, 04:09 PM   #13
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by andrewysk View Post
Why not just use lsblk ? it is neat.
Granted, it is neat. But... it doesn't include remote (i.e., NFS) filesystems or the mount options like "mount" does or the filesystem utilization like "df" does.

You can control where pluggable devices are mounted but you need to look at the /var/log/messages file (or the systemd logging subsystem via journalctl(1)) when you plug in such a device and take down the information displayed and then you can go into the udev configuration, set up a rule, and add the appropriate record in /etc/fstab to control where your USB drives are mounted. If you're mostly doing GUI-oriented work, you won't need to get into that---or want to. File managers are picking them up automatically nowadays---Dolphin sees my camera's SD card as "EOS_DIGITAL" as soon as I plug it in. I stopped messing with defining things in udev a number of years ago. I haven't missed it though it was sort of fun setting it up for things like music players, etc. back then.

HTH...
 
1 members found this post helpful.
Old 10-10-2020, 04:50 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
It is typically udisks/udev (and the user's desktop environment) that handle detection and mounting of external media....

More info here...
https://wiki.archlinux.org/index.php...media_(udisks2)
 
Old 10-10-2020, 07:39 PM   #15
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,335
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
A web search for "/run/media/user" turned up this: https://forums.opensuse.org/showthre...-gt-media-quot
 
  


Reply



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
LXer: Google I/O Android News: Location, Location, Location (Plus Cloud Messaging and Bluetooth) LXer Syndicated Linux News 0 06-05-2013 01:00 PM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM
location, location, location! mermxx LQ Suggestions & Feedback 9 09-25-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration