Re: Fwd: Re: portable usb drive problem

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
By now this is moot, but nevertheless...

On Sat, 7 Jul 2007, Gene Heskett wrote:

> Humm.  I thought I'd be smart and plugged the extra pigtail of the cable in 
> first (power the power), but that first reset the box, then powered it down!  
> But left the hd access led on for about 20 seconds?
> 
> So I'm rebooted for the 2nd time, which BTW took 2, 5 second presses of the 
> power switch to get it to power up again.  The first one just completed the 
> power off cycle I guess.
> 
> Anyway, here goes plugging in the regular cable.
> By the time I do that, and get back to the keyboard,(I have to crawl under the 
> next desk to plug it into a root port & its too crowded for these old bones) 
> the dmesg ring buffer has overflowed with several dozens of this verse:
> 
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage:  00 00 00 00 00 00
> usb-storage: Bulk Command S 0x43425355 T 0xbb L 0 F 0 Trg 0 LUN 3 CL 6
> usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
> usb-storage: Status code 0; transferred 31/31
> usb-storage: -- transfer complete
> usb-storage: Bulk command transfer result=0
> usb-storage: Attempting to get CSW...
> usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
> usb-storage: Status code 0; transferred 13/13
> usb-storage: -- transfer complete
> usb-storage: Bulk status result = 0
> usb-storage: Bulk Status S 0x53425355 T 0xbb R 0 Stat 0x1
> usb-storage: -- transport indicates command failure
> usb-storage: Issuing auto-REQUEST_SENSE
> usb-storage: Bulk Command S 0x43425355 T 0xbc L 18 F 128 Trg 0 LUN 3 CL 6
> usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
> usb-storage: Status code 0; transferred 31/31
> usb-storage: -- transfer complete
> usb-storage: Bulk command transfer result=0
> usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes
> usb-storage: Status code 0; transferred 18/18
> usb-storage: -- transfer complete
> usb-storage: Bulk data transfer result 0x0
> usb-storage: Attempting to get CSW...
> usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
> usb-storage: Status code 0; transferred 13/13
> usb-storage: -- transfer complete
> usb-storage: Bulk status result = 0
> usb-storage: Bulk Status S 0x53425355 T 0xbc R 0 Stat 0x0
> usb-storage: -- Result from auto-sense is 0
> usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
> usb-storage: (Unknown Key): (unknown ASC/ASCQ)
> usb-storage: scsi cmd done, result=0x2
> usb-storage: *** thread sleeping.

FYI, this error code means "Not ready; medium not present".  It refers 
to the fact that you don't have a card inserted in the card reader.

> According to:
> dmesg|grep 'usb-storage: -- code:'|wc -l there are 73 of them and its not 
> incrementing the count, so I'd assume its either actually quit, or that's the 
> size limit of the ring buffer.  According to htop, usb-storage is 
> occasionally waking up, running itself up near the top of the list but not 
> showing any actual cpu usage (0.0) at say 300 second intervals.

The HAL daemon does this.  It polls devices with removable media (like 
card readers) 4 times per second to see if you have inserted anything.

> And the drive has not spun up.  It is plugged into a root port.  And that is 
> the best I can do unless someone knows howto do a running capture of the 
> dmesg ring buffer so that I can show what actually occurs at the instant of 
> the plugin.  ISTR its set for 128k in the build.  That could be expanded as I 
> have a gig of ram, so even 10 megs could be done I'd think unless there is a 
> pointer size limit to the ring buffer.

You could turn off HAL.  But it looks like you don't need to...

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.