From: Ludovico Cavedon <ludovico.cavedon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: USB HD: No Sense / Info fld=0x0 and read corruption
Date: Wed, 24 Dec 2008 21:09:03 +0100 [thread overview]
Message-ID: <495296DF.4090900@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0812241253300.27059-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
Alan Stern wrote:
> On Wed, 24 Dec 2008, Ludovico Cavedon wrote:
>> -it is happening also with 2.6.28-rc8 (which should have the patch, right?)
>
> What patch? Do you mean the patch at the end of that email thread? It
> affects only Argosy USB drives, not your Western Digital.
I thought also patches
http://marc.info/?l=linux-scsi&m=122443015406309&w=2
were included, but later I realized I was wrong.
I have patched my kernel with them, and now I/O errors get reported!
>> I am not able to understand if this is HD problem or a kernel problem. I
>
> Partly both. The HD (or more likely, its USB interface) is responsible
> for sending those unnecessary empty sense records. The kernel is
> responsible for not reporting an I/O error (assuming an error actually
> did take place).
I think I found out what is happening on the HD side. The SMART self
test fails with a read error. The SMART log reports uncorrectable read
errors. However Reallocated_Event_Count is 0. Searching on the web,
looks like that these sectors have bad ECC, so the cause a read error,
however they are not bad sectors. Is this correct?
My question is: how can this happen? and not just one sector, but at
least a dozen!
Bad HD? (it's new! 93 hrs of activity so far!)
>> am able to replicate it:
>> -2.6.28-rc8 vanilla kernel
>> -2.6.27 ubuntu (intrepid) kernel
>
> 2.6.27 doesn't go into an endless loop? This may indicate that
> eventually the drive stops sending the Check Condition status.
You are right. Most of the read attempts succeed after a a while.
However I found one sector that is causing an endless loop on 2.6.27 and
unpatched 2.6.28-rc8
> It would help to see the dmesg log for when one of these errors occurs.
There are no additional messages. However here it is:
http://pastebin.com/mcfd54a3
> It would also help to know what happens under Windows. Do the same
> "empty sense" errors occur? If they do, how does Windows handle them?
I can try to use usb snoopy to log usb traffic under windows.
Do you know how I can ask Windows "read sector X"?
Thank you for your help,
Merry Christmas!
Ludovico
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-12-24 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-24 13:39 USB HD: No Sense / Info fld=0x0 and read corruption Ludovico Cavedon
2008-12-24 18:02 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0812241253300.27059-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-12-24 20:09 ` Ludovico Cavedon [this message]
[not found] ` <495296DF.4090900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-12-24 23:02 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0812241756020.917-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-12-26 10:38 ` Ludovico Cavedon
[not found] ` <4954B40E.80403-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-12-26 16:37 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=495296DF.4090900@gmail.com \
--to=ludovico.cavedon-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.