first concentrate on 1 distro d00d!
What I understand is, you have currently Ubuntu gutsy installed on ide drive(2nd drive).windows is in sata harddisk?
go to bios and in boot device priority,make your Ubuntu ide harddisk as 1st priority followed by sata drive.
yes,make CD/DVD drive as 1st priority followed by ide PATA drive and then SATA drive.
boot with Ubuntu gutsy livecd,mount your Linux partition where you want to install grub.open terminal:
where hdx is ur gutsy installed on ur ide harddisk which you want to use.
you can find ur ubuntu partition via "sudo fdisk -l" output.
now do as below:
Code:
mount -t proc proc /mnt/proc
Code:
mount --bind /dev /mnt/dev
Code:
chroot /mnt /bin/bash
now you are chrooted to Ubuntu hdd install.
you should set grub natively now.
In the "#" prompt,run below commands:
In the grub prompt,
^press TAB key to show the available options that include hd0 and hd1 partitions.
select the "partition number -1" of ur Ubuntu hdd install.ie;for eg; ubuntu is installed on /dev/hda1, then select as (hd0,0) similarly for /dev/hda5 it will be (hd0,4).
so,
^where "x" is the partition number
then,
now run,
Code:
grub-install '(hd0)'
now look the o/p and make sure /dev/hda and /dev/sda are listed.
OR
Code:
cat /boot/grub/device.map
^it should have something like below:
Quote:
(hd0) /dev/hda
(hd1) /dev/sda
|
now:
press CTRL+D to exit,then reboot and see whether grub is rescued.
Now once boot into ur hdd Ubuntu installation,edit ur /boot/grub/menu.lst inorder to boot from windows on ur sata hdd.
for that,first find ur windows partition in sata-which will be most probably (hd1,0)
Inside ur hdd installed Ubuntu:
so press ALT+F2 to get run dialogue and run:
Code:
gksudo gedit /boot/grub/menu.lst
and go to bottom of the file and add in a separate line:
Code:
title = Windows XP
root = (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
save and exit.Now Hopefully,ur problems are solved