partcopy help

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beyondsociety

partcopy help

Post by beyondsociety »

I was looking at the Bona Fide OS Development website on how to copy a bootsector to a floppy. IT shows you how to copy your bootsector to a floppy disk without losing the dos boot record.

I want to know how to add the kernel to my floppy after I do this with partcopy.

add to bootsector:

jmp short begin
nop
times 0x3B db 0

begin:

times 510-($-$$) db 0
dw 0xAA55

copy to floppy:

partcopy boot.bin 0 3 -f0
partcopy boot.bin 3e lc2 -f0 3e

How to add the kernel to the disk using partcopy and this method?
K.J.

Re:partcopy help

Post by K.J. »

Okay, you can use PartCopy to put your kernel onto the floppy, but that would mess up the FAT file system on the disk(which, I think you are wanting to keep). Just use Windows Explorer/My Computer to copy the kernel to the floppy.

K.J.
beyondsociety

Re:partcopy help

Post by beyondsociety »

That doesn't work since my kernel is a .bin file and not a .exe or .com file. Is there any other way I can use this or can I just add the parameters that the dos boot record reconiqizes to my bootsector.
beyondsociety

Re:partcopy help

Post by beyondsociety »

I figured it out!. All I had to do was add the FAT Parameter BLock to my bootsector.

If I use this: partcopy os.bin 0 200 -f0
partcopy prog.bin 0 200 -f0 200

IT overrides the dos boot record, But since I added the FAT Parameter Block, the dos boot record wasn't ovewritten by the disk.
Post Reply