Solution to error: out of memory when trying to configure Grub in ArchLinux

Yesterday my dear and hated ArchLinux he went to hell itself. It all happened when I updated the libcrypt package which, due to some unknown problem, started to show errors.

Apparently it is due to something related to the version of PacMan + Kernel + LibCrypt. I do not know, the issue is that many applications did not open for me and when I restarted, they never raised the X again.

Looking in the Arch forum the suggestions were the same: Re-install the base system. Neither short nor lazy I started to install following this excellent guide, but the following happened to me:

When trying to configure GRUB with the command:

grub-mkconfig -o /boot/grub/grub.cfg

It threw me the following error:

Generating grub configuration file ... Found linux image: / boot / vmlinuz-linux Found initrd image: /boot/initramfs-linux.img Found memtest86 + image: /boot/memtest86+/memtest.bin error: out of memory. error: syntax error. error: Incorrect command. error: syntax error. Syntax error at line 195 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/ file attached.done

WTF? But as always, the solution it is in not despairing and searching. Sure, I say that now, but yesterday what I wanted was to throw the laptop out the window.

What we must do is (in the same installation) edit the file:

# nano /etc/default/grub

and add the line:


Then we run the command again:

grub-mkconfig -o /boot/grub/grub.cfg

And everything should go smoothly. And nothing, I'm already installing ArchLinux again, so I took advantage of and re-partitioned the disk to give more space to the root (/).

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

