Re: Fwd: Re: portable usb drive problem

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Gene, I do wish you'd snip out all that introductory stuff with 4 '>'
signs in front; everyone has already read it multiple times.  Here,
I'll do it for you...

On Thu, 5 Jul 2007, Gene Heskett wrote:

> Thanks Steve.  I crawled under the desk and found a root port that was empty, 
> one right on the back panel of the mobo.  From messages:
> 
> Jul  5 21:32:01 coyote kernel: usb 3-3.4.2: USB disconnect, address 12
> Jul  5 21:32:14 coyote kernel: usb 3-3.4.2: new high speed USB device using 
> ehci_hcd and address 13
> Jul  5 21:32:14 coyote kernel: usb 3-3.4.2: Product: USB Storage
> Jul  5 21:32:14 coyote kernel: usb 3-3.4.2: SerialNumber: 000000009317
> Jul  5 21:32:14 coyote kernel: usb 3-3.4.2: configuration #1 chosen from 1 
> choice
> Jul  5 21:32:14 coyote kernel: scsi3 : SCSI emulation for USB Mass Storage 
> devices
> Jul  5 21:32:19 coyote kernel: scsi 3:0:0:0: Direct-Access     Generic  
> STORAGE DEVICE   9317 PQ: 0 ANSI: 0
> Jul  5 21:32:19 coyote kernel: scsi 3:0:0:1: Direct-Access     Generic  
> STORAGE DEVICE   9317 PQ: 0 ANSI: 0
> Jul  5 21:32:19 coyote kernel: scsi 3:0:0:2: Direct-Access     Generic  
> STORAGE DEVICE   9317 PQ: 0 ANSI: 0
> Jul  5 21:32:19 coyote kernel: scsi 3:0:0:3: Direct-Access     Generic  
> STORAGE DEVICE   9317 PQ: 0 ANSI: 0
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:0: [sda] Attached SCSI removable disk
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:0: Attached scsi generic sg0 type 0
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:1: [sdb] Attached SCSI removable disk
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:1: Attached scsi generic sg1 type 0
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:2: [sdc] Attached SCSI removable disk
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:2: Attached scsi generic sg2 type 0
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:3: [sdd] Attached SCSI removable disk
> Jul  5 21:32:19 coyote kernel: sd 3:0:0:3: Attached scsi generic sg3 type 0
> Jul  5 21:43:44 coyote kernel: usb 3-2: new high speed USB device using 
> ehci_hcd and address 14
> Jul  5 21:43:44 coyote kernel: usb 3-2: Product: Maxtor OneTouch III
> Jul  5 21:43:44 coyote kernel: usb 3-2: Manufacturer: Maxtor
> Jul  5 21:43:44 coyote kernel: usb 3-2: SerialNumber: RA01ZFQC
> Jul  5 21:43:44 coyote kernel: usb 3-2: configuration #1 chosen from 1 choice
> Jul  5 21:43:44 coyote kernel: scsi4 : SCSI emulation for USB Mass Storage 
> devices
> Jul  5 21:43:54 coyote kernel: usb 3-2: reset high speed USB device using 
> ehci_hcd and address 14
> Jul  5 21:43:59 coyote kernel: usb 3-2: device descriptor read/64, error -71
> Jul  5 21:44:10 coyote kernel: usb 3-2: reset high speed USB device using 
> ehci_hcd and address 14
> Jul  5 21:44:36 coyote last message repeated 3 times
> Jul  5 21:44:37 coyote kernel: scsi 4:0:0:0: scsi: Device offlined - not ready 
> after error recovery
> 
> So its still fubar for some reason.  Firing up the lappy, its fine.

This is where it would help to see the debugging information.

> On this box, an lsmod shows this:
> usb_storage            50368  0
> scsi_mod               77448  3 sg,sd_mod,usb_storage
> 
> All as a group.

The grouping means less than you think.  In this case, all it indicates 
is that scsi_mod is being used by sg, sd_mod, and usb_storage.  Hence 
you can't rmmod scsi_mod without first rmmod'ing those other three 
modules.

The fact that usb_storage is on the line above scsi_mod means only that 
no other modules were loaded in between.

> But on the lappy where it works, clear at the top of the lsmod output is
> 
> usb_storage            66049  0
> And down in the lower portion of that list is:
> scsi_mod              137549  5 usb_storage, sr_mod, sg, libata, sd_mod
> 
> So there's a bunch of stuff on the FC5 box that's missing on the FC6 box.  
> Starting with libata and sr_mod.  Go look at my .config again I guess.

Libata is important for SATA.  It may be built into your FC6 kernel 
instead being a separate module.  sr_mod is the SCSI CD/DVD driver; you 
don't need it if you're not using a CD or DVD drive.

> Also the lsusb -v for that device shows a MaxPower of 100ma, exactly the same 
> as it says on the big box.  Maybe I'll find something in the .config...

Don't always believe what the device descriptors say.  They often lie.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.