Using partcopy to load binaries onto a CD instead of floppy?
Using partcopy to load binaries onto a CD instead of floppy?
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....
I've been programming for 6 years, and can learn most languages in a day....you really wanna start a fight?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Using partcopy to load binaries onto a CD instead of flo
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.
Please check out the wiki, Bootable CD in particular.
Re: Using partcopy to load binaries onto a CD instead of flo
Awww, man, loading binaries to a CD is an entirely different process!? Eh, thanks for helping and not flaming
I've been programming for 6 years, and can learn most languages in a day....you really wanna start a fight?
Re: Using partcopy to load binaries onto a CD instead of flo
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
If you have seen bad English in my words, tell me what's wrong, please.