27 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Martial del Valle said

    Fortunately these days I am on vacation in the lands of Debian !!

    1.    elav said

      Yesterday I was about to go to those parts .. But going back is not easy.

      1.    Leo said

        You can always try other lands such as Opensuse 😀

    1.    elav said

      Verdaaaaaaaad !!! I didn't remember that post hahaha ..

      1.    let's use linux said

        Haha! FAIL!

    2.    Nebuchadnezzar said

      look to have the answer in your own forum and not consult it or pay attention to it ... that speaks ___ of you Elav ¬¬ '

      1.    elav said

        Yesterday I had the day to search .. ¬_¬
        I put the error on Google and the Arch forum was the first thing that came out. 😛

      2.    elav said

        That is not to tell you that sometimes I have the solution on my own computer (Documentation) and I go out to look for it on the Internet 😀

        1.    Santiago Burgos said

          Damn, but better than you have put it, in these cases it is better than about and not missing information about it, (if you allow me to express myself and with the apologies of the case) precisely this fucking and damn error is the one that It prevented me from finishing installing Arch a couple of months ago and I had no choice but to try Manjaro, but I will try to install again (now that I bought a new hard drive: D) and see how it goes if I get that same error since I will have to do dual boot with Windows (work reasons and a little study)

  2.   Alejandro Gil Cal said

    The same thing happened to me and I also solved it like this, but with the last grub update a couple of days ago that was solved, or at least it did not give me a problem reinstalling Arch from 0.

  3.   Percaff_TI99 said

    I don't know how many megabytes you updated yesterday, in my case it was about 200 and something; but today I have another update of 507 megabytes (kde 4.12.1-1), so far it behaves wonders, but I am not really liking updating so many megabytes in short periods, in short, it is the price of having the latest , thanks for the solution, I'm already forewarned.

    1.    Alejandro Gil Cal said

      Well the truth is that I do not know exactly but it was little, about 160 megabytes, but I also update libreoffice. Anyway the beta of grub that was applied a few days ago you can download it from the project page and compile it yourself.

  4.   ridri said

    These types of failures seem inconceivable to me and also like a month without solving because it already happened to me. I think that when they are bugs that do not allow you to start it should be fixed as soon as possible or not publish the update.

    1.    fluff said

      I totally agree with you, I use archlinux on my desktop pc and it seemed a bit strange that they did not return to the previous grub package considering that said package at least did not fail me.

  5.   Bernard said

    This is one of the things that makes me wonder why am I still using archlinux? I don't know, but whenever the system crashes with an update, it is very entertaining to have to figure out how to solve it.
    And for those who don't like having to deal with dying systems, move on to the more "stable" distros, which is what they are for.

  6.   Leo said

    I use Arch but I have grub managing thanks to a Debian installation in another partition 😛

  7.   itachi said

    I am an Arch user, but I always say that Arch is not a serious distro, it is a toy to play and tinker, but nothing more. When things get serious you have to use other distros.

  8.   Matias said

    That shows how bad these distributions are for people. How does Linux reach the public? I don't believe with Arch .. And he thinks that some recommend it and say that it is the best .. Something that you couldn't update is useless anymore ..

    1.    ridri said

      Arch has always been said that it is made for medium-advanced users not to recommend to someone who does not know linux. Arch could be so much better if it had more quality control over the packaging and manjaro is the proof of that. Right now there are also little problems with firefox that chrases due to some failure in the nvidia driver that I suppose that with the latest nvidia update it will be solved. In a rolling-release there are problems that are manageable by their very nature, such as when there are important changes, but there are others that seem to be the fruit of neglect. He was reading on the Synflag blog how he got in contact with an arch packer who couldn't remember which version of gcc he had compiled xfce on. As Itachi arch says, it is a toy to tinker with and it is very sweet for those who like to try things out.

      1.    Matias said

        Informed! Thanks for the reply.

    2.    Morpheus said

      That's true. But…
      I've been using Arch exclusively on my PC for about 3-4 years. And, despite how "problematic" it is, I never had a problem as serious as the one in the post, which forced me to reinstall the base system (in fact I never have, and that I update daily and install packages from the AUR to mansalva). Paradoxically at work I have to use the old and "robust" (and "for all the public") Windows XP, where I don't even have administrator permission to install anything, where the "dangerous" pages are blocked by the "blessed" proxy . And yet in these 5 years they have had to format and reinstall the OS on this computer at least twice! So Arch is not as "stable" as everyone needs?

      1.    ridri said

        Arch is not what is normally understood in the linux world as a "stable" distro, but quite the opposite since it is updating to the latest available version of all programs and libraries without hardly testing. In addition, the packages are not patched unless it is essential such as the kernel. The rest is usually vanilla version. But despite this arch is quite stable and difficult to break. In arch everything can be fixed thanks to the fact that it does not have any type of specific configuration or scripts that automate processes as in other distros. Allan McRae himself states that it is not recommended to use it in production environments.

  9.   petercheco said

    Better use Debian, Slackware or, failing that, openSUSE and forget about bad vibes 😀

  10.   Alejandro Gil Cal said

    Well, I've been using it for years and I would only change it for Gentoo, as for the grub error, this one more when they gave them to put the signatures were the only problems I have had, but nothing that cannot be solved by reading a little.

  11.   jony127 said

    I find it curious that fellow elav, defender of debian stability (which he used) ends up using Arch and says that it is difficult to go back.

    I understand that using debian stable is a desktop is frustrating (I don't even take it into account because it also fails) because of the outdated applications, kernel, ... that's why in the end I ended up leaving it and going back to my OpenSuse.

    Using debian stable is a desktop deprives you for a long time of new versions of the kernel with its improvements, as well as the latest versions of desktop environments, having to sacrifice in this way the ability to use new options and improvements (I say this too from my own experience).

    And Arch I don't even want it in painting because I'm not willing "for time and desire" to have to be solving problems or run out of a system when I need it most or at the least opportune moment, to me that doesn't really give me any peace of mind.

    The best thing in the end, use a distro that doesn't let you down and has a good balance between stability and currency. A highly recommended option for this OpenSuse, apart from adding some specific repos you can easily update it to the latest version of your desktop, kernel, ... ..
    although I prefer to stay with what comes in the official repos. Then a system update when the new version comes out and running 🙂


  12.   Fernando said

    The same thing happened to me about a month ago, as I couldn't find a solution, I switched to Syslinux.