Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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
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.
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 ?
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.
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.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,820
Rep:
Quote:
Originally Posted by andrewysk
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.