LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-04-2005, 12:14 PM   #1
fadrian
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Cannot get USB keydrive workin on Ubuntu


I am having problems getting my Ubuntu system to hotplug USB keydrives. This
functionality worked fine in Warty but broke in Hoary. I have upgraded to
the Breezy RC to see if that might fix it, but no go. Because this
functionality worked in earlier versions and others seem to have no problems
with it, I assume there's something wrong in my system configuration. So,
here are the particulars:

Distro: Ubuntu, Breezy Badger Release Candidate

Kernel version: 2.6.12-8

dmesg output:
[4294667.296000] Linux version 2.6.12-8-386 (buildd@rothera) (gcc version 3.4.5 20050809 (prerelease) (Debian 3.4.4-6ubuntu6)) #1 Tue Aug 30 22:41:30 BST 2005
[4341820.002000] usb 2-2: new full speed USB device using uhci_hcd and address 2[4341820.731000] Initializing USB Mass Storage driver...
[4341820.783000] scsi0 : SCSI emulation for USB Mass Storage devices
[4341820.838000] usb-storage: device found at 2
[4341820.838000] usb-storage: waiting for device to settle before scanning
[4341820.839000] usbcore: registered new driver usb-storage
[4341820.839000] USB Mass Storage support registered.
[4341825.842000] Vendor: SanDisk Model: Cruzer Titanium Rev: 0.4
[4341825.842000] Type: Direct-Access ANSI SCSI revision: 02
[4341825.940000] usb-storage: device scan complete

Note that the hotplug system seems to identify the device and load the scsi
emulation layer, but no /dev node gets created for the newly plugged device.

hotplug blacklist:
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first. Sometimes user
# mode tools can also control driver binding.
#
# Syntax: driver name alone (without any spaces) on a line. Other
# lines are ignored.
#

# uhci ... usb-uhci handles the same pci class
usb-uhci
# usbcore ... module is loaded implicitly, ignore it otherwise
#usbcore

#evbug is a debug tool and should be loaded explicitly
evbug

# these drivers are very simple, the HID drivers are usually preferred
usbmouse
usbkbd

# watchdog drivers should be loaded only if a watchdog daemon is installed
acquirewdt
advantechwdt
alim1535_wdt
alim7101_wdt
cpu5wdt
eurotechwdt
i810_tco
i8xx_tco
i810-tco
ib700wdt
indydog
machzwd
mixcomwd
pcwd
pcwd_pci
pcwd_usb
sa1100_wdt
sbc60xxwdt
sc1200wdt
sc520_wdt
scx200_wdt
shwdt
softdog
w83627hf_wdt
w83877f_wdt
wafer5823wdt
wdt285
wdt977
wdt
wdt_pci

# causes no end of confusion by creating unexpected network interfaces
eth1394

# eepro100 is obsoleted by e100 (Ubuntu bug #2156)
eepro100

#added by faa
hw_random

lsmod output:


lsmod output:
Module Size Used by
usb_storage 64704 0
cpufreq_userspace 4444 0
cpufreq_stats 5124 0
freq_table 4484 1 cpufreq_stats
cpufreq_powersave 1920 0
cpufreq_ondemand 5916 0
cpufreq_conservative 6820 0
video 16004 0
sony_acpi 5516 0
pcc_acpi 11392 0
dev_acpi 11396 0
i2c_acpi_ec 5760 0
button 6672 0
battery 9604 0
container 4608 0
ac 4996 0
ipv6 217408 8
ohci1394 30644 0
i2c_i801 8204 0
i2c_core 19728 2 i2c_acpi_ec,i2c_i801
tpm_atmel 5504 0
tpm_nsc 6528 0
tpm 9504 2 tpm_atmel,tpm_nsc
shpchp 80612 0
pci_hotplug 24628 1 shpchp
intel_agp 21276 1
agpgart 32328 2 intel_agp
irtty_sir 7808 0
sir_dev 17324 1 irtty_sir
irda 159804 2 irtty_sir,sir_dev
crc_ccitt 2176 1 irda
floppy 52692 0
pcspkr 3652 0
rtc 11832 0
dm_mod 50364 1
evdev 9088 0
snd_intel8x0 30016 0
snd_ac97_codec 71804 1 snd_intel8x0
snd_pcm_oss 46368 0
snd_mixer_oss 16128 1 snd_pcm_oss
snd_pcm 78344 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 21764 1 snd_pcm
snd 48644 6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 9184 1 snd
snd_page_alloc 10120 2 snd_intel8x0,snd_pcm
parport_pc 31812 1
lp 11460 0
parport 32072 2 parport_pc,lp
sbp2 21256 0
ieee1394 90936 2 ohci1394,sbp2
mousedev 10912 1
psmouse 25988 0
sr_mod 15652 0
scsi_mod 124872 3 usb_storage,sbp2,sr_mod
md 40656 0
ext3 115976 1
jbd 48536 1 ext3
thermal 13192 0
processor 23100 1 thermal
fan 4740 0
ide_cd 36996 0
cdrom 33952 2 sr_mod,ide_cd
ide_disk 16128 3
ide_generic 1664 0
e100 32768 0
mii 5248 1 e100
uhci_hcd 28048 0
usbcore 104188 3 usb_storage,uhci_hcd
piix 9476 1
ide_core 125268 5 usb_storage,ide_cd,ide_disk,ide_generic,piix
unix 24624 738
fbcon 34176 0
tileblit 2560 1 fbcon
font 8448 1 fbcon
bitblit 5248 1 fbcon
vesafb 8088 0
cfbcopyarea 4480 1 vesafb
cfbimgblt 2944 1 vesafb
cfbfillrect 3840 1 vesafb
softcursor 2432 1 vesafb
capability 5000 0
commoncap 6784 1 capability

