LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-14-2006, 06:58 AM   #1
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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
 
Old 05-14-2006, 07:50 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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.
 
Old 05-14-2006, 10:10 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Original Poster
Rep: Reputation: 46
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..........
 
Old 05-14-2006, 10:23 AM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
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
 
Old 05-14-2006, 10:24 AM   #5
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
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.
 
Old 05-14-2006, 10:28 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Original Poster
Rep: Reputation: 46
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...
 
Old 05-14-2006, 11:08 AM   #7
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
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
 
Old 05-14-2006, 11:26 AM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Original Poster
Rep: Reputation: 46
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???
 
Old 05-14-2006, 12:46 PM   #9
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
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
 
Old 05-14-2006, 02:45 PM   #10
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
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)?
 
Old 05-15-2006, 03:39 AM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Original Poster
Rep: Reputation: 46
yes i have included that - see above....



thanks anyway
 
Old 05-15-2006, 03:45 AM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Do you have a usbfs entry in /etc/fstab? Should look something like this:
usbfs /proc/bus/usb usbfs user,defaults 0 0
 
Old 05-15-2006, 04:54 AM   #13
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Original Poster
Rep: Reputation: 46
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??
 
Old 05-15-2006, 11:24 AM   #14
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
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?
 
  


Reply

Tags
udev


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CD drives and udev sweetnsourbkr Slackware 8 12-22-2005 01:21 PM
trouble upgrade udev_0.071-1_i386.deb clsfrr Debian 7 11-04-2005 06:38 PM
Slackware 10.1 + Udev Permissions and USB Drives rignes Slackware 3 03-07-2005 09:12 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM


All times are GMT -5. The time now is 07:24 PM.

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