You are not logged in.

#1 2013-12-27 21:24:12

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

[SOLVED]When trying to generate grub.cfg - it gives errors

Hey! I am really new to arch linux and I'm up to step 2.12.1.2 GRUB  in the  Beginner's Guide

When I run

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

, I get this output:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  No volume groups found
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 164
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.cfg.new file attached.done

Thanks, any help much appriciated. I've been on google, trying to find something similar, but most of other people's problems are different. Is this normal? Am I the only one? D:
Please no RT*M replies. If you think I should've tried harder then could you please point me to a good wiki that explains this?
Again thanks!
smile

Last edited by gogobebe2 (2013-12-28 03:39:45)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#2 2013-12-27 21:31:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Not sure about the lvm messages, but the Out of Memory error message has been extensively covered over the past weeks:

If the solution offered in those threads/bug reports doens't help, then please post back with updated output (if it has changed).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-12-27 21:31:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Ummm, are you 100% sure you searched the forum?

Offline

#4 2013-12-27 21:44:33

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

@WorMzy

At first I thought my post was removed for some reason. Then I realized this was another thread. Crazy. This grub thing is worse noise than /usr/bin update almost. Seems like it should / could be worthy of Arch Linux home page front page news since it affects everyone just saying.

Offline

#5 2013-12-27 21:48:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

dodo3773 wrote:

This grub thing is worse noise than /usr/bin update almost. Seems like it should / could be worthy of Arch Linux home page front page news

Suggest it on the ML.

dodo3773 wrote:

since it affects everyone just saying.

I'm using syslinux ;P

Offline

#6 2013-12-27 21:49:17

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Thanks guys. I added

GRUB_DISABLE_SUBMENU=y

Now how do I check if the erros are still there?


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#7 2013-12-27 21:50:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

I'm not sure what do you mean. Did you rerun 'grub-mkconfig -o /boot/grub/grub.cfg'?

Offline

#8 2013-12-27 21:50:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

dodo3773 wrote:

@WorMzy

At first I thought my post was removed for some reason. Then I realized this was another thread. Crazy.

Hah, nah, I shamelessly stole your post from another topic. tongue

dodo3773 wrote:

Seems like it should / could be worthy of Arch Linux home page front page news since it affects everyone just saying.

Well, I wouldn't say it affects everyone.. if the numbers are to be believed, it only affects ~22% of Arch installs.

Last edited by WorMzy (2013-12-27 21:51:02)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2013-12-27 21:53:02

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Geesh all the cool kids are using Syslinux I better look into it some day tongue

Offline

#10 2013-12-27 21:55:08

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Ok I re-ran:

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

and this happened:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  No volume groups found
done

[Edit]: Time to search the forums hehe tongue

Last edited by gogobebe2 (2013-12-27 21:56:08)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#11 2013-12-27 21:59:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

gogobebe2 wrote:

Ok I re-ran:

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

and this happened:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  No volume groups found
done

[Edit]: Time to search the forums hehe tongue

And the $searchengine. tongue

http://unix.stackexchange.com/questions … n-lvm-disk


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2013-12-27 22:08:29

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

WorMzy wrote:
gogobebe2 wrote:

Ok I re-ran:

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

and this happened:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  No volume groups found
done

[Edit]: Time to search the forums hehe tongue

And the $searchengine. tongue

http://unix.stackexchange.com/questions … n-lvm-disk

Ok I read that link you gave me and he said:

The current error is non-critical as
arch-chroot /mnt grub-install --target=i386-pc --recheck /dev/$DEV
goes smoothly and I can boot from $DEV.
...
What does this do? I don't want to run something that I don't understand yet.

I've tried the systemctl start lvmetad.service / lvmetad
and I've tried removing os-prober. Still gives the same error.
I've just re-ran pacman -S os-prober and now I am off to google again smile

Last edited by gogobebe2 (2013-12-27 22:10:51)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#13 2013-12-27 23:01:09

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

I think that means that the grub.cfg is generated despite the lvmetad warnings, and you will be able to boot the system normally.  Is this true on your system?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2013-12-28 01:33:41

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

WorMzy wrote:

I think that means that the grub.cfg is generated despite the lvmetad warnings, and you will be able to boot the system normally.  Is this true on your system?

Should I try and boot now and see if it works??


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#15 2013-12-28 01:59:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

gogobebe2 wrote:
WorMzy wrote:

I think that means that the grub.cfg is generated despite the lvmetad warnings, and you will be able to boot the system normally.  Is this true on your system?

Should I try and boot now and see if it works??

It's the only way to tell...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2013-12-28 02:01:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

gogobebe2,

