🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

<None>

#51
From: likovuori
Date: Fri, 16 Mar 1990 11:52
26 lines
1505 bytes
In article <16693@orstcs.CS.ORST.EDU>, henders@mist.cs.orst.edu (B. Scott Henderson) writes:
> How does one access a hard disk partition table?

    First you could ask NU to read absolute sectors. When
    absolute sectors are read you can access head 0 track 0 sector 1
    where the master boot sector and partition table resides.

    If you use Turbo C you could try function biosdisk(), the
    syntax is:

      int biosdisk(int cmd, int drive, int head, int track, int
                   sector, int nsects, void *buffer);

    where cmd=2 is read from disk and cmd=1 is write to disk.
    drive is 0x00..0x7f for diskettes and 0x80... for fixed
    disks. Buffer must be large enough to hold nsects of data.

    You can find a good description of biosdisk (and all other TC 
    functions) from The Waite Group's Turbo C Bible from Howard
    W. Sams & Co.


Kari Likovuori                    Decnet: HYLK::LIKOVUORI
University of Helsinki            Bitnet: likovuori@finuh
Computing Center                  Internet: likovuori@cc.helsinki.fi
Finland
Technical Details
Message-ID: <2117.2600d38b@cc.helsinki.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!hydra!hylka!likovuori
References: <16693@orstcs.CS.ORST.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!hydra!hylka!likovuori
From: likovuori@cc.helsinki.fi
Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer
Subject: <None>
Message-ID: <2117.2600d38b@cc.helsinki.fi>
Date: 16 Mar 90 11:52:43 GMT
References: <16693@orstcs.CS.ORST.EDU>
Organization: University of Helsinki
Lines: 26