Reading boot sector of PC under Linux

Marco van de Voort marcov at
Tue May 15 23:50:06 CEST 2001

> Martin Liddle wrote:
> > To answer my own question, I finally managed to start to think and came
> > up with this, which seems to do what I want:
> > 
> > Var InBuffer: Array[0..511] of Byte;
> >     InFile:File;
> > 
> > Reset(InFile,'/dev/hda',512);
> > Blockread(Infile,InBuffer,1);
> OK, if you only want the raw data, sure, you can just read them from
> the device. I was thinking more complicated -- to get some more
> readable information or something ...

The format of the MBR is probably in the Interrupt List, and surely in the
so called "Tech Help" series of hyperlinked dos programmer helpfiles.

More information about the Gpc mailing list