Hi guys, my OS bootloader, stage 1, stage 2 and 64 bit is all implemented in one .img file, which is much larger than 512 bytes.
This works fine when using qemu with disk, but with CDRom I am unsure how to get the .img file into the CDRom to boot.
I am using windows.
I have tried mkisofs, but I am not sure if I have set the options correctly.
Any ideas??
Regards, Alistair
How to make a boot Sector over 512 bytes boot on a CDRom
Re: How to make a boot Sector over 512 bytes boot on a CDRom
What is different between "OS bootloader" and "stage 1"?
If you have seen bad English in my words, tell me what's wrong, please.
Re: How to make a boot Sector over 512 bytes boot on a CDRom
When I was on windows, I used the trial version of UltraISO
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
Re: How to make a boot Sector over 512 bytes boot on a CDRom
Creating a bootable CD is a decidedly messy process. For one thing there is no boot sector on a CD, and what would be called the second stage loader on a hard disk is loaded directly by the BIOS, with the help of an on disk structure called the boot catalog. Your life will be easier if you use a third party utility such as Power ISO on Windows, or a command line utility, which I think is bundled with binutils, with Linux (I can't remember the program's name).
Re: How to make a boot Sector over 512 bytes boot on a CDRom
I'm not sure what do you mean when you talk about "getting .img file to the CD-ROM". There are three modes of booting from CD-ROM: floppy emulation mode, HDD emulation mode and no emulation mode.The first two modes are rather simple. You just make floppy or HDD image then prepare CD-ROM image. But many BIOSes are buggy in these modes. The third mode (no emulation) requires writing special boot sector, parsing ISO-9660 file system and taking into account that the sector size is 2048 bytes. I don't know which tools prepare emulation modes ISO images. For creating no emulation image under Windows you may read description in my OS boot tools (see link in my signature).tsdnz wrote:with CDRom I am unsure how to get the .img file into the CDRom to boot.