Dr_Jez
July 5th, 2011, 10:36 PM
First post, sorry for any mistakes.
I have a dual boot Win7/Ubuntu laptop. I have been running it dual since 10.04, Lucid with no problems, and I upgraded to 10.10 also without problems. However, when I upgraded to 11.04 I began to get error messages on boot up.
Importantly - both Win7 and Ubuntu still work fine, so it could be worse, but clearly something is not right in GRUB.
I could solve this by wiping Ubuntu and reinstalling from the Live CD, but that teaches me nothing, so I would like to get to the bottom of the problem.
The following is what I get if I try to update grub:
jez@jez-laptop:~$ sudo update-grub
[sudo] password for jez:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 153
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
All help gratefully received.
I have a dual boot Win7/Ubuntu laptop. I have been running it dual since 10.04, Lucid with no problems, and I upgraded to 10.10 also without problems. However, when I upgraded to 11.04 I began to get error messages on boot up.
Importantly - both Win7 and Ubuntu still work fine, so it could be worse, but clearly something is not right in GRUB.
I could solve this by wiping Ubuntu and reinstalling from the Live CD, but that teaches me nothing, so I would like to get to the bottom of the problem.
The following is what I get if I try to update grub:
jez@jez-laptop:~$ sudo update-grub
[sudo] password for jez:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 153
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
All help gratefully received.