Cant get Ubuntu 7.04 to dual boot with XP.

joetempleman

Distinguished
Aug 9, 2007
14
0
18,510
I'm running windows XP Pro SP2 at the moment and have been trying for days now to get Ubuntu to dual boot.

I have got windows running on one 500GB hard disk, and I have already resized the partition so there is enough space. I go through the setup (booting from the live CD), I do the partitions manually (4GB Swap and 20GB EXT3 set as root), and it installs fine. When I reboot it doesn't go on to the boot selector, it just goes straight into windows.

I remember when dual booting fedora core 1 years ago I had to change the place where the boot selector was installed (from HD0 to HD1) so I tried that once, and it made it go onto the boot menu at least, but I had to change the boot setup in the command line from HD1 to HD0 to make it boot, and my windows wouldnt boot at all (NTDLR missing).

Any ideas? I've researched for hours how your "meant" to do it, with windows XP still installed but I have followed them all down the the last letter and I still cant get it working.

Any help appreciated.
 

linux_0

Splendid
Did you install GRUB ( the Grand Unified Boot Loader ) on your boot drive?

If your 500GB drive is the 1st SATA HDD on your system GRUB should be installed on /dev/sda.

On most Linux distributions you should be able to boot from a Live CD / DVD or a rescue disk, su to root if you are not root already ( "sudo su -" on ubuntu ) and run

"/sbin/grub-install --recheck /dev/sda"

replacing /dev/sda with your primary boot drive in case it is something other than sda.




Your /boot/grub/menu.lst ( /etc/grub.conf on Fedora / RedHat / CentOS / etc ) should contain something like this


title Ubuntu
root (hd0,1)
kernel /vmlinuz-2.6.2xxxxxxxxxxxxxx
initrd /initrd-2.6.2xxxxxxxxxxxxx
title XP
rootnoverify (hd0,0)
chainloader +1



assuming XP in on /dev/sda1 and Linux on /dev/sda2

GL :)
 

joetempleman

Distinguished
Aug 9, 2007
14
0
18,510
Oh my god you legend!

I'll give that a go as soon as I'm back from uni. Its my first time on linux and I'm feeling a little out of my depth!

Thanks

Joe
 

linux_0

Splendid
Please post the contents of /boot/grub/menu.lst and the output of the following commands:

dmesg |grep hd

dmesg |grep sd


If your 500GB HDD is /dev/sda please run

fdisk -l /dev/sda

if it's /dev/sdb

fdisk -l /dev/sdb

and so on

then post that too.

:)
 

Canuck1

Distinguished
Apr 1, 2007
452
0
18,790
You could always use a different boot loader that might make things easier. Just make sure you learn how to use it as it can be a bit complicated and you need to know what you're doing so that you don't accidentally prevent Windows from loading.

I use GAG (boot loader). It works well. Once you install a distro enough times, it becomes almost second nature and it is only a matter of determining which partition is what.

I prefer using it rather than worrying about what GRUB is doing.