Sign in with
Sign up | Sign in
Your question

Editing MBR for XP Vista Ubuntu

Last response: in Linux/Free BSD
March 11, 2008 12:44:12 AM

Hello all! Hope this is the right forum choice here. I just finished installing Ubuntu 7.10 to go along with XP and Vista on the same drive. All three OS's are working, but I find that in order to get to XP I have to choose the Vista Longhorn option first which then loads the Grub menu and shows Windows XP and Windows Vista. Can someone point me in the direction to making this work with a single 3-way start menu. Thanks in advance for any comments.
March 11, 2008 1:06:48 PM

If Vista didn't encrypt your partitions or use any other dirty tricks you can use GRUB to handle all 3.

GL :) 
March 11, 2008 1:22:17 PM

From one of my previous posts

Boot ubuntu, make a backup copy and then edit /boot/grub/menu.lst

I think you need to add these lines to the bottom and change "rootnoverify (hd1,0)" to match your hard drive with xp on it

title xp
rootnoverify (hd1,0)
chainloader +1

GRUB starts counting at 0

hd0 is the 1st HDD
hd1 is the 2nd HDD
hd2 the 3rd HDD and so on

The second number is the partition so if xp is on the 1st partition it would be 0 and so on.

If xp is on the 3rd hard drive and 4th partition you'd use hd(2,3)

If you installed XP and Vista on separate partitions or drives you can use GRUB directly to boot them, otherwise if they are installed on the same partition you have to redirect to the windows boot loader.

GL :)