LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SanDisk Cruzer Mini Thumb Drive Problem (http://www.linuxquestions.org/questions/linux-hardware-18/sandisk-cruzer-mini-thumb-drive-problem-270568/)

kdogksu 12-26-2004 04:16 PM

SanDisk Cruzer Mini Thumb Drive Problem
 
I just recently got a SanDisk Cruzer Mini 512M USB thumb drive, and am having problems using it in linux. I just got it out of the box, and have not used it on Windows or any other machine/OS. I run Debian Testing with a customized 2.6.6 kernel from kernel.org. My MoBo is an Asus A7N8X-Deluxe.

When I plug the device in, dmesg reports:
usb 1-6: new high speed USB device using address 4
usb 1-6: device not accepting address 4, error -71
usb 1-6: new high speed USB device using address 5
usb 1-6: device not accepting address 5, error -71
(I get all four lines each time I plug it in. If I unplug it and replug it, the addresses will increment. e.g. the plug after this will be 6 and 7)

running `tail -f /var/log/messages` gives:
Dec 26 15:29:44 ernie kernel: usb 1-6: new high speed USB device using address 4
Dec 26 15:29:45 ernie kernel: usb 1-6: new high speed USB device using address 5
when I plug in the device.

if I then try: `mount /dev/sda1 /mnt/flash`
mount: /dev/sda1 is not a valid block device

I have the following comiled into the kernel, not modules:
USB:
Support for Host-side USB
USB device filesystem
EHCI HCD (USB 2.0) support
USB Mass Storage support

SCSI:
legacy /proc/scsi/ support
SCSI generic support

(Other options under USB and SCSI are compiled in as well, but these seem to me to be the relevant ones)

I have read posts from others who plugged this device in and it worked perfectly, although many of them were running RedHat or Mandrake. On advice from another post, I tried adding 'pci=noacpi' to my append line in lilo.conf, but this didn't change anything. Also, I have ACPI support compiled in my kernel with Button, Fan, Processor, and Thermal Zone options. I don't know why this is relevant, but it seems to come up a lot. For some time I have been using a sony camera (cybershot, I think), which connects via USB. It shows up on /dev/sda1, and can be mounted, read, and written (files erased) with no trouble, so I'm not sure why the thumb drive doesn't work.

Any advice would be greatly appreciated! I'd also be glad to post the output of any other files if needed. Thanks!

Here's a couple more that may help:
(both generated while thumb drive connected)

cat /proc/bus/usb/devices:
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.6 ohci_hcd
S: Product=nVidia Corporation nForce2 USB Controller (#2)
S: SerialNumber=0000:00:02.1
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.6 ohci_hcd
S: Product=nVidia Corporation nForce2 USB Controller
S: SerialNumber=0000:00:02.0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.6 ehci_hcd
S: Product=nVidia Corporation nForce2 USB Controller
S: SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
---------------------
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SAMSUNG Model: CD-R/RW SW-252B Rev: R701
Type: CD-ROM ANSI SCSI revision: 02

kdogksu 12-26-2004 05:09 PM

I got this figured out. I rebuilt my kernel with both ehci and ohci as modules and loaded them seperately. I still got the error with ehci, but when I removed it and installed ohci, my thumb drive worked fine (as well as my iRiver player!) Does this mean that my devices are connecting at the USB 1.1 data rate and not the snappy USB 2.0 rate? Is there any way to use the faster rate? Thanks. I hope this helps someone else! :)


All times are GMT -5. The time now is 02:26 AM.