I used grub-customizer (version 4.0.6) recently to try to change the order of the grub2 menu. Now when I run sudo update-grub at the command-line, I get syntax errors. Before I try to do anything more to set up my grub2, I'd like to fix this, but I'm not sure where to start.
I have three 1-terabyte drives. I'm running Ubuntu MATE 14.04.1 on /dev/sda1/ and Ubuntu 12.04.5 Precise on /dev/sdb1.
/dev/sdc is newly installed (with no OS on it) and will be for data files. On 14.04 I have GNU GRUB version 2.02~beta2-9ubuntu1.
Here is the output of sudo update-grub, when run from within 14.04:
Code:
Generating grub configuration file ...
Found theme: /boot/grub/themes/ubuntu-mate/theme.txt
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found linux image: /boot/vmlinuz-3.13.0-45-generic
Found initrd image: /boot/initrd.img-3.13.0-45-generic
Found linux image: /boot/vmlinuz-3.13.0-44-generic
Found initrd image: /boot/initrd.img-3.13.0-44-generic
Found linux image: /boot/vmlinuz-3.13.0-39-generic
Found initrd image: /boot/initrd.img-3.13.0-39-generic
Found Ubuntu 12.04.5 LTS (12.04) on /dev/sdb1
Found linux image: /boot/vmlinuz-3.13.0-45-generic
Found initrd image: /boot/initrd.img-3.13.0-45-generic
Found linux image: /boot/vmlinuz-3.13.0-44-generic
Found initrd image: /boot/initrd.img-3.13.0-44-generic
Found linux image: /boot/vmlinuz-3.13.0-39-generic
Found initrd image: /boot/initrd.img-3.13.0-39-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 12.04.5 LTS (12.04) on /dev/sdb1
Found linux image: /boot/vmlinuz-3.13.0-45-generic
Found initrd image: /boot/initrd.img-3.13.0-45-generic
Found linux image: /boot/vmlinuz-3.13.0-44-generic
Found initrd image: /boot/initrd.img-3.13.0-44-generic
Found linux image: /boot/vmlinuz-3.13.0-39-generic
Found initrd image: /boot/initrd.img-3.13.0-39-generic
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 637
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
The only file I have -- among all of /etc/default/grub, /etc/grub.d/* and /boot/grub/* -- that has 637 lines in it is the uneditable /boot/grub/grub.cfg.new .
(It's 687 lines long and I can post it if needed.) There is a /boot/grub/grub.cfg file, but it's only 514 lines.
Here's my /etc/default/grub file:
Code:
1 # If you change this file, run 'update-grub' afterwards to update
2 # /boot/grub/grub.cfg.
3 # For full documentation of the options in this file, see:
4 # info -f grub -n 'Simple configuration'
5
6 GRUB_DEFAULT="Ubuntu 14.04"
7 #GRUB_HIDDEN_TIMEOUT="0"
8 GRUB_HIDDEN_TIMEOUT_QUIET="true"
9 GRUB_TIMEOUT="10"
10 GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
11 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
12 GRUB_CMDLINE_LINUX="persistent"
13
14 # Uncomment to enable BadRAM filtering, modify to suit your needs
15 # This works with Linux (no patch required) and with any kernel that obtains
16 # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
17 #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
18
19 # Uncomment to disable graphical terminal (grub-pc only)
20 #GRUB_TERMINAL="console"
21
22 # The resolution used on graphical terminal
23 # note that you can use only modes which your graphic card supports via VBE
24 # you can see them in real GRUB with the command `vbeinfo'
25 #GRUB_GFXMODE="640x480"
26
27 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
28 #GRUB_DISABLE_LINUX_UUID="true"
29
30 # Uncomment to disable generation of recovery mode menu entries
31 #GRUB_DISABLE_RECOVERY="true"
32
33 # Uncomment to get a beep at grub start
34 #GRUB_INIT_TUNE="480 440 1"
35
36 GRUB_SAVEDEFAULT="false"
37 GRUB_THEME="/boot/grub/themes/ubuntu-mate/theme.txt"
38 export GRUB_COLOR_NORMAL="light-gray/black"
39 export GRUB_COLOR_HIGHLIGHT="magenta/black"
40
41 GRUB_FONT="/boot/grub/unicode.pf2"
I'll continue to read up on GRUB2, but thanks for ideas how to fix this in the meantime.
Bookmarks