Page 1 of 1
Using partcopy to load binaries onto a CD instead of floppy?
Posted: Mon Aug 30, 2010 12:38 am
by rocko384
I just need to know how to make "partcopy example.bin 0 200 -f0" switch from writing to a floppy, over to writing to a CD =/ Ready for flames, but atleast post an answer if you do....
Re: Using partcopy to load binaries onto a CD instead of flo
Posted: Mon Aug 30, 2010 1:05 am
by Combuster
CD's don't use the same booting mechanism as a floppy, nor do they have the same sector sizes. What you plan to do will not work.
Please check out the wiki,
Bootable CD in particular.
Re: Using partcopy to load binaries onto a CD instead of flo
Posted: Mon Aug 30, 2010 1:11 am
by rocko384
Awww, man, loading binaries to a CD is an entirely different process!? Eh, thanks for helping and not flaming
Re: Using partcopy to load binaries onto a CD instead of flo
Posted: Wed Sep 01, 2010 9:32 am
by egos
CD may have boot record with size 512 bytes. But usually it is used 2 K boot record. Combuster is right. The booting mechanism is really different. It has need of FS structure with boot record desc, boot catalog and boot code. I make iso image by fasm first and then write it on CD.
Code: Select all
include "cdrom/mkisofs.inc"
format binary as "iso"
resptsize equ 2048 ; this line may be erased
orgvol ; system area
primvd
bootrec
termvd
bootcat
lpt
mpt
defdir root {}
stof boot,"cdrom/bootcode.bin"
stod root,root
finvol ; fix volume size and write path tables