Sign in with
Sign up | Sign in
Your question

Cant get Ubuntu 7.04 to dual boot with XP.

Last response: in Linux/Free BSD
Share
October 4, 2007 1:34:34 PM

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.

More about : ubuntu dual boot

October 4, 2007 1:52:53 PM

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 :) 
October 4, 2007 3:08:30 PM

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
Related resources
October 5, 2007 11:52:33 AM

=( Tried it....still not working!

October 5, 2007 4:01:13 PM

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.

:) 
October 23, 2007 10:51:29 AM

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.
!