Image

Imagefoxmagic wrote in Imagelinux

Dual booting with XP - how do I tell it about Linux?

I have a PC and two hard drives. On one hard drive is installed Windows XP; it's in the first partition and is the only thing on the drive. On the other hard drive is installed Ubuntu Linux 6.06; it's in the first partition and is the only thing on the drive (aside from swap). If I connect either of these drives individually, that drive will boot up just fine with its operating system.

I want to connect them both, with the XP drive as master and the Linux drive as slave, and use the Windows XP boot.ini to allow booting into Linux, but I can't figure out exactly how to do this.

The Linux drive has grub installed. When I boot it alone, it's (hd0,0) and root is on /dev/hda1. But when I connect it as a slave drive, it's (hd1,0) and root is on /dev/hdb1. So when I boot Linux as the only drive connected, the settings I boot it with won't be valid for when I boot it as a slave drive. How do I get this working?

And, after I set it up to dual-boot with XP - will I still be able to boot the Linux drive alone without the XP drive attached?