Page 1 of 1
Writing to specific sectors
Posted: Tue Jan 16, 2007 7:26 pm
by pcmattman
Hello all, I've run into a problem. I need to write my kernel to the sector directly after the bootsector, but so far my attempts at writing a sector copy program have not worked and I can't find a Windows version of this sort of program. Does anyone know any links to programs that can do this?
(My C++ code opened "\\.\A:" to directly access the disk, which didn't work)
Posted: Tue Jan 16, 2007 8:32 pm
by JackScott
http://www.osdever.net/downloads/other/pcopy02.zip
That is the partcopy program, which can be used on DOS/Windows to write bootsectors, and it can be used for other floppy-related tasks as well. I hope this is what you want.
Posted: Tue Jan 16, 2007 9:07 pm
by pcmattman
Sounds good, I'll look into it and see if it works.
Posted: Wed Jan 17, 2007 3:09 am
by mohammed
in this program you can't specify a sector it write in the first sector only right ??
Posted: Wed Jan 17, 2007 3:25 am
by JackScott
From the documentation:
USAGE:
PARTCOPY source source_offset length destination {destination_offset}
It seems the final parameter allows you to select an offset.[/quote]