CD-ROM not booting

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
no_one
Posts: 17
Joined: Sat Jul 14, 2007 9:47 am

CD-ROM not booting

Post by no_one »

Ok, I made a disk image containing only one file: Boot.bin. Boot.asm looks like this:

Code: Select all

org		0x7C00
bits	16
_start:
	cli
	hlt
	times	510 - ($-$$) db 0
	dw		0xAA55
I burnt the disk image to a CD and made a virtual machine in Qemu. I inserted the CD, ran the VM and it couldn't boot. It says the same thing it says when you try to boot with nothing in the drive. Is it the bootloader that's wrong?
sancho1980
Member
Member
Posts: 199
Joined: Fri Jul 13, 2007 6:37 am
Location: Stuttgart/Germany
Contact:

Post by sancho1980 »

try calling an interrupt that prints something to the screen!

edit: i dont think your little piece of code is wrong, but try with a floppy image first. i think booting from cd is still a bit different...
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Please read the following....:roll:
http://en.wikipedia.org/wiki/El_Torito_ ... tandard%29

(After reading, be sure to check out the stuff in the "External Links" section :wink:)

Using a floppy disk/image for initial testing is "highly" recommended..
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Post by kataklinger »

You can use floppy disk image to boot from CD-ROM. But it is not enough to burn boot.bin, you have to make full floppy disk image, and then you need to tell to your burning software that you want bootable cd with floppy disk emulation. AFAIK Nero doesn't have that option, Magic ISO has it.
Post Reply