You probably don't need lilo because you probably already have a bootloader installed: grub.
Look /boot directory. If you see a sub-folder called grub, it's already installed on your system.
Look in the /grub folder, you should see a file called grub.conf (or perhaps menu.lst - same file; different name).
Add an entry for your windows disk. See the grub manual (probably already on your system somewhere) for examples.
With windows on the first partition of the first drive, it's something like:
title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
This assumes hda is the master drive. This uses grub notation for disks and partitions: hda = grub hd0; hdb = grub hd1; partition 1 = grub 0; partition 2 = grub 1.
If windows is on the slave drive, you will have to amend the above windows entry to look like this:
title Windows
root (hd1,0)
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
savedefault
makeactive
chainloader +1
This remaps the drives so windows thinks it's on the master drive.
Then go through the steps in the grub manual to write grub first stage to the MBR. It's easily done and the manual has step by step instructions.
After making the additions to your grub.conf and writing grub first stage to the MBR, reboot and select windows. It should boot just fine.
Note: when you re-install windows, it will overwrite the MBR and Linux will not boot. You will have to boot from install cd and do it again.
Last edited by bigrigdriver; 10-28-2006 at 03:06 PM.
|