LinuxQuestions.org
Review your favorite Linux distribution.
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-14-2008, 09:58 AM   #46
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Rep: Reputation: 119Reputation: 119

So, with pmount-hal included in pmount, does anyone need ivman?

Thanks,

-Drew
 
Old 05-14-2008, 11:17 AM   #47
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 70
Quote:
Originally Posted by Lufbery View Post
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.
 
Old 05-15-2008, 01:24 AM   #48
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
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?
 
Old 05-15-2008, 11:30 AM   #49
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 70
Quote:
Originally Posted by iiv View Post
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.

device is not locked
 
Old 05-16-2008, 01:37 AM   #50
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
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.
 
  


Reply

Tags
console, hal, mount


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
How to use HAL wesd Linux - Software 1 06-11-2007 05:00 PM
hal krusty_lab Fedora 3 10-10-2005 11:23 AM
Hal gamehack Programming 7 12-16-2004 03:03 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 11:00 PM
X server in console 1 crashes on return from console 2 fieldmethods Red Hat 4 09-05-2003 01:12 AM


All times are GMT -5. The time now is 10:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration