9.4 Creating Boot CDs
If problems occur while booting your system using a boot manager or if the boot man-
ager cannot be installed on your hard disk disk, it is also possible to create a bootable
CD with all the necessary start-up les for Linux. This requires a CD writer be installed
in your system.
Creating a bootable CD-ROM with GRUB merely requires a special form of stage2
called stage2_eltorito and, optionally, a customized menu.lst. The classic
les stage1 and stage2 are not required.
Procedure 9.7:
Creating Boot CDs
1
Change into a directory in which to create the ISO image, for example: cd /tmp
2
Create a subdirectory for GRUB and change into the newly created iso directory:
mkdir -p iso/boot/grub && cd iso
3
Copy the kernel, the les stage2_eltorito, initrd, menu.lst and
message to iso/boot/:
cp /boot/vmlinuz boot/
cp /boot/initrd boot/
cp /boot/message boot/
cp /usr/lib/grub/stage2_eltorito boot/grub
cp /boot/grub/menu.lst boot/grub
4
Replace the root (hdx, y) entries with root (cd) to point to the CD_ROM
device. You may also need to adjust the paths to the message le, the kernel and the
initrd—they need to point to /boot/message, /boot/vmlinuz and /boot/
initrd, respectively. After having made the adjustments, menu.lst should look
similar to the following example:
timeout 8
default 0
gfxmenu (cd)/boot/message
title Linux
root (cd)
kernel /boot/vmlinuz root=/dev/sda5 vga=794 resume=/dev/sda1 \
splash=verbose showopts
initrd /boot/initrd
The Boot Loader GRUB 173