Using partcopy to load binaries onto a CD instead of floppy?

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
User avatar
rocko384
Posts: 18
Joined: Mon Aug 30, 2010 12:09 am
Location: Racine, WI
Contact:

Using partcopy to load binaries onto a CD instead of floppy?

Post 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....
I've been programming for 6 years, and can learn most languages in a day....you really wanna start a fight?
User avatar
Combuster
Member
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

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
rocko384
Posts: 18
Joined: Mon Aug 30, 2010 12:09 am
Location: Racine, WI
Contact:

Re: Using partcopy to load binaries onto a CD instead of flo

Post by rocko384 »

Awww, man, loading binaries to a CD is an entirely different process!? Eh, thanks for helping and not flaming :D
I've been programming for 6 years, and can learn most languages in a day....you really wanna start a fight?
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Using partcopy to load binaries onto a CD instead of flo

Post 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
If you have seen bad English in my words, tell me what's wrong, please.
Post Reply