Create CD Bootable From Linux
|
Creating a Bootable GRUB Legacy (V 0.57) CD:
This uses the GRUB files "menu.lst" and "stage2_eltorito".
* mkdir -p iso/boot/grub
* cp /lib/grub/i386-pc/stage2_eltorito iso/boot/grub
* cp /lib/grub/i386-pc/menu.1st iso/boot/grub
* Copy all files, OS files, etc to iso that you wish to put on the CD
* mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4
-boot-info-table -o grub.iso iso
This generates a file grub.iso which can burned to CD or DVD.
menu.lst example for Fedora 12.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=30
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.9-174.fc12.i686.PAE)
root (hd1,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Fedora hd0 (2.6.31.9-174.fc12.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Fedora hd1 (2.6.31.9-174.fc12.i686.PAE)
root (hd1,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Fedora hd2 (2.6.31.9-174.fc12.i686.PAE)
root (hd2,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Fedora hd3 (2.6.31.9-174.fc12.i686.PAE)
root (hd3,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Fedora hd4 (2.6.31.9-174.fc12.i686.PAE)
root (hd4,0)
kernel /vmlinuz-2.6.31.9-174.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.9-174.fc12.i686.PAE.img
title Windows Vista hd0
root (hd0,0)
makeactive
chainloader +1
title Windows Vista hd1
root (hd1,0)
makeactive
chainloader +1
title Windows Vista hd2
root (hd2,0)
makeactive
chainloader +1
title Windows Vista hd3
root (hd3,0)
makeactive
chainloader +1
Download example.