SlackwareThis Forum is for the discussion of Slackware Linux.
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.
So, with pmount-hal included in pmount, does anyone need ivman?
Thanks,
-Drew
only if they want scripts (such as those for auto-mounting) automatically run upon HAL events. Otherwise a simple 'pmount-hal /dev/device' will often do the trick.
Does this mean, that I have to add nesessary devices to /etc/pmount.allow? If yes, what's the difference then beetween this and adding devices to /etc/fstab?
Does this mean, that I have to add nesessary devices to /etc/pmount.allow? If yes, what's the difference then beetween this and adding devices to /etc/fstab?
No, all removable devices (cds, dvds, flash drives, external hdds, sd cards, etc) can be mounted using pmount unless they are in /etc/fstab and then pmount will use mount to mount them.
Any non-removable devices (eg. other partitions on your internal hdd) cannot be mounted by a normal user using pmount unless it is included in /etc/pmount.allow (or there is an fstab entry for it that allows user mounting).
Here's the Policy from the man page
Quote:
POLICY
The mount will succeed if all of the following conditions are met:
· device is a block device in /dev/
· device is not in /etc/fstab (if it is, pmount executes mount device
as the calling user to handle this transparently). See below for more
details.
· device is not already mounted according to /etc/mtab and /proc/mounts
· if the mount point already exists, there is no device already mounted
at it and the directory is empty
· device is removable (USB, FireWire, or MMC device, or
/sys/block/drive/removable is 1) or whitelisted in /etc/pmount.allow.
Well, you forgot another one condition: 'if you are in plugdev", the device will be mounted.
Thanks everyone, pmount works as it should, although it could be better that no additional software would be included for this, just if /bin/mount could do this. Also, don't understand what for ivman pointless in this situation. Those things about "closing the lid" usually get done through ACPI daemon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.