Bootable cd?

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
I want to make my own bootable cd. I am using C/C++ to do this I use
CreateFile, WriteFile , ..etc etc to right to the CD. But my problem is that I don't know what makes it bootable.

For instance making a floppy disk bootable you just write to the first sector of the drive and make sure bytes 510 to 512 have the special AA55.

I have read on some sites about the first 16 sectors of the cd being reserved for booting the cd. But the sector sizes are not 512 bytes they are over 2000 bytes long.

Somebody told me it emulates a floppy disk. But does that mean I just write the whole floppy disk image out from the first sector linearly...

I Know
The BIOS only looks for the first bootable device and loads the first sector into memory. I know how it works for the floppy and harddisk. Because it just looks for the AA55 in the 510 to 512 bytes and loads that sector into memory then jumps to it. (i.e hands control of to the bootsector code)
But cd , usb have different sector size do I still just use the first 512 bytes of their sector with the 510 - 512 bytes having signature AA55.

Note I don't want to use barts or any other software product to make a cd bootable I just want to write out the bytes myself. And know how to make it bootable.

Any help would be great. As this question has been bothering me for a year or so.
 
Hi,
Let me tell you an Easy way to create a Bootable Disc. Whatever the disc may be either CD or DVD, write the Data with Minimum speed. For CD its 4X and for DVD i could not remember but Minimum speed of writing is the solution. For trying this i lost 10 to 20 CD's and i found it at last. I assure you, it works fine. Another important thing is that you have to verify whether the Data you write on the Disc is a Bootable image already by its coding. Thats it..
 

HellDesk

Joined Dec 8, 2008
2
@vivekanantha7: You know you could have used one CD-RW for that?

Burning at low speed only matters if you have a crappy burner or crap cd's.

@Mathematics!: Time to read the specs. Have you read the ISO9660 specs? Free for download Here..
 
Hi, Whats that Crappy Burner...? I have used Nero 6.3 OEM. For your information i just used a Simple CD-W disc and created bootable disc. If u gonna believe this, i can show u a Video on that...
 
Top