Cant get Ubuntu 7.04 to dual boot with XP.

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.
5 answers Last reply
More about cant ubuntu dual boot
  1. 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 :)
  2. 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
  3. =( Tried it....still not working!
  4. 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.

    :)
  5. 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.
Ask a new question

Read More

Windows XP Dual Boot Boot Ubuntu