LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-20-2008, 10:55 PM   #1
monk576
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
/sbin/hotplug not being executed when hotplugging usb stick


Hi,

Iam working with an older kernel 2.6.12 and am seeing some issues when trying to use usb hotplug
CONFIG_HOTPLUG is turned on in the kernel. /proc/sys/kernel/hotplug shows /sbin/hotplug.
The device comes up as /dev/sda when hotplugging it and I can mount it manually

However when trying to automate the mount, it looks like /sbin/hotplug is not getting executed. The script has some echo statements and runs ok from command line.
The return value from call_usermodehelper() which calls /sbin/hotplug is 0.

Any clues what could be causing the hotplug script to be not executed?
thanks
 
Old 11-26-2008, 01:30 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
SuSE takes a brake during boot up to let udev settle. Maybe your script just comes too fast, after all the boot process is in the process of getting parallelized and threaded. Try to start it a little later.
 
  


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
USB stick hotplugging with SUSE 10.0 DarkCow SUSE / openSUSE 50 01-04-2006 07:46 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
hotplug script executed 3 times Borelian Linux - Software 1 06-28-2004 11:46 PM
Hotplugging Broken and Corrupt /var/run/hotplug revmyo Linux - Software 0 01-21-2004 12:18 PM
Slack9 networt setup prob: rc.inet1 executed before rc.hotplug yan1 Slackware 7 04-21-2003 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:23 AM.

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