I wasn't sure what that part of the code meant so I left it.
I stripped out the:
echo "Adding Windows OS to Grub 2 Menu"
cat << EOF
from the top
and I got rid of the:
EOF
at the bottom. Everything works perfectly.
Just for clarification, the code looks like this:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Mom & Dads" {
insmod chain
insmod ntfs
parttool (hd0,1) hidden-
parttool (hd0,2) hidden+
parttool (hd0,5) hidden-
set root= (hd0,1)
search --no-floppy --fs-uuid --set 9A7A430F7A42E819
chainloader +1
}
menuentry "Kids Operating System" {
insmod chain
insmod ntfs
parttool (hd0,2) hidden-
parttool (hd0,1) hidden+
parttool (hd0,5) hidden+
set root= (hd0,2)
search --no-floppy --fs-uuid --set 9A18464D18462919
chainloader +1
}
menuentry "Ubuntu" {
parttool (hd0,2) hidden-
parttool (hd0,1) hidden-
parttool (hd0,5) hidden-
parttool (hd0,6) hidden-
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 9a1e8016-a158-4e98-ae38-6da0fd528d9a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=9a1e8016-a158-4e98-ae38-6da0fd528d9a ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Memory Test - Memtest86+" {
linux16 /boot/memtest86+.bin
}
Hope that helps someone.
Cheers
Bookmarks