You are not logged in.
Pages: 1
Hello.
I would like to ask You for one thing - whenever i want to generate grub.cfg with
# grub-mkconfig -o /boot/grub/grub.cfgI have error saying:
[firekage@Arch_desktop /boot/grub]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generowanie grub.cfg...
Znaleziono obraz Linuksa: /boot/vmlinuz-linux
Znaleziono obraz initrd: /boot/initramfs-linux.img
No volume groups found
Znaleziono Ubuntu 12.04.2 LTS (12.04) na /dev/sda1
Znaleziono Slackware Linux (Slackware 14.0) na /dev/sdb1
Znaleziono Slackware Linux (Slackware 13.37.0) na /dev/sdd2
Znaleziono Windows Vista (loader) na /dev/sdf1
Znaleziono Ubuntu 12.04.2 LTS (12.04) na /dev/sdg1
błąd: syntax error.
błąd: Incorrect command.
błąd: syntax error.
Błąd składni w linii 239
W wygenerowanym pliku konfiguracyjnym GRUB-a wykryto błędy składni.
Proszę się upewnić, że w plikach /etc/default/grub oraz /etc/grub.d/*
nie ma błędów lub wypełnić raport o błędzie z załączonym plikiem /boot/grub/grub.cfg.new.gotowe
[firekage@Arch_desktop /boot/grub]$ Could somebody help me? I can't generate grub.cfg at all, it worked after fresh install, now it doesen't i thing that it is related to virtualbox because on all my linux system, when i install it, i can't generate it. Don't know what to do, how to fix it.
It says that error is in line 239, ok, but in "what" line, line of what file?
Offline
With this error grub.cfg is not created at all.
Offline
LANG=C please
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
LANG=C please
What do You mean? When i type LANG=C into terminal, there is no output. You mean that?
[firekage@Arch_desktop /etc]$ locale -a
C
POSIX
pl_PL.utf8and
[firekage@Arch_desktop /etc]$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=Last edited by firekage (2013-11-01 12:58:44)
Offline
Put LANG=C before the command so that you generate English errors to post here. I'm sure I'm not the only one who cannot understand grub's output when it talks Polish.
EDIT: I often don't understand grub anyway but at least give me a chance!
EDIT 2: For example this is bad:
$ date
Sad 2 Tach 04:08:42 GMT 2013This is good:
$ LANG=C date
Sat Nov 2 04:08:40 GMT 2013Last edited by cfr (2013-11-02 04:09:40)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Please read the Forum Etiquette:
https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
Ok, sorry. I did that:
[firekage@Arch_desktop ~]$ sudo LANG=C grub-mkconfig -o /boot/grub/grub.cfg.bak.eng
[sudo] password for firekage:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
No volume groups found
Found Ubuntu 12.04.2 LTS (12.04) on /dev/sdb1
Found Slackware Linux (Slackware 14.0) on /dev/sdc1
Found Slackware Linux (Slackware 13.37.0) on /dev/sdd2
Found Windows Vista (loader) on /dev/sdf1
Found Ubuntu 12.04.2 LTS (12.04) on /dev/sdg1
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 236
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.bak.eng.new file attached.done
[firekage@Arch_desktop ~]$ This is generated grub.cfg on pastebin:
I would ask for one thing more: if there is error, like mentioned above, does that mean that if i generate it (for an example: i don't have grub.cfg at all) it won't be stored or used to boot Arch because it is being generated with error?
Last edited by firekage (2013-11-04 11:04:21)
Offline
Well, have you done what the error message suggests and looked through those files (at line 236) to see what the error is, or are you expecting someone to do it for you?
Offline
I told You that i only post when there either no solution over the net, ArchWiki, or solution doesen't work for me, that is why i ask on te forum that is a place for it.
Of course that i checked it. This error showed up after (i'm not quite sure) installation (i think that this software is the cause of it) of virtualbox because this error is on all my linux systems (on ubuntu, kubuntu etc). Line 236 says:
linux /boot/vmlinuz root=UUID ro vt.default_utf8=0 vga = normal append = "resume=UUID=9a4b8b62-9163-4d61-b9af-4d4c75e29fee and i don't see that something is wrong with it because before installing of virtualbox grub.cfg had not shown me any warnings, also after installation of Arch was fine. Also, this waring is generated while making og grub.cfg - i can delete it, make it and warning show up again so the answer to this is not "fixing" grub.cfg but rather something in Arch, os-prober etc.
Also, i thing that You haven't read pastebin enough carefully because few lines belov there is another Slackware distribution, 13.37 and there is the same line without error...and line is exacly the same as one from Slackware 14. So, in other word: for one Slackware the same line is ok, for second is not. So: is there a error in this line or there is not? Here is the line 249
linux /boot/vmlinuz root=UUID ro vt.default_utf8=0 vga = normal append = "resume=UUID=9a4b8b62-9163-4d61-b9af-4d4c75e29feethe same line! The same things are there, even the same swap device. Only difference is that on 14.00 section is being ended with 2 } while on 13.37 there is only 1 }
Last edited by firekage (2013-11-04 22:10:33)
Offline
Well... that line doesn't look right to me at all (neither do).
Part of system administration is not only searching the internet for help and answers, but also reading the error messages to determine where you might look to find things that have gone wrong. In this case you have looked at the line in question, but have done nothing more with that info other than compared it to other lines in the config file. You need to investigate why this might be wrong, and at the very least... test to see if the line in question works!
Offline
Well, if for some reason one line is wrong, one line is right, and system shows error only on one line so i think that...there is problem with system, not the line because Slackware, both of them, works ok. Also, i'm not an programist to check "code" for it, i ask for and advice that will help or will be helpful, not for being laughed. Also, this line is generated by Arch, no other systems. BTW - i have this problem with different linuxs. I also posted similar topic on Ubuntu forum because Ubuntu have the same problem:
http://ubuntuforums.org/showthread.php?t=2124206&page=5
The said that this is propably bug in os-prober.
Last edited by firekage (2013-11-04 23:07:48)
Offline
You don't have to be a "programist" to have some idea that the kernel command line arguments in those particular lines are not valid. The kernel command line (like the regular command line) uses whitespace as the default field separator, so when you have things like "vga = normal" it will be treated as three separate arguments instead of the one "vga=normal".
Also, no one here is laughing at you. But use of Arch Linux requires work to keep going, so I'm not saying you are wrong to post your questions here, but rather that continued investigation needs to happen on your part as you seek help here. You looked at the line in question, but moving on to try to understand why that line might be wrong would be the next logical step. We're here to help you, but hopefully it is partly to help you help yourself.
Finally, I'm a bit confused as you seem to go back and forth saying that this is a problem only with Arch Linux then sometimes that it happens in other systems as well. Can you clarify?
Offline
Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files
What did you find?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
BTW in case the files got modified somehow, it might be worth just reinstalling GRUB:
pacman -S grubOffline
Also I am sure this is unrelated but the current grub2 that installs on a fresh install is missing the language files *.mo. There was a bug report filed and package was updated but has been in testing for awhile[1]. In case you see an error right after grub boots it is complaining about the missing locale file.
Offline
You don't have to be a "programist" to have some idea that the kernel command line arguments in those particular lines are not valid. The kernel command line (like the regular command line) uses whitespace as the default field separator, so when you have things like "vga = normal" it will be treated as three separate arguments instead of the one "vga=normal".
Also, no one here is laughing at you. But use of Arch Linux requires work to keep going, so I'm not saying you are wrong to post your questions here, but rather that continued investigation needs to happen on your part as you seek help here. You looked at the line in question, but moving on to try to understand why that line might be wrong would be the next logical step. We're here to help you, but hopefully it is partly to help you help yourself.
Finally, I'm a bit confused as you seem to go back and forth saying that this is a problem only with Arch Linux then sometimes that it happens in other systems as well. Can you clarify?
This problem occured to me on different Linux distros, but on all of them i have Virtualbox. I thing that it is somewhat related to it.
Also, you posted about "three separated arguments" but the problem is that these lines are generated by system, not me. If this would be my mistake, i would fix it, but i haven't done anything with it to be corrupted or wrong - it is generated by Arch (or Ubuntu, and on all of them, this error with generating grub shows).
I posted that this is now only for Arch because i don't use other os exept Arch. I had it on other linux systems.
BTW - maybe some misunderstanding is related to my english, not native language for me. Also, not all regarding Arch, or linux in general, will be understanable for me because of english tech language.
I would like thank to all of You, thank You for Your time and advices. As i said earlier, i read a lot about this because it's been my hobby since the first instalation of linux and i like it but i'm not able to know everythig, check everything or find all that could solves my problems.
Last edited by firekage (2013-11-05 21:52:54)
Offline
firekage wrote:Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* filesWhat did you find?
I will dive into it when i would enough time. Right now, because of my work hours and daily routines, can't say uch about it because i don't have right amount of time to spent on it. Will post as soon as possible with my findings.
Offline
BTW in case the files got modified somehow, it might be worth just reinstalling GRUB:
pacman -S grub
I did that several times, but result is always the same.
Offline
I'm getting a similar error, I've tried uninstalled and reinstalling grub but the error persists.
tjuh ~ $ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 192
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
tjuh ~ $Funny thing is the grub.cfg.new that's created works just fine, I deleted the old grub.cfg and renamed grub.cfg.new to grub.cfg and I could boot up just fine.
Offline
Did you take the advice in the error message?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Offline
Pages: 1