Possible Duplicate:
Is it possible to boot Ubuntu using the Windows bootloader?
I have installed Ubuntu 12.04 Alpha 2 on a partition separate partition from Windows and was wanting to know how to add the OS to the boot.ini so I can boot into Ubuntu.
Windows XP? Well...
This has been working since the early days of NT4:
dd if=/dev/sdxY of=/media/fat/linux.bin bs=512 count=1
as root, replacesdxY
with your linux partitionYour results may vary: Grub2 might need downgrading to Grub 1.x for this to work.
You don't add Ubuntu to boot.ini. You add a windows partition to grub.
If you must do it, it is described here for implementations with bitlocker and TPM.
I use EasyBCD (because i have trouble installing GRUB on a EFI motherboard with fakeraid). There is a free version for noncommercial use at the bottom of the page.
As far as I remember, i set up the windows boot loader to chainload grub. There is a automatic method in EasyBCD, but it didn't work for me.
Instead I made it boot into a legacy GRUB with the following menu.lst:
Note: (hd0,4) means that my root partition is on /dev/sda5. UUID=X is the uuid of this volume. You can find this with
sudo blkid
.