Grub install seems to work, but system boots to Windows XP's bootloader

I installed Ubuntu 7.04 (i386 desktop cd) and the automated grub install apparently didn't take. When I restart the computer, the Windows bootloader comes up asking me to start Windows XP or Windows 2000. Incidentally, I don't even have 2000 anymore, and it has shown in my bootloader screen ever since I installed XP.I have Windows XP on /dev/hda1 and /dev/hdb1. Ubuntu is on /dev/hdb2 (ext3) and /dev/hdb5 (swap). There are no other partitions that I'm aware of.I tried booting Ubuntu with the installation CD and installing grub manually. First I tried grub-install and that seemed to work, but same problem as above.Then I tried mounting /dev/hda2 onto /mnt and doing a chroot /mnt. I ran grub and it could not find hd0 or said no such device or something like that.So then I exited out of the chroot and ran grub again. This time it could see hd0 and hd1. So I did a root (hd0,1) and that worked. Finally I ran setup (hd0), no errors, quit and reboot. Again, same problem as above, the Windows bootloader seems to have taken my MBR hostage.Last thing I tried was modify /boot/grub/menu.lst a little bit (changed the Windows entry to just have the two options: rootnoverify (hd0,0) and chainloader +1. Then I did the grub setup again like in the last paragraph and had the same experience.Incidentally, this is not a problem unique to Ubuntu. I also tried my old Red Hat 9 cds and had the same problem. Any ideas?jb

The order of OS

The order of OS installation, unfortunately, may be the cause of the problem. When Windows is loaded second, my recollection is that it takes over the mbr and will not allow Linux. So you want to be sure that you install Windows first. The second source of your problem might be where Grub is located. Most every system I have ever examined has a small --- usually under 200 MB --- partition where Grub resides. The menu of available OS's and the initial files necessary for Linux to boot are in that partition. You need to find it using a partition editor --- Gparted is the one I use. That partition must be on the disk that your machine boots from, and must have the "boot" flag set. You might want to boot a "live" Linux CD to locate and examine the files in that /boot partition. Ouuu, by the way. That partition will have a file named "Windows 2000" or some such --- that is why you keep seeing it on your menu. Kill it and modify it in the Grub menu and at least that irritant will be resolved.

Thanks for the response. It

Thanks for the response. It turned out to be something simpler than that. My BIOS was set to boot to the slave drive first. I have no memory of setting that option, but I must have!

linux vs windows...

Hi. I reached your post google-ing for some help. The topic is similar. I used to have Win XP and Kubuntu installed on my laptop and everything was fine untill my dear windows decided to crash in the middle of a project delivery at school. I had  to reinstall it as fast as I could and now my system boots directly to windows. i booted with a linux cd and I could see al my partitions where fine, no info lost, but I don't know what can be done to be able to use kubuntu again, without reinstalling it (important stuff...). pls help...


There is a way to install GRUB manually, you might try  The name of the article is "3.3 Installing GRUB using grub-install"   God bless