Re: [PATCH] 2.5.30 IDE 112

From: Andries Brouwer (aebr@win.tue.nl)
Date: Tue Aug 06 2002 - 09:10:42 EST


On Tue, Aug 06, 2002 at 02:19:29PM +0200, Petr Vandrovec wrote:

> FYI I had to use hda=cyls,255,63 to repartition my HDD.

(Or set H=255 S=63 in *fdisk.)

> BIOS refused to report proper size (120GB) when partition table
> was empty, or when it contained partitions created for xxx/16/63
> geometry. It reported size ~600MB, and actively refused to allow
> access above this limit...

Funny. Do you mean that your BIOS used SETMAX ?

> please talk to [cs]fdisk maintainer (and other) to print big fat
> warning and to allow specify BIOS heads/sectors, otherwise partitioning
> of empty disk in the way compatible with non-Linux OSes (Netware, Windows)
> is not an easy task.

Yes. I already advised this maintainer to add -C,-H,-S options to fdisk
(cfdisk and sfdisk already have them), and he did so immediately.
Visible one of these weeks in util-linux-2.11v.

> # lilo
> Warning: Int 0x13 function 8 and function 0x48 return different
> head/sector geometries for BIOS drive 0x81
> fn 08: 788 cylinders, 255 heads, 63 sectors
> fn 48: 13424 cylinders, 15 heads, 63 sectors
> Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
> Kernel: 35973 cylinders, 16 heads, 63 sectors
> BIOS: 1023 cylinders, 255 heads, 63 sectors

Since geometry does not exist, it is not surprising that everybody
invents something else. Not only do kernel and BIOS differ, but
BIOS is not consistent internally.

For a while, with disk sizes between 500 MB and 8 GB, maximum DOS-accessible
capacity was obtained by H=255 S=63. But IDE accepts at most 16 heads, so
H=255 requires a translating BIOS. For sizes above 8 GB the translation
is useless and will only take some small amount of time.
Setting the disk to Normal (instead of Large / LBA / Extended or so)
works best.

So, I have two questions:
1. What precisely do you mean with "actively refused" ?
2. Is there a Windows or Netware reason to prefer extended translation
above no translation?

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



This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:31 EST