configuring GRUB to boot a CD

configuring GRUB to boot a CD

Post by boi » Wed, 12 Oct 2005 00:31:32


This is my partition table

/dev/sda1 1 2 16033+ 83 Linux
/dev/sda2 12406 14593 17575110 7 HPFS/NTFS
/dev/sda3 247 3894 29302560 83 Linux
/dev/sda4 3895 12405 68364607+ 83 Linux

I want to install Windows XP on /dev/sda2. If I read the howto correctly,
I need GRUB to make Windows think it is being installed on the first
primary partition, so GRUB needs to be loaded prior to the
Windows installation cdrom booting.

My incomplete (and totally wrong) grub.conf is

default 0
timeout 10
title=Gentoo Linux 2.6.11-r3
kernel /kernel-2.6.11-gentoo-r3 root=/dev/sda3 vga=792

kernel /boot/memtest86/memtest.bin

title Windows XP
map (hd0,0) (hd0,2)
map (hd0,2) (hd0,0)
rootnoverify (hd0,2)
chainloader +1

title Windows XP Installation CD
map (hd0,0) (hd0,2)
map (hd0,2) (hd0,0)
chainloader (xxxxxxxxxxxxxx)+1

Can anyone help me out here? For example, what do I put at the x's? How
can I refer to the cdrom (/dev/hda) in GRUB lingo?

Thanks in advance,


configuring GRUB to boot a CD

Post by JDS » Wed, 12 Oct 2005 02:25:00

You can just install Windows XP, then reinstall Grub. That might be
easier than trying to boot the Windows cd after grub loads, not to mention
(IIRC) Windows is going to overwrite your bootloader stuff anyways.

use "grub-install" to reinstall GRUB on the desired partition. You don't
even have to change your grub.conf file (pretty sure)