Page 1 of 1

Write to Floppy Help

Posted: Fri Jul 16, 2004 11:00 pm
by JoeImp
Ok, so ive got a basic bootloader written in asm, and a very small kernel written in C. The kernel has various C files that are combined to form kernel.o, I have no problems there. I end up with a bootloader.bin and a kernel.bin. I use a little program called 'makeboot' to combine the 2 .bin's into a .img, which I run with bochs perfectly. Now, how would I go about writing this .img (or the bootloader.bin and kernel.bin) to an actual floppy for an actual test? Ive seen some examples of how to do it on a linux machine or such, but Im confused as to what to do on a windows machine. Im running windows xp, with nasm and gcc. Any help appreciated.

Joe

RE:Write to Floppy Help

Posted: Sat Jul 17, 2004 11:00 pm
by Khumba
You can use RAWrite (http://uranus.it.swin.edu.au/~jn/linux/rawwrite.htm), but if you're copying multiple files to different parts of the floppy, use PartCopy (http://my.execpc.com/~geezer/johnfine/), because RAWrite doesn't always preserve partially written-over sectors.

-[ Khumba ]-

RE:Write to Floppy Help

Posted: Sun Aug 15, 2004 11:00 pm
by LexX
I like to do everything myself and I've written a little program in Delphi using WinAPI (very simple :)). Just open '//./a:' (how I remember) as stream file and write it.

RE:Write to Floppy Help

Posted: Tue Aug 17, 2004 11:00 pm
by SystemHalted
Of course the widows API is simple LexX, it was written by retards. :)