El-Torito Boot CD Not Functioning

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
KodyKinzel
Posts: 7
Joined: Tue Jan 05, 2010 7:37 pm
Contact:

El-Torito Boot CD Not Functioning

Post by KodyKinzel »

I have been using a bootloader I made myself for most of the development of my OS, but now I need to use grub to load my kernel. I am getting a problem trying to create no-emulation boot cd. To make sure it wasn't a problem with my kernel, I downloaded a kernel from a sample tutorial on the internet and a grub floppy image from it. It works fine on the floppy image, but using the same kernel with my boot cd produces the same lack of function.

I am using mkisofs
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso ISODIR

this is the directory structure of ISODIR:
ISODIR
->kernel.bin
->boot
->->grub
->->->stage2_eltorito
->->->menu.lst

this is menu.lst:
title KOS test
root (fd0)
kernel /kernel.bin

and this is all that happens when I boot it:
GNU GRUB version 0.95 (639K lower / 64448K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions. Anywhere else TAB lists the possible completions of a device/filename. ]

grub> _


what am I doing wrong?
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: El-Torito Boot CD Not Functioning

Post by dak91 »

this

Code: Select all

root (fd0)
should be

Code: Select all

root (cd)
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: El-Torito Boot CD Not Functioning

Post by Selenic »

dak91 wrote:this

Code: Select all

root (fd0)
should be

Code: Select all

root (cd)
IIRC, if Grub encounters an error in the config file it doesn't drop into the console (and if it does, it puts an error message for you).

On the other hand, at least the GRUB image linked to from the wiki doesn't seem to work (CD image generated following the command line on that page). "root (cd)" gives a disk read error (tested on bochs and vbox), and causes Bochs to give this error:

Code: Select all

00017962317e[HD   ] ata0-0: atapi_cmd_error: key=05 asc=21
00017965690i[BIOS ] int13_cdrom: function 42, status 03 !
KodyKinzel
Posts: 7
Joined: Tue Jan 05, 2010 7:37 pm
Contact:

Re: El-Torito Boot CD Not Functioning

Post by KodyKinzel »

Thank you for your help, but correcting that didn't fix it. I followed the guide in the wiki for this and I've checked and double checked to make sure I did it right. It isn't giving me any errors so I don't even have anything that I can look up.
Post Reply