• \[SOLVED\] Grub error: out of memory


    Hi. Anyone tell me why I am getting these errors.

    [[email protected] ~]$ sudo os-prober  
    [sudo] password for frankenstein:   
    /dev/cdrom: open failed: No medium found  
    No volume groups found  
    /dev/sda1:openSUSE 13.1 (x86\_64):SuSE:linux  
    /dev/sda2:Ubuntu 13.10 (13.10):Ubuntu:linux  
    /dev/sda6:Manjaro Linux (0.8.8):ManjaroLinux:linux  
    /dev/sda7:Linux Mint 15 Olivia (15):LinuxMint:linux  
    [[email protected] ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg  
    Generating grub configuration file ...  
    Found background: /boot/grub/Mint-Lake-Wallpaper.jpg  
    Found linux image: /boot/vmlinuz-linux  
    Found initrd image: /boot/initramfs-linux.img  
    No volume groups found  
    Found openSUSE 13.1 (x86\_64) on /dev/sda1  
    Found Ubuntu 13.10 (13.10) on /dev/sda2  
    Found Manjaro Linux (0.8.8) on /dev/sda6  
    Found Linux Mint 15 Olivia (15) on /dev/sda7  
    error: out of memory.  
    error: syntax error.  
    error: Incorrect command.  
    error: syntax error.  
    Syntax error at line 395  
    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
    

    Here is the curent grub file.
    Unless I missed something, I don’t see any errors.

    GRUB\_DEFAULT=0  
    GRUB\_TIMEOUT=10  
    GRUB\_DISTRIBUTOR="Arch"  
    GRUB\_CMDLINE\_LINUX\_DEFAULT=""  
    GRUB\_CMDLINE\_LINUX=""  
      
    \# Preload both GPT and MBR modules so that they are not missed  
    GRUB\_PRELOAD\_MODULES="part\_gpt part\_msdos"  
      
    \# Uncomment to enable Hidden Menu, and optionally hide the timeout count  
    \#GRUB\_HIDDEN\_TIMEOUT=5  
    \#GRUB\_HIDDEN\_TIMEOUT\_QUIET=true  
      
    \# Uncomment to use basic console  
    GRUB\_TERMINAL\_INPUT=console  
      
    \# Uncomment to disable graphical terminal  
    \#GRUB\_TERMINAL\_OUTPUT=console  
      
    \# The resolution used on graphical terminal  
    \# note that you can use only modes which your graphic card supports via VBE  
    \# you can see them in real GRUB with the command \`vbeinfo'  
    GRUB\_GFXMODE=auto  
      
    \# Uncomment to allow the kernel use the same resolution used by grub  
    GRUB\_GFXPAYLOAD\_LINUX=keep  
      
    \# Uncomment if you want GRUB to pass to the Linux kernel the old parameter   
    \# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"   
    \#GRUB\_DISABLE\_LINUX\_UUID=true  
      
    \# Uncomment to disable generation of recovery mode menu entries  
    \#GRUB\_DISABLE\_RECOVERY=true  
      
    \# Uncomment and set to the desired menu colors. Used by normal and wallpaper   
    \# modes only. Entries specified as foreground/background.  
    \#GRUB\_COLOR\_NORMAL="light-blue/black"  
    \#GRUB\_COLOR\_HIGHLIGHT="light-cyan/blue"  
      
    \# Uncomment one of them for the gfx desired, a image background or a gfxtheme  
    GRUB\_BACKGROUND="/boot/grub/Mint-Lake-Wallpaper.jpg"  
    \#GRUB\_THEME="/path/to/gfxtheme"  
      
    \# Uncomment to get a beep at GRUB start  
    \#GRUB\_INIT\_TUNE="480 440 1"  
      
    \#GRUB\_SAVEDEFAULT="true"
    

    Here is the 41_custom file from /etc/grub

    \#!/bin/sh  
    cat <<EOF  
    if [ -f \\${config\_directory}/custom.cfg ]; then  
    source \\${config\_directory}/custom.cfg  
    elif [ -z "\\${config\_directory}" -a -f \\$prefix/custom.cfg ]; then  
    source \\$prefix/custom.cfg;  
    fi  
    EOF
    

    …and from the 40_custom file.

    \#!/bin/sh  
    exec tail -n +3 $0  
    \# This file provides an easy way to add custom menu entries. Simply type the  
    \# menu entries you want to add after this comment. Be careful not to change  
    \# the 'exec tail' line above
    

    Right now, Linux Mint is handling the boot for grub. I just wanted to update the grub config within Antergos. Though I don’t think that I need to. But did anyways. Or is it necessary to update grub from within Antergos even though Mint is handling the boot for grub?

    EDIT: When I did have Antergos run the grub for booting, I had a background image set up. Forgot about it and removed it as Antergos doesn’t need the background image anylonger.

    New terminal commands followed; however, am still getting errors. This time it is on line 395. Up above it is line 385.

    [[email protected] grub]$ sudo grub-mkconfig -o /boot/grub/grub.cfg  
    Generating grub configuration file ...  
    Found linux image: /boot/vmlinuz-linux  
    Found initrd image: /boot/initramfs-linux.img  
    No volume groups found  
    Found openSUSE 13.1 (x86\_64) on /dev/sda1  
    Found Ubuntu 13.10 (13.10) on /dev/sda2  
    Found Manjaro Linux (0.8.8) on /dev/sda6  
    Found Linux Mint 15 Olivia (15) on /dev/sda7  
    error: out of memory.  
    error: syntax error.  
    error: Incorrect command.  
    error: syntax error.  
    Syntax error at line 385  
    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
    

    [b:37td2k28] EDIT: after posting[/b:37td2k28] I have gone into /boot/grub/grub.cfg and tried to get to line 385 and line 395 by selecting Search>Go to line. I input the appropriate line #'s but all I get is a red [/color:37td2k28]color. Most likely signifying that such lines are unavailable. Unless I am mistaken about that.

  • This post is deleted!
  • The errors may (or may not) have something to do with your GRUB background image.

    This is what mine says and it gives a nice default GRUB background image:

    [list:134br8ir]# Uncomment one of them for the gfx desired, a image background or a gfxtheme
    GRUB_BACKGROUND=/usr/share/grub/background.png
    GRUB_THEME=/boot/grub/themes/starfield/theme.txt[/list:u:134br8ir]

    I suggest you change those two lines and then try rebuilding your GRUB configuration.

    If you still have problems, many seem to say that this makes things right:
    [url:134br8ir]http://sourceforge.net/p/boot-repair-cd/home/Home/[/url:134br8ir]

    Hope this helps, and please keep us informed.

    In God's love,
    †MaNNa <{{{\>< …to You all thanks and glory Lord Yeshua!

    And Jesus prayed to The Father, "And this is the way to ete…

  • Hi MaNNa: I guess you must have posted while I was editing my post.

    The ‘[b:1cp5u87r]EDIT after posting[/b:1cp5u87r]’ [i:1cp5u87r](near the bottom of my first post)[/i:1cp5u87r] is the newest information to my above post. I opened up the grub.cfg file. However, after going to [u:1cp5u87r]Search> Go to line[/u:1cp5u87r]… and inputting those to line numbers all I got in the Search box is red color. It does not go to the appropriate line numbers selected. Difficult to tell which and where the line numbers are within the grub.cfg.

  • Check this topic:
    [https://bbs.archlinux.org/viewtopic.php?pid=1357811][0]">[https://bbs.archlinux.org/viewtopic.php?pid=1357811][1]

    Fixed by adding:

    \# fix broken grub.cfg gen  
    >GRUB\_DISABLE\_SUBMENU=y
    

    in the /etc/default/grub file.
    : <a href=
    [1]: https://bbs.archlinux.org/viewtopic.php?pid=1357811

  • This is a bug in grub as m110s has pointed out. If you are using grub from your Mint install to manage your multi-boot setup then there is no need to make changes to the other OS’s you have installed. The only one that matters is the one you decide to place “in-charge”

    Cheers!

  • Thanks @m110s for posting that fix. I’m adding this to my help links.

    In God's love,
    †MaNNa <{{{\>< …to You all thanks and glory Lord Yeshua!

    And Jesus prayed to The Father, "And this is the way to ete…

  • Hi and thanks for posting the link to the arch forums. Adding the suggested text to the grub file did not result in further errors.

    As far as I’m concerned, this issue for me is resolved. And yes, lots.0.logs, you are correct as Mint is really the only distro (since it’s handling the booting/enabling of grub to show up) is the only distro that I really need to concern myself with.

    Thanks again as I appreciated your help.

Posts 8Views 2843
Log in to reply