🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1523

Disk Partition Table

#1523
From: B. Scott Henderson
Date: Sat, 10 Mar 1990 04:17
29 lines
1732 bytes
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
-------------------------------------------------------------------------------
Technical Details
Message-ID: <16693@orstcs.CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rutgers!orstcs!mist!henders

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rutgers!orstcs!mist!henders
From: henders@mist.cs.orst.edu (B. Scott Henderson)
Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer
Subject: Disk Partition Table
Message-ID: <16693@orstcs.CS.ORST.EDU>
Date: 10 Mar 90 04:17:13 GMT
Sender: usenet@orstcs.CS.ORST.EDU
Reply-To: henders@mist.CS.ORST.EDU (B. Scott Henderson)
Organization: Oregon State Univ. -- Computer Science
Lines: 29