LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   udev .071, usb drives (http://www.linuxquestions.org/questions/slackware-14/udev-071-usb-drives-444638/)

satinet 05-14-2006 06:58 AM

udev .071, usb drives
 
Hello,

I'm running a current version of slackware with:

kernel 2.6.16.15 (built myself)
udev-071-i486-1


When i plug in a usb pen drive two things are not happening:

1) the light on the drive doesn't come on
2) no device is created in /dev/


however, the device is listed in "lsusb". And a new file called "usbdev1.5" is created in /dev


I am wondering what the situation is with usb drives etc now with this version of udev and new kernel.... Do I have to change my udev rules or something. Or could it be a kernel problem (ehci and ohci are loaded as kernel modules).

:wq

cs-cam 05-14-2006 07:50 AM

Quote:

:wq
Heh, nice sign off :)

First up, udev 071 (unless it's a typo) is quite outdated. I'd start by updating to 091, the rules syntax has changed so I'd start with the default and go from there, maybe the problem you're having has been fixed or a behaviour has changed since then.

satinet 05-14-2006 10:10 AM

thanks!

071 is from current so i assuming it's pretty much working... I'm not sure what this is with udev now. Where does hot plug come into this. Linux is so bad in this area, you feel like you're pulling your hair out sometimes... anyway....

i'm really confused..........

urka58 05-14-2006 10:23 AM

The problem should come from some modules missing
While compiling the new kernel you probably forgot to compile these modules (may be only some of them)
sg
sd_mod
usb_storage
Ciao

Toods 05-14-2006 10:24 AM

Have you checked the permissions of '/etc/rc.d/rc.udev' and made sure that it is 'executable'?.
It is NOT executable by default in Slackware-current.

satinet 05-14-2006 10:28 AM

sd??? what's that.

of course i did include usb mass storage support........

help i'm being tempted by debian and getting really angry at slackware more and more...

urka58 05-14-2006 11:08 AM

Quote:

Originally Posted by satinet
sd??? what's that.

of course i did include usb mass storage support........

help i'm being tempted by debian and getting really angry at slackware more and more...

sd_mod and sg is the name of the modules you should have compiled either built in or as loadable module.
They enable scsi_generic (sg) and scsi_disks (sd_mod).
If you find Slackware is boring you can give a try to Debian.. why not.
Ciao

satinet 05-14-2006 11:26 AM

Maybe it's just a phase ;-)

anyway, i have included support of generic scsi and scsi disks.

here's the output of dmesg pertaining to the usb drive:

Quote:

usb 1-2: new high speed USB device using ehci_hcd and address 3
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: CRUCIAL Model: USB2.0Flash Disk Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
usb-storage: device scan complete
so that's seems fine....

and it's in "lsusb" of course.


but in dev...


ls -lsrt /dev/ | tail -n 5

this is created:

Quote:

0 crw-rw---- 1 root root 189, 2 2006-05-14 17:23 usbdev1.3
has anyone got or seen that before???

urka58 05-14-2006 12:46 PM

They rely on usb controllers.
have you tryied

udevinfo -q path -n /dev/sda1

and then

udevinfo -a -p /output/of/previous/command/

May be this can clarify

Ciao

pdw_hu 05-14-2006 02:45 PM

Quote:

Originally Posted by satinet
anyway, i have included support of generic scsi and scsi disks.

What about usb_storage (called USB Mass Storage Support in menuconfig)?

satinet 05-15-2006 03:39 AM

yes i have included that - see above....

:scratch:

thanks anyway

/bin/bash 05-15-2006 03:45 AM

Do you have a usbfs entry in /etc/fstab? Should look something like this:
usbfs /proc/bus/usb usbfs user,defaults 0 0

satinet 05-15-2006 04:54 AM

yeah i do have that..... seems a unique problem to me!

does anyone else get deives like "usbdev1.5" and "usbdev2.2" listed in /dev??

pdw_hu 05-15-2006 11:24 AM

Hmm yeah, my bad about not noticing. Try 'mknod /dev/sda1 b 8 1' and then try to mount it as 'mount -t vfat /dev/sda1 /where/you/want'.
Does it work?


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