Grub customizer fails

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
revmalc

Grub customizer fails

Post by revmalc »

I am running Mint 17 but need a legacy installation as well.
I want to change the boot order in grub to go to Linux by default.
When I open grub customizer the oreder appears to be the one I want, with Linux the top line and maked deafault.
However, when I reboot, Windows comes up as top line.
I tried to change in Grub customizer, but when I treid to save changes I got:


failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-38-generic
Found initrd image: /boot/initrd.img-3.16.0-38-generic
File descriptor 11 (/proc/2551/mounts) leaked on lvs invocation. Parent PID 6681: /bin/sh
No volume groups found
Found Microsoft Windows XP Home Edition on /dev/sda1
Found linux image: /boot/vmlinuz-3.16.0-38-generic
Found initrd image: /boot/initrd.img-3.16.0-38-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 11 (/proc/2551/mounts) leaked on lvs invocation. Parent PID 7613: /bin/sh
No volume groups found
Found Microsoft Windows XP Home Edition on /dev/sda1
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 242
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

CAn anyone help please?


error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 242
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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
marlenejo

Re: Grub customizer fails

Post by marlenejo »

Not an expert but what version of GC are you running ? The current is 5.0.6. It does ask you for your user password ? Any particular reason you didn't move to Mint 18 ?
May be your question is for the GC developer.
I always had good success with the program except for multi-Linux boot systems which you have to know which's in control of the grub loader.
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Grub customizer fails

Post by Pjotr »

Don't use Grub Customizer:
https://sites.google.com/site/easylinux ... Customizer
(item 7, right column)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Grub customizer fails

Post by austin.texas »

Syntax error at line 242
Open /boot/grub/grub.cfg in your text editor and look at line 242.

Code: Select all

gksudo gedit /boot/grub/grub.cfg
OR - let us look:
Boot Mint and install boot-info-script:
Open a terminal: Ctrl+Alt+t
Install boot-info-script:

Code: Select all

sudo apt-get install boot-info-script
Then run the script:

Code: Select all

sudo bootinfoscript --stdout | pastebin
Post the resulting URL link that displays in the terminal.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
Locked

Return to “Installation & Boot”