Ran into a problem when I ran ¨sudo update-grub¨. Here´s the output:
Code:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-25-generic
Found initrd image: /boot/initrd.img-3.2.0-25-generic
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 74
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Here is my current 06_custom file:
Code:
#!/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.
echo "Lubuntu Precise Pangolin 12.04" >&2
cat << EOF
menuentry "Lubuntu Precise Pangolin 12.04" {
set root=(hd0,msdos2)
linux /vmlinuz root=/dev/sda2 ro quiet splash
initrd /initrd.img
}
EOF
echo "Lubuntu Precise Pangolin 12.04 (Recovery Mode)" >&2
cat << EOF
menuentry "Lubuntu Precise Pangolin 12.04 (Recovery Mode)" {
set root=(hd0,msdos2)
linux /vmlinuz root=/dev/sda2 ro single
initrd /initrd.img
}
EOF
echo "Windows XP" >&2
cat << EOF
menuentry "Windows XP" {
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 9AB84DC1B84D9C9F
chainloader +1
}
EOF
I haven´t rebooted yet, because I´m afraid of grub not liking the error and having issues. Ideas?
Bookmarks