Re: int 0x13 utility




JJ "João Jerónimo" wrote:

Alex Buell wrote:
As someone pointed already, it's pretty likely that MS-DOS 6.22 does
not support LBA routines, so it'll use CHS (which implies a maximum
of 8GB). If the SATA BIOS does not support the virtual mapping I
mentioned above in it's CHS-based routines, then you'll be even more
limited (I think it's the case).

That is *exactly* what I've been saying - I even emailed Silicon Images
about their BIOS; they might fix it or I might have to patch it myself
to put out the right numbers.

You won't still be able to access past 8GB only with CHS.

Yes INT13 CHS is somehow weird because it truncates/merges the
available hardware opportunities (28 bits) into three bytes.
16*255*4096 = 1671168 sectors (= 7.96875 GB), not to mention
that ye olde DOS often limit sectors to 63 and add the two gained
bits to the cylinder count, IMHO anyway a useless detour because
the hardware must be fed with recalculated data then.

Older BIOS has even a limit of <2GB and very old HDC can only
access <512 MB with CHS ...
But if you write your own HD-driver, the physical CHS-limit is:
16 heads, 255 sectors, 65536 tracks(cylinders), and this gives
us 267386880 sectors (= 127.5 GB).
So if the the hardware can handle it then it works almost like LBA28
(max= 128 GB), ...except for the unconvenient calculation needs.

__
wolfgang


.



Relevant Pages

  • [9fans] Re: [explanations] MBR messed up on installation
    ... process on i386 involving CHS addressing, the BIOS and the partition ... The PC BIOS provides services. ... heads are indexed starting at 0, sectors are indexed starting at 1: ...
    (comp.os.plan9)
  • Re: Configuring disk geometry from SCSI miniport driver
    ... the BIOS will translate CHS to LBA using the current BIOS's ... FDISK and not with NT Setup OR b) use the LBA mode only, ... Surely only the drives known to BIOS are there. ...
    (microsoft.public.development.device.drivers)
  • Re: IDE disk information changed from 2.4 to 2.6
    ... Almost looks as if the BIOS is using the faked values to keep the ... | CHS is something that stopped being meaningful a decade ago. ... The CHS can be set on the boot line. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: FreeBSD/FDisk geometry problems - SOLVED!
    ... > I've found a bug in FDisk which is responsible for all the problems I've ... That has always been the problem for CHS conversions. ... LBA is the only common mode known to all BIOS vendors, ... put the IDE drives to LBA and you'll see that you get ...
    (freebsd-questions)
  • Re: fdisk question (long)
    ... > I have a 120G HDD, in the BIOS is set as LBA. ... > I've used sysinstall to make partitions and the result is bellow: ... BIOS sector numbering starts with sector 1 ... The CHS descriptor has overflowed -- nolonger meaningful. ...
    (freebsd-questions)