failed saving grub configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grub Customizer |
New
|
Undecided
|
Unassigned |
Bug Description
I'm running a dual-boot Windows 7 64-bit and Ubuntu 12.04 64-bit machine. Grub Customizer used to work for the first 1-2 kernel updates, but after that the grub configuration wasn't saving properly. It would save, but when I booted my machine, the GRUB menu entries were in a different order than what I had specified. Today, I updated Grub Customizer to 4.0.6 and now saving the configuration doesn't work at all. It gives an error message (see below).
-------
Failed saving grub configuration!
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:/
failed running 'grub-mkconfig -o "/boot/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 141
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/
done
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 (hd0,msdos2) /grub
set prefix=
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: Desktop/ green-backgroun d-2_00450547. jpg 3.11.0- 12-generic img-3.11. 0-12-generic 3.11.0- 12-generic img-3.11. 0-12-generic grub.cfg. new file attached.done
Generating grub.cfg ...
using custom appearance settings
Found background image: /home/pauline/
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.bin
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
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/