LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-10-2013, 02:34 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,383

Rep: Reputation: 88
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
 
Old 04-10-2013, 02:40 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,009

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
do you have usbmount installed?
 
Old 04-10-2013, 02:08 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,383

Original Poster
Rep: Reputation: 88
Quote:
Originally Posted by EDDY1 View Post
do you have usbmount installed?
Funny usbmount has nothing to do with hotplug. thanks
 
Old 04-11-2013, 02:59 AM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,296

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
Originally Posted by Xeratul View Post
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.
 
1 members found this post helpful.
Old 04-11-2013, 10:34 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,383

Original Poster
Rep: Reputation: 88
Quote:
Originally Posted by widget View Post
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.
 
  


Reply


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
force create permissions chesterman Linux - General 7 11-23-2009 04:20 PM
Force permissions in a folder geomysterio Linux - Newbie 2 05-28-2009 07:12 PM
How do I force hotplug to ignore a PCI slot? apsteffe Slackware 3 09-24-2006 05:50 PM
USB (hotplug) permissions problem chrisjasp Mandriva 3 04-26-2005 03:48 AM
How does one force directory permissions for existing/new files salieg Linux - Newbie 3 05-12-2004 07:58 AM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
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