likovuori@cc.helsinki.fi (03/16/90)
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