Grub boot CD image

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
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Grub boot CD image

Post by xDDunce »

hi,

I have been searching for the ISO image of a grub boot CD. i have seen it before but i only downloaded floppy image, but now i want to make my OS more compatible (because everyone knows the floppy drive is an endangered species).

I've searched google for bout an hour and could not find it. so if anyone knows where i can get the image, i would be very thankful!

the reason i cannot make the image is that the directions to compile the Stage2_ElTorito binary is very unclear.

Thanks in advance,

James.
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Re: Grub boot CD image

Post by xyzzy »

Hi,

I keep a precompiled copy of stage2_eltorito in my source repo. You can download it from http://svn.exclaim-project.org/websvn/f ... 2_eltorito

Then to make an ISO from it (assuming you have Linux or Cygwin), create a temporary directory, copy your kernel into it. Then make a grub subdirectory and copy stage2_eltorito and a menu.lst file into it. This menu.lst should do the trick - of course you need to change the paths:

Code: Select all

default 0
timeout 10

title My Kernel
	kernel /kernel.elf
Then to create the ISO - replace <temp directory> with the path to your temporary directory:

Code: Select all

mkiso -R -l -b grub/stage2_eltorito -boot-load-size 4 -boot-info-table -no-emul-boot -o cdrom.iso <temp directory>/
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Re: Grub boot CD image

Post by xDDunce »

thanks for the reply Alex, i will be downloading soon! currently no possible computer to use as a development environment as my laptop just died on me so only left with the family computer. i'm getting a macbook(gift from old folks for passing GCSEs - aren't they kind?) soon though so i will be back up and running real soon.

James.
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Re: Grub boot CD image

Post by xDDunce »

thanks alex! it works great! having a little trouble using the menu.lst file but i think it is just the virtual cd emulator i'm using.

thanks for the help!

James.
Post Reply