Chain Load Grub

I will be working with grub version 1, an 8 Gig USB stick partitioned in to four equal partitions.

You will need to run on each partition that you will be installing an OS on the following command:

(Change the path and device to the one's on your machine)

sudo grub-install --root-directory=/media/disk-N /dev/sddN

Use the next command if the grub directory already exists in the /boot directory:

sudo grub-install --recheck --root-directory=/media/disk-N /dev/sddN

Now you will need to create /boot/grub/menu.lst in the first bootable partition.

I am only using the first two partitions, the fist one has System Restore on it and the second has Xen live disk on it.

timeout 5
color light-gray/black light-blue/black

title SystemRescueCd 32bit
root   (hd0,0)
kernel /isolinux/rescuecd
initrd /isolinux/initram.igz

title SystemRescueCd 64bit
root   (hd0,0)
kernel /isolinux/rescue64
initrd /isolinux/initram.igz

# Default for most users
title         Xen
rootnoverify  (hd0,1)
makeactive
chainloader   +1
quiet

Make sure when you formatted the first partition you turned the bootable flag on. The Xen partition already had a boot/grub directory with a menu.lst file in it, so I didn't need to create one.

That's it.

ChainLoadGrub (last edited 2010-02-20 01:21:59 by CarlNobile)