Comment 3 for bug 1308833

Revision history for this message
Jaymax (v-email) wrote :

Adding to this since it seems sufficiently similar. Error text at bottom

I had to muck about a bit with my partitions to get grub into a primary MBR partition. I should probably have just re-installed mint after rearranging things, but now I'd far rather fix the existing install.

I can boot to mint from grub rescue with
set prefix=(hd0,msdos2)/grub
set root=(hd0,msdos2)
insmod linux
linux /vmlinuz-11.3.0-etc root=/dev/hda5
initrd /initrd.img-11-etc
boot

but I can't seem to get grub to show me the menu, and I can't seem to save the config file...

Please take a look at the command line output below. If you think this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this.

failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub.cfg ...
using custom appearance settings
Found background image: /home/pauline/Desktop/green-background-2_00450547.jpg
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found memtest86+ image: /memtest86+.bin
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
File descriptor 11 (/proc/2690/mounts) leaked on lvs invocation. Parent PID 3948: /bin/sh
  No volume groups found
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda6
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 157
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