Log in

View Full Version : Adding Vista to GRUB2 Bootloader


Sugaree
September 5th, 2013, 08:31 PM
So I've recently undergone a huge effort to restore my system. I've got Windows 7, Ubuntu 13.04, and Windows Vista all in one well organized package. However, there's a problem: I can't get Windows Vista into the GRUB bootloader. All the guides I've looked at haven't solved the problem and I'm looking for any linux users on VT who might be able to help.

TheMatrix
September 5th, 2013, 08:53 PM
If you remember which partition it's on(a quick mount and ls of the various /dev/sda or whatever Ubuntu uses should reveal it), you might be able to create a menu entry for it.
Disclosure: I've never messed with GRUB config files. Proceed at your own risk.

I did find this (http://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading), and I assume...

menuentry "Windows" {
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
}
...can be modified to be the hd#(sda = 0, sdb = 1, ..., sdz = 26), followed by the partition number(as in sda1, sda2, ..., sdaN).
I don't know where to put that. Perhaps running this may give you an idea of where to put it:

grep -Rn "menuentry" /boot/*

If that doesn't work, try copying the Windows 7 entry and changing the values to match the Vista one; you may have to put random values. The worst you can do is boot into something else.

Hope it works. I don't know why you would want Vista of all things, though.

Sugaree
September 5th, 2013, 09:36 PM
If you remember which partition it's on(a quick mount and ls of the various /dev/sda or whatever Ubuntu uses should reveal it), you might be able to create a menu entry for it.
Disclosure: I've never messed with GRUB config files. Proceed at your own risk.

I did find this (http://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading), and I assume...

menuentry "Windows" {
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
}
...can be modified to be the hd#(sda = 0, sdb = 1, ..., sdz = 26), followed by the partition number(as in sda1, sda2, ..., sdaN).
I don't know where to put that. Perhaps running this may give you an idea of where to put it:

grep -Rn "menuentry" /boot/*

If that doesn't work, try copying the Windows 7 entry and changing the values to match the Vista one; you may have to put random values. The worst you can do is boot into something else.

Hope it works. I don't know why you would want Vista of all things, though.

A ha! Thanks.

TheMatrix
September 6th, 2013, 07:59 AM
No problem :)