LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   /sbin/hotplug not being executed when hotplugging usb stick (https://www.linuxquestions.org/questions/linux-hardware-18/sbin-hotplug-not-being-executed-when-hotplugging-usb-stick-685057/)

monk576 11-20-2008 10:55 PM

/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

JZL240I-U 11-26-2008 01:30 AM

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.


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