lsusb -vvv output:
Bus 002 Device 002: ID 0781:5200 SanDisk Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0781 SanDisk Corp.
idProduct 0x5200
bcdDevice 0.20
iManufacturer 1 SanDisk Corporation
iProduct 2 Cruzer Titanium
iSerial 3 SNDK5F3ED52015C05803
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.12-8-386 uhci_hcd
iProduct 2 Intel Corporation 82801BA/BAM USB (Hub #2)
iSerial 1 0000:00:1f.4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0xd0
PortPwrCtrlMask 0x80
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0103 power enable connect

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.12-8-386 uhci_hcd
iProduct 2 Intel Corporation 82801BA/BAM USB (Hub #1)
iSerial 1 0000:00:1f.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x48
PortPwrCtrlMask 0x81
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power

At this point, I am stumped. Of course, any advice would be appreciated,
thanks in advance and all that.
 
Old 09-05-2005, 08:51 PM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Well, you certainly tried a lot of stuff...did you try a simple "sudo mount -a" though? If not, in terminal, try:
Code:
$ sudo mkdir /media/pendrive
$ sudo mount /dev/sda1 /media/pendrive
$ cd /media/pendrive
$ ls
You'll get an error before that anyway if the pen drive can't be found, but really - just try mounting everything and see if it pops up, or if not try mounting it manually!

J_K9

P.S Welcome to LQ!!

Last edited by J_K9; 09-05-2005 at 08:52 PM.
 
Old 09-06-2005, 09:51 PM   #3
fadrian
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I tried mounting the device and it fails with the error message: mount: special device /dev/sda1 does not exist.

I also checked the dev directory and, after the drive is plugged in, no new device nodes are being created for the hotplugged drive (something that dmesg should have mentioned if all was going well).

And besides, manually mounting the thing is a pain, anyway - I didn't have to do that under warty and everything came up fine. Thanks for your suggestion, though. I appreciate it.
 
Old 09-06-2005, 10:17 PM   #4
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Ok then... *ponders* Try the following:

"modprobe usb-storage" from the terminal. Now try mounting it again. Did that work?

J_K9
 
Old 09-06-2005, 11:27 PM   #5
fadrian
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Nope. Still no go. The /dev node isn't being created. I did an lsmod and the usb_storage module is there, as is usbcore, uhci_hdb, pci_hotplug and shpchp. scsi_mod is also being loaded to provide the scsi emulation layer for the drive. dmsg says it's using uhci_hdb to hotplug the device and that the scsi emulation driver is starting, but there's no message about the creation of a scsi device in /dev, nor does there appear to be one when I manually check. The salient dmesg portion is as follows:

[4295305.839000] usb 2-1: new full speed USB device using uhci_hcd and address 2
[4295306.015000] scsi1 : SCSI emulation for USB Mass Storage devices
[4295306.047000] usb-storage: device found at 2
[4295306.047000] usb-storage: waiting for device to settle before scanning
[4295311.051000] Vendor: SanDisk Model: Cruzer Titanium Rev: 0.4
[4295311.051000] Type: Direct-Access ANSI SCSI revision: 02
[4295311.162000] usb-storage: device scan complete

Somewhere in here should be a message about the creation of a /dev node for the scsi device, but it doesn't seem to happen :-(.
 
Old 09-07-2005, 02:40 AM   #6
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
How odd.... (bumping thread for a slightly more advanced user to help you! )

J_K9
 
Old 09-07-2005, 09:31 AM   #7
fadrian
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your suggestions, so far. I do appreciate your efforts.
 
Old 10-03-2005, 09:39 PM   #8
inimicus
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Possible solution (loss of permission/group membership)

fadrian: I had the same thing happen, and what it turned out to be in my case was a sudden and (apparently) spontaneous loss of group-membership. Check to see if your user-account belongs to the "plugdev" group (I also lost "audio" group membership, and probably several others, don't know why, or when). If you aren't a member of "plugdev," add yourself back in to the group (Computer --> System Configuration --> Users and Groups --> select your user-name -->Properties --> Other Groups --> plugdev --> OK --> OK.

Hope this helps!

inimicus
 
Old 10-03-2005, 09:42 PM   #9
inimicus
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Ack... Missed a step, sorry...

--> Other Groups --> plugdev --> Add --> OK --> OK

inimicus
 
Old 10-03-2005, 10:27 PM   #10
fadrian
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the info

I broke down and installed Ubuntu on another of the systems I had laying around at home. I also found out that the audio problems that I was having with the original box was due to a bad sound chip (as Windows didn't seem to detect this device anymore, either). I haven't tried out the hotplug facility on the new system yet, but I figure it will work fine. Thanks again for your help.
 
  


Reply


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
My USB isn't working in Ubuntu... SonoranFun Linux - Hardware 1 12-03-2004 06:48 AM
Cannot mount device: USB keydrive. SickFreak Linux - Hardware 6 09-13-2004 09:54 PM
Mounting a USB keydrive. carlosinfl Fedora 11 07-25-2004 04:21 PM
USB Keydrive Question Terje Linux - Hardware 4 07-16-2004 10:16 AM
Keydrive crashes USB bus ragingtarrasque Linux - Hardware 1 10-18-2003 07:02 PM


All times are GMT -5. The time now is 01:36 AM.

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