Re: MBR
- From: Sc0rpi0 <sc0rpi0@xxxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 08:43:32 +0100
Bill Cunningham uderzył(a) głową w klawiaturę i wyszło takie coś:
>> And single partition descriptior draft is easy to find with Google.
So search the net. Some example:
http://www.dewassoc.com/kbase/hard_drives/master_boot_record.htm
> I am using win98 now. Sometimes linux but win98 is what I'm using.
Hmm, with Win98 you probably still use int 13h as I remember,
but you have to write interface between C and BIOS so registers
you need to set is BX=adress_offset ES=adress_segment,
CX=0x0001,DX=0x00drive where drive=HDD0=0x80,HDD1=0x81 etc.,
AX=0x0201 to read, 0x0301 to write.
Anyway do check if is there any function in API that can read
psychical sectors. If not then you may be forced to use int13h.
Now I have no any WinAPI help here so can't say, and don't
remember if these kind of functions were accesible to users.
Under linux the only limitation is process ability to read or/and
(dependent if you want to write) write /dev/hdX, where X is
usualy a=HDD0,b=HDD1 etc. i.e reading physically HDD0 is
reading /dev/hda.
--
Sc0rpi0
I hated going to weddings.
All the grandmas would poke me saying "You're next".
They stopped that when I started doing it to them at funerals.
.
- Follow-Ups:
- Re: MBR
- From: Bill Cunningham
- Re: MBR
- Prev by Date: Re: VB or VC++?
- Next by Date: Re: VB or VC++?
- Previous by thread: Re: MBR
- Next by thread: Re: MBR
- Index(es):
Relevant Pages
|