LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Force hotplug permissions for usb0 ? (http://www.linuxquestions.org/questions/debian-26/force-hotplug-permissions-for-usb0-4175457592/)

Xeratul 04-10-2013 01:34 AM

Force hotplug permissions for usb0 ?
 
Hi,

Visibly on a Squeeze system of one machine I have, the hotplug of the usb0 is not reliable in terms that it does NOT allow the permissions to usb0, well, or hotplug does not activate the usb0.

example of mapping:
Code:

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug usb0

mapping hotplug
        script grep
        map usb0

Please could you give some direction which I should look at to solve this issue?

Code:

/etc$ dpkg -l | grep hotplug
ii  udev                                    164-3                              /dev/ and hotplug management daemon



Thanks

EDDY1 04-10-2013 01:40 AM

do you have usbmount installed?

Xeratul 04-10-2013 01:08 PM

Quote:

Originally Posted by EDDY1 (Post 4928687)
do you have usbmount installed?

Funny;) usbmount has nothing to do with hotplug.:) thanks

widget 04-11-2013 01:59 AM

Quote:

Originally Posted by Xeratul (Post 4929132)
Funny;) usbmount has nothing to do with hotplug.:) thanks

I beg to differ. From the description of the package in Synaptic;
Quote:

This package automatically mounts USB mass storage devices (typically
USB pens) when they are plugged in, and unmounts them when they are
removed. The mountpoints (/media/usb[0-7] by default), filesystem types
to consider, and mount options are configurable. When multiple devices
are plugged in, the first available mountpoint is automatically
selected. If the device provides a model name, a symbolic link
/var/run/usbmount/MODELNAME pointing to the mountpoint is automatically
created.
Certainly sounds like hot plugging to me. Importantly it also unmounts them when you unplug them freeing up the mount point.

Xeratul 04-11-2013 09:34 AM

Quote:

Originally Posted by widget (Post 4929574)
I beg to differ. From the description of the package in Synaptic;

Certainly sounds like hot plugging to me. Importantly it also unmounts them when you unplug them freeing up the mount point.

the code above i.e.

Code:

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug usb0

mapping hotplug
        script grep
        map usb0

is from /etc/network/interfaces.

So it has nothing to do with any mounting.

The Hotplug (dev) handle the permissions. You can access or modify them with defining the rules for hotplug located into /etc.


usbmount is an app that does help you simply in mounting. I have never installed it, nor used it. It is really not necessary.


All times are GMT -5. The time now is 06:54 PM.