bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub on a CD


From: Greg Buchholz
Subject: Re: Grub on a CD
Date: Fri, 10 Oct 2003 16:17:27 +0100 (BST)

On Fri, 10 Oct 2003, Miles, Paul wrote:

> I'm not sure if this is the correct grub mailing list for this enquiry,
> so apologies if it isn't (and can someone point me to the correct one?)
>
> I have compiled Grub from source, and now need to install it to a
> bootable cdrom.
>
> I have read all about mkisofs and am happy with the syntax etc, the bit
> I'm very confused about is how to actually load grub onto the CD's MBR
> or equivalent.
>
> Can someone post some idiot guide notes please?
>
> Paul Miles
...<snipped 17 line disclaimer>...


        In order to get a bootable CD for the Hurd here's the recipe I
followed, your's will be similar.  I needed a grub-0.92 with a patch
from...

http://alpha.polynum.org/misc/

...and I needed the version 1.16 of mkbimage (I don't exactly remember
where I got that from).  You can grab a copy of...

http://sleepingsquirrel.org/hurd/hurdcd.iso.gz

...which is a bootable *.iso with the copy of the patched grub and the
version of mkbimage I used.  Here's the recipe I followed (under linux).

mkdir ./2.88floppy
mkdir ./isodir
cp grub/* 2.88floppy/boot/grub/
cp grub/* isodir/boot/grub/
cd 2.88floppy
tar -cf ../floppyimg.tar *
cd ..
mkbimage -f floppyimg.tar -t 2.88
cp 2.88.image isodir/
mkisofs -r -b 2.88.image -c boot.catalog -o hurdcd.iso isodir/
cdrecord -v speed=4 dev=0,0,0 -data hurdcd.iso

...That was the recipe for using a floppy image.  If you use the "-t hd"
switch of mkbimage, you'll get an ext2fs El-Torito HD emulation image that
can be any size (I've got one here 300+ MB).  You then can use "root
(hd0,0)" in grub to boot something.  Also, invoking mkbimage with no
parameters will give you some additional help messages.  You might also
want to check out this thread for any help context information (this is
where I was having problems)...

http://mail.gnu.org/archive/html/bug-grub/2003-08/msg00131.html



Greg Buchholz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]