Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-29-2004, 05:16 AM   #1
LQ Newbie
Registered: Mar 2003
Location: France
Distribution: Slackware 12
Posts: 8

Rep: Reputation: 0
Havin' troubles with Hotplug + Kernel 2.6.4

Hello there !

First I would like to say I admire you people who help us, newbies. I dislike requesting for help for I used to look for answers by myself, and 'cause I now how annoying it could be to always read "heeelp me" posts ... but ... heeeelp me !!!
Sorry ... ahem ...
Well, I just reinstalled Slack 9.1, which works perfectly with its kernel 2.4, but those promising perfs of 2.6 tempted me so I compiled it.
Everything seems to work perfectly, I've began to be used to compile kernel those last time. But then, it's the drama ! I plug my usb key (or my wacom, well in fact, anything in usb will do ...) and receive a little message :

cat /sys/device/blablabla/bNumConfiguration : no such file blablabla.
/etc/hotplug/usb.agent (144) : blablabla (i don't remember, not very useful to tell, anyway)

What I understand is it could not find the stuff bNumConfiguration, as of course I did not have this /sys/ .
I've often read to do "mkdir /sys", to edit /etc/rc.sysinit , to mount none as an sysfs to /sys ... but it was always for a Red Hat Distro. So I would like to know if those steps where the same on all distros. I do not have /etc/rc.sysinit and I did not need it with kernel 2.4 . Is it a new stuff for 2.6 ? or did I make a mistake somewhere ? Could it be in connection with ?

Thanks a lot, if you feel in the mood to help me (well, even if you don't, you deserve already great thanks, sincerely.)

P.S. : I'm sorry, I'm a Frenchy ... I hope my English won't hurt your eyes too much ...

Old 03-29-2004, 10:52 PM   #2
Registered: May 2002
Distribution: Fedora Core
Posts: 41

Rep: Reputation: 15
I'm also using Slackware 9.1, except I'm successfully running it with kernel 2.6.4 and all my hotplugging is working fine. Here's some suggestions:

First of all, as far as I know a lot changed with the hotplug system between the 2.4 series and the 2.6 series. So update to the newest hotplug scripts! You can get them here:

You'll probably also want to make sure you have the sysutils from that same page installed. Udev is absolutely beautiful as well, but that's another story...

I'm not sure whether it will work without sysfs mounted at /sys or not. Either way, sysfs is pretty much essential at least for future-proofing, so you'd best go ahead and get it working whether you need to for this problem or not. Since you're on Slackware, you don't have a rc.sysinit bootscript. That's fine. Maybe it would be best to add a line to your /etc/rc.d/rc.S bootscript, but I just added a line to my /etc/fstab and it works fine. Here's the line to add:
none             /sys             sysfs       defaults             0   0
You also need to make sure you compiled the right things either into the kernel or as kernel modules. I think that should do it...
Old 03-30-2004, 04:46 AM   #3
LQ Newbie
Registered: Mar 2003
Location: France
Distribution: Slackware 12
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot.

I tried some tricks to see if it could work (I've made this /sys directory and mounted it as a sysfs) and then hotplug seems to work. It launched my wacom module when I plug it, and detect when I plug my USB Key (it launches the usb_storage module) but there are still some errors. Thanks for your help, I'll do as you say, it should surely fix what remains.

Thanks again.

Oh, and if you could say a word about udev, it makes me curious

Last edited by NiKkO_o; 03-30-2004 at 04:49 AM.
Old 03-30-2004, 06:24 AM   #4
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Originally posted by NiKkO_o
Oh, and if you could say a word about udev, it makes me curious
You might find this interesting. I followed this HOWTO since I have had some hotplug problems aswell and it works very nice.
Old 04-02-2004, 12:12 AM   #5
LQ Newbie
Registered: Feb 2002
Location: Slovenia
Distribution: Slackware 8.0
Posts: 11

Rep: Reputation: 0
H! guys!

I also use Slackware 9.1 & kernel 2.6.4.
Had troubles to manage hotplug to work and not completed yet.

1. hotplug.functions was not in place, so I moved it to the right place. I'm not sure that that file is correct.

2. Two files for hotplug in /etc/hotplug usb.agent and scsi.agent have errors in lines. I discovered that when hotplug returned errors in console stated something like "cat /sys//blablabla directory not exists" NOTE DOUBLE "/" after /sys! I removed "/" before $DEVPATH in scripts, so they look like "$SYSFS$DEVPATH". Now after plugin my usb flash disk nothing is written to console. dmesg returns that I plugged usb flash disk in the system and added new SCSI device with correct parameters. The device
works perfectly.

3. udev DO NOT work. I installed all as stated in kernel 2.6 documentation regarding udev. All compiled/installed OK. Perl script for testing udev completted without errors. When I boot the system there are no errors (kernel boot messages, dmesg and log files). The problem is THAT /udev IS EMPTY and stays empty. When I plugin my usb flash disk /udev stays empty!

I wonder, how udev works. No sripts are added to boot system when I installed udev package. Only udev directory was created in /etc with some files in it.

Can anybody explain, how to correctly install hotplug and udev parts of the system on my Slackware?




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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
speed up hotplug with kernel 2.6.7 robtheJobNorflk Slackware 1 09-29-2004 03:10 PM
kernel 2.6 and hotplug problem kam_kenneth Linux - Hardware 1 05-18-2004 03:43 PM
hotplug + kernel 2.6 kam_kenneth Linux - Newbie 0 05-18-2004 02:26 AM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 02:37 PM
havin probs with mandrake 7.2 eagle0669 Linux - Newbie 4 07-29-2001 08:28 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration