Re: int 0x13 utility



João Jerónimo wrote:
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).


Not just "pretty likely". LBA support was added in Windows 95 OSR2, which I believe is MS-DOS 7.10.

-hpa

.



Relevant Pages

  • Re: int 0x13 utility
    ... the hard disks connected to my PC's motherboard, ... If you access a HD using BIOS w/CHS, ... allows it to map "big" disks to a virtual CHS geometry, ... support LBA routines, so it'll use CHS. ...
    (comp.lang.asm.x86)
  • Re: WD45AA drive is detected as WD75AA
    ... I've seen many damaged hard disks, ... because the bios (and the data ... where the string "WD75AA" comes from. ... jumper on the inner side of the controller card that specifies which ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: BTX halted when installing on a HP Proliant DL360 G3
    ... > I've tried various BIOS options, but the boot always goes like this: ... > Attempting Boot From CD-ROM ... > Building the boot loader arguments ... it looks like it's when it hunts for hard disks. ...
    (freebsd-questions)
  • Upgraded SCSI Bios -> no boot
    ... I have had one or two oddities with my SCSI hard disks, ... ZIP) no problem during the BIOS boot sequence. ...
    (comp.os.os2.setup.misc)
  • Re: Best size for the /boot partition (Fedora core 3)?
    ... > It used to be necessary when using big hard disks, but if your BIOS was ... going to give to Linux. ... >>> But why do you want a /boot partition at all? ...
    (alt.os.linux)