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?
partcopy help
Re:partcopy help
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.
K.J.
Re:partcopy help
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.
Re:partcopy help
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.
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.