lkml.org 
[lkml]   [2004]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.x partition breakage and dual booting
On Sun, May 30, 2004 at 05:02:59PM -0400, Patrick J. LoPresti wrote:

> > Various BIOS calls exist that report on various versions of the
> > geometry.
>
> "Various"? I know of two, the legacy INT13 interface and the extended
> INT13 interface. Are there others?

Five years ago I made an attempt to get at the "true" geometry,
collecting all possible information from disk and BIOS.
I forgot all details, but among the sources were:

CMOS. INT 13, AH = 8, 15, 48. Tables pointed at by INT 41, INT 46.
Sometimes one finds data past the pointer given by INT 41.
IBM and Phoenix extensions.

The details depend on the brand of BIOS, which version of Phoenix
extensions is supported, whether the support is bugfree, etc.

The result in 1999 was that it is impossible to get at geometries
in a reliable way. I could not even come up with reasonable heuristics
that worked on the majority of the machines I had at home.

> Today, right now, the kernel invokes both the legacy and the extended
> INT13 interfaces for all disks which are visible to the BIOS. The EDD
> module makes all of these data available.

Yes, I am happy with that.

(Much better than the old situation where HDIO_GETGEO gave
answers for one disk that belonged to some other disk.
Of course, EDD is not always available.)


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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [from the cache]
©2003-2011 Jasper Spaans