* Problems with USB disk
@ 2007-08-07 20:26 Niels
2007-08-07 21:18 ` Greg KH
0 siblings, 1 reply; 15+ messages in thread
From: Niels @ 2007-08-07 20:26 UTC (permalink / raw)
To: linux-kernel
Hi,
I'm having problems with a new 500 GB USB disk. It works, but sometimes I
get these in dmesg:
usb 1-3: reset high speed USB device using ehci_hcd and address 2
usb 5-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
: ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 254148215
sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
: ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 252434023
EXT3-fs error (device sda1): ext3_find_entry: reading directory #15761836
offset 0
There's also a printer connected. This is on a pci/usb2 card. When the above
happens, I get I/O errors. When I mount the drive next, there are errors
and often missing files. Quite annoying!
Kernel is 2.6.21
What's going on?
Thanks,
Niels
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-07 20:26 Problems with USB disk Niels
@ 2007-08-07 21:18 ` Greg KH
2007-08-08 10:48 ` Niels
2007-08-10 4:54 ` Problems with USB disk Bill Davidsen
0 siblings, 2 replies; 15+ messages in thread
From: Greg KH @ 2007-08-07 21:18 UTC (permalink / raw)
To: Niels; +Cc: linux-kernel
On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
> Hi,
>
> I'm having problems with a new 500 GB USB disk. It works, but sometimes I
> get these in dmesg:
>
>
> usb 1-3: reset high speed USB device using ehci_hcd and address 2
> usb 5-1: USB disconnect, address 2
> drivers/usb/class/usblp.c: usblp0: removed
> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
> : ASC=0x4 ASCQ=0x2
> end_request: I/O error, dev sda, sector 254148215
> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
> : ASC=0x4 ASCQ=0x2
> end_request: I/O error, dev sda, sector 252434023
> EXT3-fs error (device sda1): ext3_find_entry: reading directory #15761836
> offset 0
>
>
> There's also a printer connected. This is on a pci/usb2 card. When the above
> happens, I get I/O errors. When I mount the drive next, there are errors
> and often missing files. Quite annoying!
>
> Kernel is 2.6.21
>
> What's going on?
You have a low voltage issue, or a bad cable. The device is
electronically disconnecting itself. Try using a externally-powered
hub, or a new cable.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-07 21:18 ` Greg KH
@ 2007-08-08 10:48 ` Niels
2007-08-08 10:57 ` Ismail Dönmez
2007-08-10 4:54 ` Problems with USB disk Bill Davidsen
1 sibling, 1 reply; 15+ messages in thread
From: Niels @ 2007-08-08 10:48 UTC (permalink / raw)
To: linux-kernel
On Tuesday 07 August 2007 23:18, Greg KH wrote:
> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>> Hi,
>>
>> I'm having problems with a new 500 GB USB disk. It works, but sometimes I
>> get these in dmesg:
>>
>>
>> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>> usb 5-1: USB disconnect, address 2
>> drivers/usb/class/usblp.c: usblp0: removed
>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> : ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 254148215
>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> : ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 252434023
>> EXT3-fs error (device sda1): ext3_find_entry: reading directory #15761836
>> offset 0
>>
>>
>> There's also a printer connected. This is on a pci/usb2 card. When the
>> above happens, I get I/O errors. When I mount the drive next, there are
>> errors and often missing files. Quite annoying!
>>
>> Kernel is 2.6.21
>>
>> What's going on?
>
> You have a low voltage issue, or a bad cable. The device is
> electronically disconnecting itself. Try using a externally-powered
> hub, or a new cable.
>
> thanks,
>
> greg k-h
It has its own power supply. All cables are new and plugged in securely.
Thank you for your answer,
Niels
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-08 10:48 ` Niels
@ 2007-08-08 10:57 ` Ismail Dönmez
2007-08-10 12:43 ` Niels
0 siblings, 1 reply; 15+ messages in thread
From: Ismail Dönmez @ 2007-08-08 10:57 UTC (permalink / raw)
To: Niels; +Cc: linux-kernel, greg
On Wednesday 08 August 2007 13:48:29 you wrote:
> On Tuesday 07 August 2007 23:18, Greg KH wrote:
> > On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
> >> Hi,
> >>
> >> I'm having problems with a new 500 GB USB disk. It works, but sometimes
> >> I get these in dmesg:
> >>
> >>
> >> usb 1-3: reset high speed USB device using ehci_hcd and address 2
> >> usb 5-1: USB disconnect, address 2
> >> drivers/usb/class/usblp.c: usblp0: removed
> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
> >>
> >> : ASC=0x4 ASCQ=0x2
> >>
> >> end_request: I/O error, dev sda, sector 254148215
> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
> >>
> >> : ASC=0x4 ASCQ=0x2
> >>
> >> end_request: I/O error, dev sda, sector 252434023
> >> EXT3-fs error (device sda1): ext3_find_entry: reading directory
> >> #15761836 offset 0
> >>
> >>
> >> There's also a printer connected. This is on a pci/usb2 card. When the
> >> above happens, I get I/O errors. When I mount the drive next, there are
> >> errors and often missing files. Quite annoying!
> >>
> >> Kernel is 2.6.21
> >>
> >> What's going on?
> >
> > You have a low voltage issue, or a bad cable. The device is
> > electronically disconnecting itself. Try using a externally-powered
> > hub, or a new cable.
I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my 60G
iPod Video, works fine with 2.6.18 kernel though.
Rehards,
ismail
--
Perfect is the enemy of good
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-07 21:18 ` Greg KH
2007-08-08 10:48 ` Niels
@ 2007-08-10 4:54 ` Bill Davidsen
1 sibling, 0 replies; 15+ messages in thread
From: Bill Davidsen @ 2007-08-10 4:54 UTC (permalink / raw)
To: Greg KH; +Cc: Niels, linux-kernel
Greg KH wrote:
> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>> Hi,
>>
>> I'm having problems with a new 500 GB USB disk. It works, but sometimes I
>> get these in dmesg:
>>
>>
>> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>> usb 5-1: USB disconnect, address 2
>> drivers/usb/class/usblp.c: usblp0: removed
>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> : ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 254148215
>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> : ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 252434023
>> EXT3-fs error (device sda1): ext3_find_entry: reading directory #15761836
>> offset 0
>>
>>
>> There's also a printer connected. This is on a pci/usb2 card. When the above
>> happens, I get I/O errors. When I mount the drive next, there are errors
>> and often missing files. Quite annoying!
>>
>> Kernel is 2.6.21
>>
>> What's going on?
>
> You have a low voltage issue, or a bad cable. The device is
> electronically disconnecting itself. Try using a externally-powered
> hub, or a new cable.
>
I see the external drive becoming read-only, although I haven't checked
the dmesg for the events, since other things in my system generate a
bunch of output I have to wade through.
New cable, separate power, doesn't do it under 2.6.20-* Fedora or
2.6.21.x kernel.org kernels.
I'll check the dmesg next time it happens, but I doubt a kernel version
change would heal the hardware issues you mention.
--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-08 10:57 ` Ismail Dönmez
@ 2007-08-10 12:43 ` Niels
2007-08-12 9:54 ` Niels
0 siblings, 1 reply; 15+ messages in thread
From: Niels @ 2007-08-10 12:43 UTC (permalink / raw)
To: linux-kernel
On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote:
> On Wednesday 08 August 2007 13:48:29 you wrote:
>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>> > On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>> >> Hi,
>> >>
>> >> I'm having problems with a new 500 GB USB disk. It works, but
>> >> sometimes I get these in dmesg:
>> >>
>> >>
>> >> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>> >> usb 5-1: USB disconnect, address 2
>> >> drivers/usb/class/usblp.c: usblp0: removed
>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> >>
>> >> : ASC=0x4 ASCQ=0x2
>> >>
>> >> end_request: I/O error, dev sda, sector 254148215
>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>> >>
>> >> : ASC=0x4 ASCQ=0x2
>> >>
>> >> end_request: I/O error, dev sda, sector 252434023
>> >> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>> >> #15761836 offset 0
>> >>
>> >>
>> >> There's also a printer connected. This is on a pci/usb2 card. When the
>> >> above happens, I get I/O errors. When I mount the drive next, there
>> >> are errors and often missing files. Quite annoying!
>> >>
>> >> Kernel is 2.6.21
>> >>
>> >> What's going on?
>> >
>> > You have a low voltage issue, or a bad cable. The device is
>> > electronically disconnecting itself. Try using a externally-powered
>> > hub, or a new cable.
>
> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my 60G
> iPod Video, works fine with 2.6.18 kernel though.
>
> Rehards,
> ismail
>
(no need to CC me)
So far I'm seeing this:
- On 2.6.21 I mount the drive. After a while it spins down, and when I then
unmount it, an error pops up in dmesg.
- On 2.6.18 I can't provoke the same error. The drive doesn't appear to spin
down. I don't know if the data corruption from 2.6.21 occurs with regular
use.
There are a number of other factor I need to eliminate on my system, but
that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
//Niels
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk
2007-08-10 12:43 ` Niels
@ 2007-08-12 9:54 ` Niels
2007-08-13 14:50 ` Problems with USB disk [solved] Niels
0 siblings, 1 reply; 15+ messages in thread
From: Niels @ 2007-08-12 9:54 UTC (permalink / raw)
To: linux-kernel
On Friday 10 August 2007 14:43, Niels wrote:
> On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote:
>
>> On Wednesday 08 August 2007 13:48:29 you wrote:
>>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>>> > On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>>> >> Hi,
>>> >>
>>> >> I'm having problems with a new 500 GB USB disk. It works, but
>>> >> sometimes I get these in dmesg:
>>> >>
>>> >>
>>> >> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>>> >> usb 5-1: USB disconnect, address 2
>>> >> drivers/usb/class/usblp.c: usblp0: removed
>>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>> >>
>>> >> : ASC=0x4 ASCQ=0x2
>>> >>
>>> >> end_request: I/O error, dev sda, sector 254148215
>>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>> >>
>>> >> : ASC=0x4 ASCQ=0x2
>>> >>
>>> >> end_request: I/O error, dev sda, sector 252434023
>>> >> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>>> >> #15761836 offset 0
>>> >>
>>> >>
>>> >> There's also a printer connected. This is on a pci/usb2 card. When
>>> >> the above happens, I get I/O errors. When I mount the drive next,
>>> >> there are errors and often missing files. Quite annoying!
>>> >>
>>> >> Kernel is 2.6.21
>>> >>
>>> >> What's going on?
>>> >
>>> > You have a low voltage issue, or a bad cable. The device is
>>> > electronically disconnecting itself. Try using a externally-powered
>>> > hub, or a new cable.
>>
>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my
>> 60G iPod Video, works fine with 2.6.18 kernel though.
>>
>> Rehards,
>> ismail
>>
>
> (no need to CC me)
>
> So far I'm seeing this:
>
> - On 2.6.21 I mount the drive. After a while it spins down, and when I
> then unmount it, an error pops up in dmesg.
>
> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to
> spin down. I don't know if the data corruption from 2.6.21 occurs with
> regular use.
>
> There are a number of other factor I need to eliminate on my system, but
> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
>
>
> //Niels
OK, on a vanilla 2.6.18.8 I also have this problem, with both the pci/usb2
card, and the usb1 on the board. I listen to music from the drive, and
after some time (10-20 minutes or so), it freaks out:
=========
sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 126693711
sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 126693711
sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 126693711
=========
Will updating to 2.6.23 and turning off autosuspend explicitly help? Will
putting the disk on a powered hub help?
//Niels
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk [solved]
2007-08-12 9:54 ` Niels
@ 2007-08-13 14:50 ` Niels
2007-08-14 15:08 ` Chuck Ebbert
0 siblings, 1 reply; 15+ messages in thread
From: Niels @ 2007-08-13 14:50 UTC (permalink / raw)
To: linux-kernel
On Sunday 12 August 2007 11:54, Niels wrote:
> On Friday 10 August 2007 14:43, Niels wrote:
>
>> On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote:
>>
>>> On Wednesday 08 August 2007 13:48:29 you wrote:
>>>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>>>> > On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>>>> >> Hi,
>>>> >>
>>>> >> I'm having problems with a new 500 GB USB disk. It works, but
>>>> >> sometimes I get these in dmesg:
>>>> >>
>>>> >>
>>>> >> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>>>> >> usb 5-1: USB disconnect, address 2
>>>> >> drivers/usb/class/usblp.c: usblp0: removed
>>>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>> >>
>>>> >> : ASC=0x4 ASCQ=0x2
>>>> >>
>>>> >> end_request: I/O error, dev sda, sector 254148215
>>>> >> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>> >>
>>>> >> : ASC=0x4 ASCQ=0x2
>>>> >>
>>>> >> end_request: I/O error, dev sda, sector 252434023
>>>> >> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>>>> >> #15761836 offset 0
>>>> >>
>>>> >>
>>>> >> There's also a printer connected. This is on a pci/usb2 card. When
>>>> >> the above happens, I get I/O errors. When I mount the drive next,
>>>> >> there are errors and often missing files. Quite annoying!
>>>> >>
>>>> >> Kernel is 2.6.21
>>>> >>
>>>> >> What's going on?
>>>> >
>>>> > You have a low voltage issue, or a bad cable. The device is
>>>> > electronically disconnecting itself. Try using a externally-powered
>>>> > hub, or a new cable.
>>>
>>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my
>>> 60G iPod Video, works fine with 2.6.18 kernel though.
>>>
>>> Rehards,
>>> ismail
>>>
>>
>> (no need to CC me)
>>
>> So far I'm seeing this:
>>
>> - On 2.6.21 I mount the drive. After a while it spins down, and when I
>> then unmount it, an error pops up in dmesg.
>>
>> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to
>> spin down. I don't know if the data corruption from 2.6.21 occurs with
>> regular use.
>>
>> There are a number of other factor I need to eliminate on my system, but
>> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
>>
>>
>> //Niels
>
>
> OK, on a vanilla 2.6.18.8 I also have this problem, with both the pci/usb2
> card, and the usb1 on the board. I listen to music from the drive, and
> after some time (10-20 minutes or so), it freaks out:
>
> =========
> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> ASC=0x4 ASCQ=0x2
> end_request: I/O error, dev sda, sector 126693711
> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> ASC=0x4 ASCQ=0x2
> end_request: I/O error, dev sda, sector 126693711
> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> ASC=0x4 ASCQ=0x2
> end_request: I/O error, dev sda, sector 126693711
> =========
>
> Will updating to 2.6.23 and turning off autosuspend explicitly help? Will
> putting the disk on a powered hub help?
>
>
> //Niels
Using a new PSU and a powered hub made no difference. But I found a solution
here:
http://alienghic.livejournal.com/382903.html
Basically, the problem is, as suspected, that the drive spins down / goes to
suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda".
It seems to me to be an error that the kernel reports this as something like
a hardware failure. Or at least very misleading.
//Niels
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk [solved]
2007-08-13 14:50 ` Problems with USB disk [solved] Niels
@ 2007-08-14 15:08 ` Chuck Ebbert
2007-09-12 22:10 ` Mark Lord
0 siblings, 1 reply; 15+ messages in thread
From: Chuck Ebbert @ 2007-08-14 15:08 UTC (permalink / raw)
To: Niels; +Cc: linux-kernel, linux-scsi, USB development list
On 08/13/2007 10:50 AM, Niels wrote:
> On Sunday 12 August 2007 11:54, Niels wrote:
>
>> On Friday 10 August 2007 14:43, Niels wrote:
>>
>>> On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote:
>>>
>>>> On Wednesday 08 August 2007 13:48:29 you wrote:
>>>>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>>>>>> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm having problems with a new 500 GB USB disk. It works, but
>>>>>>> sometimes I get these in dmesg:
>>>>>>>
>>>>>>>
>>>>>>> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>>>>>>> usb 5-1: USB disconnect, address 2
>>>>>>> drivers/usb/class/usblp.c: usblp0: removed
>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>
>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>
>>>>>>> end_request: I/O error, dev sda, sector 254148215
>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>
>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>
>>>>>>> end_request: I/O error, dev sda, sector 252434023
>>>>>>> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>>>>>>> #15761836 offset 0
>>>>>>>
>>>>>>>
>>>>>>> There's also a printer connected. This is on a pci/usb2 card. When
>>>>>>> the above happens, I get I/O errors. When I mount the drive next,
>>>>>>> there are errors and often missing files. Quite annoying!
>>>>>>>
>>>>>>> Kernel is 2.6.21
>>>>>>>
>>>>>>> What's going on?
>>>>>> You have a low voltage issue, or a bad cable. The device is
>>>>>> electronically disconnecting itself. Try using a externally-powered
>>>>>> hub, or a new cable.
>>>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my
>>>> 60G iPod Video, works fine with 2.6.18 kernel though.
>>>>
>>>
>>> So far I'm seeing this:
>>>
>>> - On 2.6.21 I mount the drive. After a while it spins down, and when I
>>> then unmount it, an error pops up in dmesg.
>>>
>>> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to
>>> spin down. I don't know if the data corruption from 2.6.21 occurs with
>>> regular use.
>>>
>>> There are a number of other factor I need to eliminate on my system, but
>>> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
>>
>> OK, on a vanilla 2.6.18.8 I also have this problem, with both the pci/usb2
>> card, and the usb1 on the board. I listen to music from the drive, and
>> after some time (10-20 minutes or so), it freaks out:
>>
>> =========
>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>> ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 126693711
>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>> ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 126693711
>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>> ASC=0x4 ASCQ=0x2
>> end_request: I/O error, dev sda, sector 126693711
>> =========
>>
>
> Using a new PSU and a powered hub made no difference. But I found a solution
> here:
>
> http://alienghic.livejournal.com/382903.html
>
> Basically, the problem is, as suspected, that the drive spins down / goes to
> suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda".
>
> It seems to me to be an error that the kernel reports this as something like
> a hardware failure. Or at least very misleading.
>
Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that.
Should we be disabling auto-spindown when we connect the device, or be able to
handle this by sending the start command when needed?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk [solved]
2007-08-14 15:08 ` Chuck Ebbert
@ 2007-09-12 22:10 ` Mark Lord
2007-09-12 23:42 ` Greg KH
2007-09-13 14:12 ` [linux-usb-devel] " Alan Stern
0 siblings, 2 replies; 15+ messages in thread
From: Mark Lord @ 2007-09-12 22:10 UTC (permalink / raw)
To: Chuck Ebbert; +Cc: Niels, linux-kernel, linux-scsi, USB development list
Chuck Ebbert wrote:
> On 08/13/2007 10:50 AM, Niels wrote:
>> On Sunday 12 August 2007 11:54, Niels wrote:
>>
>>> On Friday 10 August 2007 14:43, Niels wrote:
>>>
>>>> On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote:
>>>>
>>>>> On Wednesday 08 August 2007 13:48:29 you wrote:
>>>>>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>>>>>>> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I'm having problems with a new 500 GB USB disk. It works, but
>>>>>>>> sometimes I get these in dmesg:
>>>>>>>>
>>>>>>>>
>>>>>>>> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>>>>>>>> usb 5-1: USB disconnect, address 2
>>>>>>>> drivers/usb/class/usblp.c: usblp0: removed
>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>>
>>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>>
>>>>>>>> end_request: I/O error, dev sda, sector 254148215
>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>>
>>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>>
>>>>>>>> end_request: I/O error, dev sda, sector 252434023
>>>>>>>> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>>>>>>>> #15761836 offset 0
>>>>>>>>
>>>>>>>>
>>>>>>>> There's also a printer connected. This is on a pci/usb2 card. When
>>>>>>>> the above happens, I get I/O errors. When I mount the drive next,
>>>>>>>> there are errors and often missing files. Quite annoying!
>>>>>>>>
>>>>>>>> Kernel is 2.6.21
>>>>>>>>
>>>>>>>> What's going on?
>>>>>>> You have a low voltage issue, or a bad cable. The device is
>>>>>>> electronically disconnecting itself. Try using a externally-powered
>>>>>>> hub, or a new cable.
>>>>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my
>>>>> 60G iPod Video, works fine with 2.6.18 kernel though.
>>>>>
>>>> So far I'm seeing this:
>>>>
>>>> - On 2.6.21 I mount the drive. After a while it spins down, and when I
>>>> then unmount it, an error pops up in dmesg.
>>>>
>>>> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to
>>>> spin down. I don't know if the data corruption from 2.6.21 occurs with
>>>> regular use.
>>>>
>>>> There are a number of other factor I need to eliminate on my system, but
>>>> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
>>> OK, on a vanilla 2.6.18.8 I also have this problem, with both the pci/usb2
>>> card, and the usb1 on the board. I listen to music from the drive, and
>>> after some time (10-20 minutes or so), it freaks out:
>>>
>>> =========
>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>> ASC=0x4 ASCQ=0x2
>>> end_request: I/O error, dev sda, sector 126693711
>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>> ASC=0x4 ASCQ=0x2
>>> end_request: I/O error, dev sda, sector 126693711
>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>> ASC=0x4 ASCQ=0x2
>>> end_request: I/O error, dev sda, sector 126693711
>>> =========
>>>
>> Using a new PSU and a powered hub made no difference. But I found a solution
>> here:
>>
>> http://alienghic.livejournal.com/382903.html
>>
>> Basically, the problem is, as suspected, that the drive spins down / goes to
>> suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda".
>>
>> It seems to me to be an error that the kernel reports this as something like
>> a hardware failure. Or at least very misleading.
>>
>
> Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that.
> Should we be disabling auto-spindown when we connect the device, or be able to
> handle this by sending the start command when needed?
There's more to this.
My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
Plug one in, it works for about 5 seconds, then the light goes off (bad).
Next access requires a 30s timeout + reset. Etc..
This is with 2.6.23-rc6.
Works without any problems in 2.6.22. REGRESSION.
-ml
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Problems with USB disk [solved]
2007-09-12 22:10 ` Mark Lord
@ 2007-09-12 23:42 ` Greg KH
2007-09-13 14:12 ` [linux-usb-devel] " Alan Stern
1 sibling, 0 replies; 15+ messages in thread
From: Greg KH @ 2007-09-12 23:42 UTC (permalink / raw)
To: Mark Lord
Cc: Chuck Ebbert, Niels, linux-kernel, linux-scsi,
USB development list
On Wed, Sep 12, 2007 at 06:10:50PM -0400, Mark Lord wrote:
> Chuck Ebbert wrote:
>> On 08/13/2007 10:50 AM, Niels wrote:
>>> On Sunday 12 August 2007 11:54, Niels wrote:
>>>
>>>> On Friday 10 August 2007 14:43, Niels wrote:
>>>>
>>>>> On Wednesday 08 August 2007 12:57, Ismail D??nmez wrote:
>>>>>
>>>>>> On Wednesday 08 August 2007 13:48:29 you wrote:
>>>>>>> On Tuesday 07 August 2007 23:18, Greg KH wrote:
>>>>>>>> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I'm having problems with a new 500 GB USB disk. It works, but
>>>>>>>>> sometimes I get these in dmesg:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> usb 1-3: reset high speed USB device using ehci_hcd and address 2
>>>>>>>>> usb 5-1: USB disconnect, address 2
>>>>>>>>> drivers/usb/class/usblp.c: usblp0: removed
>>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>>>
>>>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>>>
>>>>>>>>> end_request: I/O error, dev sda, sector 254148215
>>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current]
>>>>>>>>>
>>>>>>>>> : ASC=0x4 ASCQ=0x2
>>>>>>>>>
>>>>>>>>> end_request: I/O error, dev sda, sector 252434023
>>>>>>>>> EXT3-fs error (device sda1): ext3_find_entry: reading directory
>>>>>>>>> #15761836 offset 0
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> There's also a printer connected. This is on a pci/usb2 card. When
>>>>>>>>> the above happens, I get I/O errors. When I mount the drive next,
>>>>>>>>> there are errors and often missing files. Quite annoying!
>>>>>>>>>
>>>>>>>>> Kernel is 2.6.21
>>>>>>>>>
>>>>>>>>> What's going on?
>>>>>>>> You have a low voltage issue, or a bad cable. The device is
>>>>>>>> electronically disconnecting itself. Try using a externally-powered
>>>>>>>> hub, or a new cable.
>>>>>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my
>>>>>> 60G iPod Video, works fine with 2.6.18 kernel though.
>>>>>>
>>>>> So far I'm seeing this:
>>>>>
>>>>> - On 2.6.21 I mount the drive. After a while it spins down, and when I
>>>>> then unmount it, an error pops up in dmesg.
>>>>>
>>>>> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to
>>>>> spin down. I don't know if the data corruption from 2.6.21 occurs with
>>>>> regular use.
>>>>>
>>>>> There are a number of other factor I need to eliminate on my system,
>>>>> but
>>>>> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel.
>>>> OK, on a vanilla 2.6.18.8 I also have this problem, with both the
>>>> pci/usb2
>>>> card, and the usb1 on the board. I listen to music from the drive, and
>>>> after some time (10-20 minutes or so), it freaks out:
>>>>
>>>> =========
>>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>>> ASC=0x4 ASCQ=0x2
>>>> end_request: I/O error, dev sda, sector 126693711
>>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>>> ASC=0x4 ASCQ=0x2
>>>> end_request: I/O error, dev sda, sector 126693711
>>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
>>>> ASC=0x4 ASCQ=0x2
>>>> end_request: I/O error, dev sda, sector 126693711
>>>> =========
>>>>
>>> Using a new PSU and a powered hub made no difference. But I found a
>>> solution
>>> here:
>>>
>>> http://alienghic.livejournal.com/382903.html
>>>
>>> Basically, the problem is, as suspected, that the drive spins down / goes
>>> to
>>> suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda".
>>>
>>> It seems to me to be an error that the kernel reports this as something
>>> like
>>> a hardware failure. Or at least very misleading.
>>>
>> Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't
>> handle that.
>> Should we be disabling auto-spindown when we connect the device, or be
>> able to
>> handle this by sending the start command when needed?
>
> There's more to this.
>
> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
> Plug one in, it works for about 5 seconds, then the light goes off (bad).
> Next access requires a 30s timeout + reset. Etc..
>
> This is with 2.6.23-rc6.
> Works without any problems in 2.6.22. REGRESSION.
Disable CONFIG_USB_SUSPEND, that will fix the problem for you, or we can
add your device to the quirk list.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-usb-devel] Problems with USB disk [solved]
2007-09-12 22:10 ` Mark Lord
2007-09-12 23:42 ` Greg KH
@ 2007-09-13 14:12 ` Alan Stern
2007-09-13 14:35 ` Mark Lord
1 sibling, 1 reply; 15+ messages in thread
From: Alan Stern @ 2007-09-13 14:12 UTC (permalink / raw)
To: Mark Lord
Cc: Chuck Ebbert, Niels, linux-kernel, linux-scsi,
USB development list
On Wed, 12 Sep 2007, Mark Lord wrote:
> Chuck Ebbert wrote:
> >>> =========
> >>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> >>> ASC=0x4 ASCQ=0x2
> >>> end_request: I/O error, dev sda, sector 126693711
> >>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> >>> ASC=0x4 ASCQ=0x2
> >>> end_request: I/O error, dev sda, sector 126693711
> >>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2
> >>> ASC=0x4 ASCQ=0x2
> >>> end_request: I/O error, dev sda, sector 126693711
> >>> =========
> >>>
> >> Using a new PSU and a powered hub made no difference. But I found a solution
> >> here:
> >>
> >> http://alienghic.livejournal.com/382903.html
> >>
> >> Basically, the problem is, as suspected, that the drive spins down / goes to
> >> suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda".
> >>
> >> It seems to me to be an error that the kernel reports this as something like
> >> a hardware failure. Or at least very misleading.
> >>
> >
> > Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that.
> > Should we be disabling auto-spindown when we connect the device, or be able to
> > handle this by sending the start command when needed?
>
> There's more to this.
>
> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
I seriously doubt that. Are you claiming that your USB stick spins
itself down during a suspend? And then requires to be spun back up
before it will resume proper operation?
(Hint: Flash memory devices don't contain rotating media...)
Alan Stern
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-usb-devel] Problems with USB disk [solved]
2007-09-13 14:12 ` [linux-usb-devel] " Alan Stern
@ 2007-09-13 14:35 ` Mark Lord
2007-09-13 15:09 ` Alan Stern
0 siblings, 1 reply; 15+ messages in thread
From: Mark Lord @ 2007-09-13 14:35 UTC (permalink / raw)
To: Alan Stern
Cc: Chuck Ebbert, Niels, linux-kernel, linux-scsi,
USB development list
Alan Stern wrote:
> On Wed, 12 Sep 2007, Mark Lord wrote:
>
>> Chuck Ebbert wrote:
..
>>> Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that.
>>> Should we be disabling auto-spindown when we connect the device, or be able to
>>> handle this by sending the start command when needed?
>> There's more to this.
>>
>> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
>
> I seriously doubt that. Are you claiming that your USB stick spins
> itself down during a suspend? And then requires to be spun back up
> before it will resume proper operation?
No, the machine is not being suspended at all.
What happens is, there's a nice little LED on the Cruzer stick,
that is "lit" when the stick itself is not in a "power suspend" state
(or whatever you USB folks call it).
On 2.6.22, that little LED stays "on" normally, and flickers off/on
when data is being transfered.
The new "USB autosuspend" logic in 2.6.23 now causes that little LED
to turn off after a few seconds of inactivity.
Once that happens, the USB stick is not accessible until after a longish
timeout (~30s I think), followed by a USB reset. Then it is usable again
until the next inactivity timeout and autosuspend (a few seconds).
Etc.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-usb-devel] Problems with USB disk [solved]
2007-09-13 14:35 ` Mark Lord
@ 2007-09-13 15:09 ` Alan Stern
2007-09-13 15:21 ` Mark Lord
0 siblings, 1 reply; 15+ messages in thread
From: Alan Stern @ 2007-09-13 15:09 UTC (permalink / raw)
To: Mark Lord
Cc: Chuck Ebbert, Niels, linux-kernel, linux-scsi,
USB development list
On Thu, 13 Sep 2007, Mark Lord wrote:
> Alan Stern wrote:
> > On Wed, 12 Sep 2007, Mark Lord wrote:
> >
> >> Chuck Ebbert wrote:
> ..
> >>> Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that.
> >>> Should we be disabling auto-spindown when we connect the device, or be able to
> >>> handle this by sending the start command when needed?
> >> There's more to this.
> >>
> >> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
> >
> > I seriously doubt that. Are you claiming that your USB stick spins
> > itself down during a suspend? And then requires to be spun back up
> > before it will resume proper operation?
>
> No, the machine is not being suspended at all.
>
> What happens is, there's a nice little LED on the Cruzer stick,
> that is "lit" when the stick itself is not in a "power suspend" state
> (or whatever you USB folks call it).
We call it "suspended". (Wasn't there an episode of Classic Trek where
Mr. Spock explained to somebody, "I call them `ears'."?)
> On 2.6.22, that little LED stays "on" normally, and flickers off/on
> when data is being transfered.
>
> The new "USB autosuspend" logic in 2.6.23 now causes that little LED
> to turn off after a few seconds of inactivity.
>
> Once that happens, the USB stick is not accessible until after a longish
> timeout (~30s I think), followed by a USB reset. Then it is usable again
> until the next inactivity timeout and autosuspend (a few seconds).
So this _isn't_ the regression described above -- to wit, that the
drive gets spun down and then won't work without first being spun back
up. You wrote:
> >> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
But it doesn't. It suffers from a different regression.
Alan Stern
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-usb-devel] Problems with USB disk [solved]
2007-09-13 15:09 ` Alan Stern
@ 2007-09-13 15:21 ` Mark Lord
0 siblings, 0 replies; 15+ messages in thread
From: Mark Lord @ 2007-09-13 15:21 UTC (permalink / raw)
To: Alan Stern
Cc: Chuck Ebbert, Niels, linux-kernel, linux-scsi,
USB development list
Alan Stern wrote:
> On Thu, 13 Sep 2007, Mark Lord wrote:
..
>> What happens is, there's a nice little LED on the Cruzer stick,
>> that is "lit" when the stick itself is not in a "power suspend" state
>> (or whatever you USB folks call it).
>
> We call it "suspended". (Wasn't there an episode of Classic Trek where
> Mr. Spock explained to somebody, "I call them `ears'."?)
>
>> On 2.6.22, that little LED stays "on" normally, and flickers off/on
>> when data is being transfered.
>>
>> The new "USB autosuspend" logic in 2.6.23 now causes that little LED
>> to turn off after a few seconds of inactivity.
>>
>> Once that happens, the USB stick is not accessible until after a longish
>> timeout (~30s I think), followed by a USB reset. Then it is usable again
>> until the next inactivity timeout and autosuspend (a few seconds).
>
> So this _isn't_ the regression described above -- to wit, that the
> drive gets spun down and then won't work without first being spun back
> up. You wrote:
>
>>>> My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression.
>
> But it doesn't. It suffers from a different regression.
Perhaps, but that doesn't necessarily follow from the above.
>From this observer's point of view (and being an expert on disk technologies),
the same "spin up" issue for rotating media could be the culprit here too.
A reset to a disk drive usually (not always) causes it to spin up.
Regardless, Greg has acknowledged the regression and is planning to revert things.
Cheers
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2007-09-13 15:21 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 20:26 Problems with USB disk Niels
2007-08-07 21:18 ` Greg KH
2007-08-08 10:48 ` Niels
2007-08-08 10:57 ` Ismail Dönmez
2007-08-10 12:43 ` Niels
2007-08-12 9:54 ` Niels
2007-08-13 14:50 ` Problems with USB disk [solved] Niels
2007-08-14 15:08 ` Chuck Ebbert
2007-09-12 22:10 ` Mark Lord
2007-09-12 23:42 ` Greg KH
2007-09-13 14:12 ` [linux-usb-devel] " Alan Stern
2007-09-13 14:35 ` Mark Lord
2007-09-13 15:09 ` Alan Stern
2007-09-13 15:21 ` Mark Lord
2007-08-10 4:54 ` Problems with USB disk Bill Davidsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox