Re: [bug, 2.5.29, IDE] partition table corruption?

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Aug 09 2002 - 01:06:43 EST


Followup to: <3.0.5.32.20020808153603.01476050@pop-server.san.rr.com>
By author: John Coffman <johninsd@san.rr.com>
In newsgroup: linux.dev.kernel
>
> The lilo boot loader must use the BIOS as its disk driver to access the
> disk at boot time. It may be directed to use one of three addressing modes:
>
> geometric - use int 13h, fn 2 (CHS read)
> linear - convert 24-bit disk address to CHS, use int 13h, fn 2 as above.
> lba32 - 32-bit disk addresses; IF AVAILABLE, use int 13h, fn 42h (EDD
> packet call) to read disk; else convert disk address to CHS, use int 13h,
> fn 2 as above.
>
> All CHS addressing is subject to the 1024 cylinder limit. If a 'linear' or
> 'lba32' address is converted to CHS, the head/sector information need for
> the conversion is obtained with int 13h, fn 8 (Get drive parameters).
>

Why support geometric at all? Either "linear" or "lba32" should work
on all systems (otherwise (Win)DOS won't work either.)

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
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 : Thu Aug 15 2002 - 22:00:18 EST