View previous topic :: View next topic |
Author |
Message |
gentoobloke n00b
Joined: 16 Mar 2005 Posts: 15
|
Posted: Fri May 13, 2005 6:28 pm Post subject: Udev not creating the correct devices [SOLVED] |
|
|
I have udev set up on a per request basis so that cameras, usb sticks, etc are all created as /dev/fuji_cam, /dev/usb_stick, etc instead of /dev/sdx. It was all working fine until I updated the kernel from 2.6.11-r6 to 2.6.11-r8 and updated udev from 045 to 056. Now when I plug in devices I see this in dmesg:
Code: |
usb 1-1: new high speed USB device using ehci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: GENERIC Model: USB Mass Storage Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 1024000 512-byte hdwr sectors (524 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 1024000 512-byte hdwr sectors (524 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
bash-2.05b$
|
I have a rules script in /etc/udev/rules.d as:
Code: |
(/etc/udev/rules.d/80-ipod.rules)
BUS="scsi", SYSFS{vendor}="Apple ", NAME="ipod%n", SYMLINK="ipod"
BUS="scsi", SYSFS{vendor}="FUJIFILM", KERNEL="sd?1", NAME="%k", SYMLINK="fuji_cam"
BUS="scsi", SYSFS{vendor}="Philips ", KERNEL="sd?1", NAME="%k", SYMLINK="usb_key"
BUS="scsi", SYSFS{model}="USB Mass Storage", KERNEL="sd?1", NAME="%k", SYMLINK="usb_stick"
|
After plugging in the USB stick there is no /dev/usb_stick directory - from dmesg it looks as though it is still being created as sda1.
Again, this worked fine until I synced and updated the kernel and udev last night.
I'm completely stuck with this now, any help would be greatly appreciated.
Thanks,
Gentoobloke
Last edited by gentoobloke on Fri May 13, 2005 7:47 pm; edited 1 time in total |
|
Back to top |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Fri May 13, 2005 7:33 pm Post subject: |
|
|
Change BUS="scsi" to BUS="usb" and try again. _________________ Hello 911? How are you? |
|
Back to top |
|
|
jasm Tux's lil' helper
Joined: 10 Sep 2003 Posts: 80 Location: Belgium
|
Posted: Fri May 13, 2005 7:37 pm Post subject: |
|
|
I have a similar setup with that difference that my own rules are located in the file 10-udev.rules. The expected symlinks in /dev are still created but I don't see anyting which relates to that in the log files. They just show that sda and sda1 are created.
When I rename the file to 60-udev.rules (any name which is lexically larger than 50-udev.rules), I recreate your problem: the symlink is not created. Renaming it back to its original name solves the problem. So I suggest you rename your rules file to 30-ipod.rules.
Jan |
|
Back to top |
|
|
gentoobloke n00b
Joined: 16 Mar 2005 Posts: 15
|
Posted: Fri May 13, 2005 7:46 pm Post subject: |
|
|
Thanks, I renamed it to 10-blah.rules and it works again. Strange how its worked all this time when the file was 80-blah.
Anyway, thanks for the help
Gentoobloke |
|
Back to top |
|
|
jasm Tux's lil' helper
Joined: 10 Sep 2003 Posts: 80 Location: Belgium
|
Posted: Fri May 13, 2005 8:02 pm Post subject: |
|
|
you're welcome,
During the etc-update after udev056 was emerged, I noticed some serious changes in 50-udev.rules - just did the emerge half an hour before I saw your post. My guess is that these changed/added default rules somehow stopped further processing of rules, one way or another.
Jan |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|