mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 48-bit Drives Incorrectly reporting 255 Heads?
@ 2003-08-20 19:31 John Riggs
  2003-08-20 19:47 ` Andries Brouwer
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: John Riggs @ 2003-08-20 19:31 UTC (permalink / raw)
  To: linux-kernel

  With the 2.4.20 kernel, I have a 40GB disk with 240 heads, with 48-bit
mode enabled. The Linux ide driver automatically declares that anything
with 48-bit mode enabled has 255 heads. This is a problem, as I am
writing a utility to fix up a Windows PBR, and the PBR relies on the
head count as counted by the BIOS.
  The Linux code in question is in ide-disk.c:

  if (id->cfs_enable_2 & 0x0400) {
    .
    drive->head = drive->bios_head = 255;
    .
  }

  What I would like to do is change the above to:

  if (id->cfs_enable_2 & 0x0400) {
    .
    drive->head = 255;
    .
  }

  Thereby not changing the bios head count. My initial tests seem to
have worked okay, with the correct geometry getting reported. Can
anybody point out to me why this will break something else?
  Two more specific questions are:
    1) Will this break drives > 137 GB?
    2) Why would the head count be set to 255 in the first place?

Thank you,
John Riggs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-08-21  7:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 19:31 48-bit Drives Incorrectly reporting 255 Heads? John Riggs
2003-08-20 19:47 ` Andries Brouwer
2003-08-20 20:00 ` Richard B. Johnson
2003-08-21  5:38 ` jw schultz
2003-08-21  6:26   ` Valdis.Kletnieks
2003-08-21  7:41   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®