Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55168 - udev/hotplug do not create device nodes for USB Zip 100 drive without udevstart
Summary: udev/hotplug do not create device nodes for USB Zip 100 drive without udevstart
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-25 10:17 UTC by Jeff Davidson
Modified: 2005-12-23 15:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Davidson 2004-06-25 10:17:32 UTC
Using different combinations of udev/hotplug, I have been unable to get udev to create device nodes for my USB 100 Zip drive.  According to dmesg, the device is detected as an scsi generic device (scsi0: SCSI emulation for USB Mass Storage devices), given the device name sg0.  If I plug the device in with a disc, dmesg also reports disk sda and partition sda4.  However, these nodes are not created in /dev until I do a "udevstart", which creates everything mentioned here.  I have tried booting without hotplug as above, and when I emerge hotplug and rc-update add hotplug boot, the same behavior occurs except with the additional line "scsi.agent[12080]: disk at /devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0/host0/0:0:0:0".  Also, when I remove the device, the nodes remain until I do another "udevstart" at which point they are deleted.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-02 10:34:26 UTC
I don't understand.

Are you using udev normally?  Is hotplug-core installed?  Is udev installed?
Are you using udev to manage your /dev tree?

When the device is added, the device node should also be added.
Comment 2 Jeff Davidson 2004-07-06 18:52:31 UTC
While I'm at summer camp and can't give much, I used hotplug-base and udev normally, and I tried using it with the tarball and without, as I recall.  Udev was working for the dev tree, as we worked out with _dsd (I think that was his/her name) from IRC (deleting /dev/random and running udevstart or something along those lines).
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2004-07-07 00:48:35 UTC
If I remember right, the problem seemed to be that udev wasn't automatically creating any nodes, it only happened when you ran "udevstart".

So you could plug a device in, and get info in dmesg about it, but the node didnt appear in /dev until you ran udevstart. Similarly, after unplugging, that node didnt disappear until you ran udevstart. We tried both with and without hotplug.
Comment 4 Janne Ojaniemi 2004-09-10 05:19:50 UTC
I'm having the exact same problem. Udev does not create the nodes in /dev. For example after a reboot, my sound (Audigy2) does not work. I have to run udevstart for the nodes to be created. Also, I just tried it with my USB-keychain. dmesg reports that new device (sda) is plugged in, but nothing appears in /dev. Only after I run udevstart, sda appears.

I'm running a pure udev-system with no device-traball.

My specs:

Athlon64 3200+
Gentoo Linux 64bit (AMD64)
udev-030
hotplug-20040401
Kernel 2.6.7-gentoo-r12
GCC 3.4.1
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-09-13 12:24:52 UTC
I don't have much of an idea how the kernel communicates with udev/hotplug in order to notify it of new events, but maybe the following information would help

Is hotplug running? /etc/init.d/hotplug status
Which runlevels is hotplug in? rc-update show | grep hotplug
Which hotplug agent should be being called? cat /proc/sys/kernel/hotplug
Which package owns that agent? qpkg -f $(cat /proc/sys/kernel/hotplug)
Comment 6 Janne Ojaniemi 2004-09-14 12:22:06 UTC
Relevant info:

root@gothmog /home/janne # /etc/init.d/hotplug status
 * status:  started
root@gothmog /home/janne #

root@gothmog /home/janne # rc-update show | grep hotplug
             hotplug | boot
root@gothmog /home/janne #

root@gothmog /home/janne # cat /proc/sys/kernel/hotplug
cat: /proc/sys/kernel/hotplug: No such file or directory
root@gothmog /home/janne #

root@gothmog /home/janne # qpkg -f $(cat /proc/sys/kernel/hotplug)
cat: /proc/sys/kernel/hotplug: No such file or directory
root@gothmog /home/janne #

The last two don't seem right,
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-15 23:26:08 UTC
That means you do not have CONFIG_HOTPLUG enabled in your kernel, right?
Please fix this, as it is the way udev works.

If you enable this in your kernel, it should work properly.
Comment 8 Janne Ojaniemi 2004-09-16 08:36:23 UTC
You're right, it wasn't enabled! I could have sworn that I had it enabled, but apparently that wasn't the case.

I'm recompiling my kernel as we speak. I will let you know that did it fix it.
Comment 9 Janne Ojaniemi 2004-09-16 09:07:23 UTC
Tested, and it seems to be working now. Thank you all for your help :)
Comment 10 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-17 16:28:02 UTC
great.
Comment 11 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-12-23 15:54:45 UTC
bah, wrong state...
Comment 12 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-12-23 15:55:23 UTC
bah, wrong bug...