[alt.msdos.programmer] Disk Partition Table

henders@mist.cs.orst.edu (B. Scott Henderson) (03/10/90)

How does one access a hard disk partition table?
I have a couple of references which indicate that it is
the first sector on the disk.  However, when I read
logical sector #0 using int 25h (from C) I get the boot sector.
My references say these are the same sector but I can't 
parse any of the partition table entry fields (I CAN parse
the boot sector fields like system name, BIOS parameter block, etc).

In addition, using Norton's nu I can read head=1, track=0, sector=1
and get the boot sector or head=0, track=0, sector=1 to get the
partition table.  I tried using int 13h to read head=0, track=0,
sector=1 but was unsuccessful.

Does anyone have any clue as to how to get at the partition
table from C/Assembler?  Any working code would be very helpful.
Thanks.

Scott H.

-------------------------------------------------------------------------------
B. Scott Henderson                  Internet:   henders@mist.cs.orst.edu
Department of Computer Science          UUCP:   hplabs!hp-pcd!orstcs!henders
Oregon State University
Corvallis, OR     97331
(503) 737-3273

"One thing is for certain, the sheep is not a creature of the air."
		- M. Python
-------------------------------------------------------------------------------