CD bootsector example

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
FlashBurn

CD bootsector example

Post by FlashBurn »

I?ve written a bootsector for a CD. It is a 512byte file, but I still have some place ;D If you like to test it, then you need a 16bit binary file which the bootsector can load. You can call it osloader or you change the name in the bootsector. If this bootsector isn?t working for you, please say it to me. I will then try to fix it. I haven?t tested if a dir which is also named osloader will make my bootsector not working and if you also could name the file OsLoAdEr e.g.!

[attachment deleted by admin]
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:CD bootsector example

Post by Pype.Clicker »

that's a nice add-on to the kommon knowledge .. i'm sure many hobby-OS developers will thank you for this ...

btw, do you have any clue on how one should make a bootable CD from scratch (i mean, given your bootsector, an osloader file and a collection of files i'd like to be loadable by the osloader -- which is unlikely to include ISO9660 support -- what should i do to burn a bootable CD ?)
FlashBurn

Re:CD bootsector example

Post by FlashBurn »

Here is a new version which now should work ok also on cd?s where are many files. I also tested that you can name the file OsLoAdEr and the bootsector will find it. The new version has also some less code ;D

[attachment deleted by admin]
FlashBurn

Re:CD bootsector example

Post by FlashBurn »

I use Nero for burning a bootable cd. You select CD-ROM(boot) and as source you take my image. Then you have to click on "options for experts only" (I don?t know if this is right, but it should be something like this) and you select "no emulation" and to load 1 sector and as destination "07C0". Click new, add the files you wish to add and burn it. It is the same as burning a win2k bootable cd, you only have to take the bootsector and load only 1 sector.

I hope this helped.
Post Reply