LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01:34 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
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, 01:40 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
do you have usbmount installed?
 
Old 04-10-2013, 01:08 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
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, 01: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,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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, 09:34 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:27 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
Open Source Consulting | Domain Registration