All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: Mark Lord <liml@rtr.ca>
Cc: "Sergei Shtylyov" <sshtylyov@ru.mvista.com>,
	"Hanno Böck" <hanno@hboeck.de>,
	"Robert Hancock" <hancockrwd@gmail.com>,
	linux-kernel@vger.kernel.org, ide <linux-ide@vger.kernel.org>
Subject: Re: Very old IDE hard drive (240 MB) detected as 1.1 TB
Date: Sat, 14 Feb 2009 15:31:17 +0000 (GMT)	[thread overview]
Message-ID: <alpine.LFD.1.10.0902141526310.651@ftp.linux-mips.org> (raw)
In-Reply-To: <4996D443.4060103@rtr.ca>

On Sat, 14 Feb 2009, Mark Lord wrote:

> >   It has the current capacity in words 57-58 swapped:
> > 
> > /dev/sdb:
> > 0c5a 037f 0000 000a 8723 0275 0037 0030
> > 000a 0000 2020 2020 2020 2020 2020 424d
> > 3948 4d31 5020 2020 0003 0040 0004 302e
> > 3336 2020 2020 436f 6e6e 6572 2050 6572
> > 6970 6865 7261 6c73 2032 3430 4d42 202d
> > 2043 5033 3032 3534 2020 2020 2020 8010
> > 0000 0001 0000 0200 0202 0001 037f 000a
> > 0037 0007 82da 0000 0000 0000 0000 0000
> > 
> > 
> >   It must be 82da 0007, not 0007 82da.
> >   IIRC, the IDE core doesn't trust the value reported in these words 
> ..
> 
> That's right.  I wrote the IDE code that way
> *specifically* due to a (different) Conner drive
> I had here at the time.

 It happened for some Maxtor drives too.  The reason is the ATA-1 spec was 
not explicit about how words 57 and 58 were meant to be ordered and some 
manufacturers interpreted it one and some the other way.  It looks like 
libata needs to be fixed.

  Maciej

  reply	other threads:[~2009-02-14 15:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 13:28 Very old IDE hard drive (240 MB) detected as 1.1 TB Hanno Böck
2009-02-13 14:34 ` Robert Hancock
2009-02-14 12:52   ` Hanno Böck
2009-02-14 13:21     ` Sergei Shtylyov
2009-02-14 14:25       ` Mark Lord
2009-02-14 15:31         ` Maciej W. Rozycki [this message]
2009-02-14 15:54           ` Sergei Shtylyov
2009-02-14 22:35             ` Maciej W. Rozycki
2009-02-14 17:58           ` Robert Hancock

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=alpine.LFD.1.10.0902141526310.651@ftp.linux-mips.org \
    --to=macro@linux-mips.org \
    --cc=hancockrwd@gmail.com \
    --cc=hanno@hboeck.de \
    --cc=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sshtylyov@ru.mvista.com \
    /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.