View Full Version : [ubuntu] Bootloader Trouble

December 4th, 2008, 01:40 AM
I installed Ubuntu on a machine with Vista on it already. I didn't want GRUB to default into Ubuntu, but rather Vista. I popped in my Vista Install Disk and repaired the master boot record, but now it just boots to vista regardless. The windows boot loader doesn't seem to recognize Ubuntu. Should I reinstall GRUB (if so, what do I do to make Vista the default), or is there a way to just use the windows boot loader somehow.


December 4th, 2008, 01:49 AM
Boot a ubuntu live cd and follow this (http://ubuntuforums.org/showthread.php?t=224351) to reinstall grub. Then reboot into ubuntu and follow this (http://users.bigpond.net.au/hermanzone/p15.htm#osprefernc) to set windows as the default. If you get stuck post your /boot/grub/menu.lst by opening a terminal (Applications>Accessoires>Terminal)

cat /boot/grub/menu.lst

December 4th, 2008, 02:52 AM
OK, first to reinstall Grub, how about booting your Live CD, open a terminal (Applications > Accessories > Terminal) and do:

sudo grub
grub> find /boot/grub/stage1
grub> find /grub/stage1
One of the above commands should return your main Ubuntu partition (or /boot partition if you have one) in the form of (hdX,Y) where X and Y are numbers, for example (hd0,4), but use whatever it returns as follows:

grub> root (hdX,Y)
grub> setup (hdX)
grub> quit
Please post the output of all the above commands. Reboot, and you should be able to boot into Ubuntu. If that works, then please post the output of:

sudo fdisk -lu
And also post your menu.lst as Partyboi2 asked for. We can help you set your Grub menu so that Vista boots by default.

December 4th, 2008, 07:21 AM
Sweet that worked! Thanks a bunch.