Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 228 #254
i
i
i
i
i
i
i
i
mkdir /tmp/CDroot
cp /usr/share/syslinux/isolinux.bin /tmp/CDroot/
cp /boot/vmlinuz /tmp/CDroot/linux
cp /boot/initrd /tmp/CDroot
4. Create the boot loader configuration file /tmp/CDroot/isolinux.
cfg with your preferred editor. Enter the following content:
DEFAULT linux
LABEL linux
KERNEL linux
APPEND initrd=initrd root=/dev/hdXY [boot parameter]
Enter your root partition for the parameter root=/dev/hdXY. It is
listed in the file /etc/fstab. Enter additional options for the set-
ting [boot parameter], which should be used during booting. The
configuration files could look like this:
DEFAULT linux
LABEL linux
KERNEL linux
APPEND initrd=initrd root=/dev/hda7 hdd=ide-scsi
5. The following command (entered at a command prompt) then creates
an ISO-9660 file system for the CD.
mkisofs -o /tmp/bootcd.iso -b isolinux.bin -c boot.cat
-no-emul-boot -boot-load-size 4
-boot-info-table /tmp/CDroot
The complete command must be entered as one line.
6. The file /tmp/bootcd.iso can be written to CD after that with
graphical CD writing applications, like K3b, or at a command prompt
with cdrecord -v speed=2 dev=0,0,0 /tmp/bootcd.iso
-eject.
Change the parameter dev=0,0,0 according to the SCSI ID of the
writer. Determine it with the command cdrecord -scanbus. Also
refer to the man page cdrecord.
7. Test the boot CD. Reboot the computer to verify whether the Linux
system starts correctly from the CD.
228 8.8. Creating Boot CDs