First off, let me say, Welcome to Arch Linux.  I had missed your signature before; having read that, I now see you are one of our younger members.  I am always impressed when relatively young men and women take on the challenge that is Arch.  In your first post in this thread, you had asked that we not provide RTFM type responses.  Trust me, that won't dissuade us from telling you to RTFM tongue

One of the things you will find out about Arch is that we do not lead newbies by the hand.  As to whether you should "try and boot now and see if it works?" is going to elicit only one response -- TRY IT!.  So what if it does not work -- you will have learned something valuable.  It is not the end of the world if it fails, you just need to use a chroot environment from the install media and fix it.  You can find that procedure in the wiki.  We would be happy to walk you through that more than providing copy and paste solutions to your immediate problems.

No doubt you are a bright lad (lass?) who has the ability to do this -- reach for the brass ring and just do it.  I can speak for the community and say we are happy to help when you get in trouble, but please take the opportunity and avail yourself of all the resources hereabout before you give up and ask a question that has already been answered.  Soon, you will be contributing back smile  You may also want to read the link in my signature.

Edit:  As usual, Jasonwryan beat me to the punch; but I think I was typing longer smile

Edit2:  By the way, the link in your signature links to an expired page

Last edited by ewaller (2013-12-28 02:11:23)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2013-12-28 02:16:56

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

jasonwryan wrote:
gogobebe2 wrote:
WorMzy wrote:

I think that means that the grub.cfg is generated despite the lvmetad warnings, and you will be able to boot the system normally.  Is this true on your system?

Should I try and boot now and see if it works??

It's the only way to tell...

smile Ok I've rebooted and... it stops at Verifting DMI Pool Data.
I then found this: Computer stops at Verifying DMI Pool Data
And one of the causes is: Boot devices not set properly and Corrupt boot files on the computer.
So back to the drawing board.


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#18 2013-12-28 03:01:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Is this a BIOS or UEFI system?  I have to admit I am clueless as to UEFI.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#19 2013-12-28 03:14:01

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

BIOS
I just switched it to boot from the hardrive instead of CD and then nothing happens and it just sits there saying verifying DMI Pool Data........
I'm going to re-install grub and delete all the config files and try again.


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#20 2013-12-28 03:40:24

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Have a look at the new title!!!!!!!!!!!!!
smile smile smile smile smile smile smile

Last edited by gogobebe2 (2013-12-28 04:33:09)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#21 2013-12-28 03:47:49

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

For others with the same problem:
I un-installed grub and os-prober. Rebooted. Mounted the partitions again, issued:

systemctl start lvmetad

, chrooted back, re-installed grub, Made sure not to install os-prober (because I saw somewhere that someone with the same problem didn't and it worked for him/her), ran:

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

with no errors (YAY), did:

grub-install --target=i386-pc --recheck /dev/sda

, exited out of chroot, unmounted /mnt partitions and then rebooted.

Last edited by gogobebe2 (2013-12-28 03:48:41)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#22 2013-12-28 03:56:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

gogobebe2 wrote:

Have a look at the new title!!!!!!!!!!!!!
smile smile smile smile smile smile smile
big_smile big_smile big_smile big_smile big_smile big_smile big_smile
smile smile smile smile smile smile smile
big_smile big_smile big_smile big_smile big_smile big_smile big_smile
smile smile smile smile smile smile smile
big_smile big_smile big_smile big_smile big_smile big_smile big_smile
smile smile smile smile smile smile smile
big_smile big_smile big_smile big_smile big_smile big_smile big_smile

Way to go!  You will do well here.   (But you may want to be a little less celebratory next time tongue )

Last edited by ewaller (2013-12-28 03:57:21)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#23 2013-12-28 04:24:21

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

ewaller wrote:

Way to go!  You will do well here.

Thanks and

ewaller wrote:

But you may want to be a little less celebratory next time tongue

Lol big_smile


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#24 2013-12-28 20:16:55

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

ewaller wrote:

Edit2:  By the way, the link in your signature links to an expired page

Yeah I gave the website to someone named Oxide - he got the rank of Owner and I got the rank of Founder on the websitea - It is for a Minecraft server that I had made (It ws pretty succesful and rated the first on a website called planet minecraft in the whole of New Zealand. I earned $200 in profit from people donating for special ranks on the server like VIP and Elite-VIP big_smile)


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

#25 2013-12-29 08:22:28

gogobebe2
Member
Registered: 2013-12-25
Posts: 15

Re: [SOLVED]When trying to generate grub.cfg - it gives errors

Hello, I've just come to say I've got everything working. Here's my setup:
http://www.enlightenment.org/ss/e-52bfd … 344378.png
Thanks for the help


I am a 15 year old who loves computer science. Specifically machine learning and Linux!
https://github.com/gogobebe2
More about me

Offline

Board footer

Powered by FluxBB