public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andries.Brouwer@cwi.nl
To: haegar@cut.de, maillist@chello.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.2.18 and Maxtor 96147H6 (61 GB)
Date: Fri, 5 Jan 2001 00:07:53 +0100 (MET)	[thread overview]
Message-ID: <UTC200101042307.AAA143948.aeb@texel.cwi.nl> (raw)

> On Thu, 4 Jan 2001, Igmar Palsenberg wrote:
>
>> kernel 2.2.18 hates my Maxtor drive :
>> hda: Maxtor 96147H6, 32253MB w/2048kB Cache, CHS=65531/16/63, (U)DMA
>>
>> Actual (correct) parameters : CHS=119112/16/63

No. 2.2.* handles large drives since 2.2.14.
This looks more like you used the jumper to clip the drive to 32GB.
Don't use it and get full capacity.
If your BIOS hangs when it sees such a large drive so that you
cannot avoid using the jumper, use setmax in your boot scripts,
or use a kernel patch that does the same at kernel boot time.

>> Looks like some short int (2 bytes) overflowing. I'll try the ide patches.

The overflow is in certain BIOSes, not in Linux.
(You see in the above: 65531 is not an overflow value.)


Sven Koch replied:

> I had to recompile fdisk as my old suse 6.4 version got the same
> 2byte-wraparound problem.

In the good old days the HDIO_GETGEOM ioctl would give you the disk
geometry. It has a short for cylinders and hence overflows when C
gets above 65535. Since geometry is on its way out - indeed, there has
not been any such thing for many, many years - it would have been
nonsense to introduce new ioctls that report meaningless 32-bit numbers
instead of the present meaningless 16-bit number.
So, instead, the "cylinder" field in the output of this ioctl has been
declared obsolete, and is not used anymore. Programs that want to print
some value, just because they always did and users expect something,
now use BLKGETSIZE to get total size and divide by heads*sectors
to get a cylinder value.
(But again: this cylinder value is not used anywhere, the computed value
is just for the user's eyes.)

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2001-01-04 23:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-04 23:07 Andries.Brouwer [this message]
2001-01-05 13:40 ` 2.2.18 and Maxtor 96147H6 (61 GB) Igmar Palsenberg
  -- strict thread matches above, loose matches on Subject: below --
2001-01-09 23:43 Andries.Brouwer
2001-01-10 13:55 ` Igmar Palsenberg
2001-01-08 15:56 Andries.Brouwer
2001-01-10  0:09 ` Igmar Palsenberg
2001-01-06 16:45 Andries.Brouwer
2001-01-08 16:04 ` Igmar Palsenberg
2001-01-05 15:16 Andries.Brouwer
2001-01-04 21:30 Torrey Hoffman
2001-01-04 23:25 ` Igmar Palsenberg
2001-01-05 23:23   ` Tim Wright
2001-01-06  2:09     ` Igmar Palsenberg
2001-01-06  1:09       ` Brad Hartin
2001-01-04 20:26 Igmar Palsenberg
2001-01-04 19:52 ` Sven Koch
2001-01-04 20:05   ` Andre Hedrick
2001-01-04 21:32     ` Igmar Palsenberg
2001-01-04 20:41       ` Sven Koch
2001-01-04 22:06         ` Igmar Palsenberg
2001-01-06 11:42           ` Matthias Andree
2001-01-06 11:42       ` Matthias Andree
2001-01-06 16:02         ` Igmar Palsenberg
2001-01-04 21:35     ` Igmar Palsenberg
2001-01-04 21:42     ` Igmar Palsenberg
2001-01-04 22:33       ` Eric Lammerts
2001-01-07 22:01         ` Tommi Virtanen

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=UTC200101042307.AAA143948.aeb@texel.cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=haegar@cut.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maillist@chello.nl \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox