Re: int 0x13 utility



Alex Buell wrote:
So, I wrote a tiny utility program in NASM to get the disk parameters
via the int 0x13 / AH = 8. The parameters it reporte are correct for
the hard disks connected to my PC's motherboard, but when it queried
the BIOS for the parameters of its SATA hard disk, it reported: 16
heads, 1022 cylinders and 63 sectors. Ah! That's why MSDOS couldn't
create partitions larger than 503MB!

If you access a HD using BIOS w/CHS, you'll never access past 8GB. If the
BIOS' (or driver's) routines don't support the more recent CHS feature that
allows it to map "big" disks to a virtual CHS geometry, you'll be even more
limited.

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).

Try FreeDOS, or write a wrapper that hooks int0x13 CHS routines and maps
virtual CHS addresses to LBA. You'll still be limited to 8GB, though...

JJ

.



Relevant Pages

  • Re: int 0x13 utility
    ... the hard disks connected to my PC's motherboard, ... the BIOS for the parameters of its SATA hard disk, ... allows it to map "big" disks to a virtual CHS geometry, ...
    (comp.lang.asm.x86)
  • 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)
  • [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: 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: 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)