Quote:
Originally Posted by flux9842
I am a new user of Ubuntu and I am having problems setting up GRUB to multiboot Windows 7, Windows Vista, and Ubuntu 11.04. ...
|
The first thing you should do after installing Ubuntu is to run:
Hopefully, this will add Windows 7 and Vista to your
/boot/grub/grub.cfg file so you can boot into Windows.
If that does not help, see this tutorial for creating custom boot entries in the
/etc/grub.d/ directory in grub2:
https://help.ubuntu.com/community/Gr...Menu%20Entries
NOTE: I have never needed to use the first 2 lines:
Code:
#!/bin/sh
exec tail -n +3 $0
in any of my custom boot entries for grub2. However, I have seen other people report that their custom boot entries did not work unless they had those 2 lines at the beginning of their custom boot file. So try it with them.
For reference, here is the custom boot file that I used for booting WindowsXP on /dev/sda1:
Code:
echo "Adding WindowsXP on /dev/sda1" >&2
cat << EOF
menuentry "WindowsXP on /dev/sda1" {
set root=(hd0,1)
chainloader +1
}
EOF
Write back if you need more help. Also post the output of
so we can see where your operating systems are installed to which partitions.