You are not logged in.
The new update of grub brings the following error when running grub-mkconfig:
error: out of memory
error: syntax error
error: Incorrect command
Syntax error in line 164
So i looked for line 164, which is:
### END /etc/grub.d/60_memtest86+ ###
The same line was also present in my older grub config, so i have no idea what is wrong.
I am using btrfs for my whole system, but that shouldnt be the Problem.
What i also noticed: When i force the system to use the grub.cfg.new file, i have now 3 entries to boot, instead of two. Standard, fallback and a new entry called "Arch Linux" which is identical to the standard entry.
Edit: Fixed by adding:
# fix broken grub.cfg gen
GRUB_DISABLE_SUBMENU=y
in the /etc/default/grub file.
Last edited by tumas (2013-12-09 17:17:40)
Offline
OK i just found: https://bugs.archlinux.org/task/38041?p … tring=grub
Guess this is going to solve the problem.
Last edited by tumas (2013-12-09 17:16:31)
Offline
thx tumas ,
now grub well done :-)
Offline
This seems like the kind of thing that should be in the Arch News feed. There was no indication in the pacman log that the grub upgrade was going to break things without this change. :-(
Offline
Today I did a "pacman -Syu" and grub package was updated :
grub-2.00.5086-1 ---> grub 1:2.00.1282.g5ae5c54-1
so I run 2 scripts in order to reinstall grub and update configs files :
- grub-install --recheck /dev/sdc
output : "Installation finished. No error reported."
then I want to regenerate the grub.cfg file :
grub-mkconfig -o /boot/grub/grub.cfg
and I see errors messages :
Generating grub configuration file ...
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 194
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
so it's seems that grub package has a problem, something is wrong with the file grub-mkconfig
my system: archlinux 64 bits
4 Gb ram
Steps to Reproduce:
- you must have already a grub installation ( package grub-2.00.5086-1 )
- then do a "pacman -Syu" in order to have the last grub package ( grub 1:2.00.1282.g5ae5c54-1 )
- reinstall grub ( grub-install --recheck /dev/sdX )
- regenerate the gruf.cfg file ( grub-mkconfig -o /boot/grub/grub.cfg )
- error messages will be displayed
Offline
Offline
ok thanks for the link
Offline
Merged " [Grub] errors during execution of "grub-mkconfig" from grub" with main thread
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
This is my first time with Arch Linux, and I'm trying to set up a system as follows:
sda - NTFS storage
sdb - Arch/W8 dual (BIOS, not UEFI)
sdc - ext4 storage
I've cut my boot drive into partitions for W8 and Arch (single root partition) and I've installed Arch following the beginner's guide. However, when I attempt to generate grub.cfg I receive this output (link). When I boot, GRUB lists only Linux and selecting it results in the error "kernel must be loaded before booting".
I'm unsure as to what is happening. AFAIK there is no W8 loader on sdc (I wiped the drive) and Windows should not be hibernating (line 8).
Offline
Take a look at this thread:
Offline
Merging...
Offline
Much appreciated!
Offline
I'm not certain how useful it is to have a thread that has two links that link back to itself without actually providing information on how to fix the problem.
Registered Linux User #565082
Offline
I'm not certain how useful it is to have a thread that has two links that link back to itself without actually providing information on how to fix the problem.
I don't know what happened to those links, but the fix is simply to add those line at the end of /etc/default/grub:
# Fix broken grub.cfg gen
GRUB_DISABLE_SUBMENU=y
M/B: Asus M5A97 LE R2.0 CPU: AMD FX(tm)-6100 Six-Core Processor GPU: XFX R9 390 DD Black Edition RAM: Kingston HyperX Beast DDR3 1866 2X4GB SSD: Crucial M4 128GB SATA 3
CPU and GPU are watercooled by Ibercool kit.
Offline
slowpoke1584 wrote:I'm not certain how useful it is to have a thread that has two links that link back to itself without actually providing information on how to fix the problem.
I don't know what happened to those links, but the fix is simply to add those line at the end of /etc/default/grub:
# Fix broken grub.cfg gen GRUB_DISABLE_SUBMENU=y
Apreciate it. I can't say how many threads I have seen that were about exactly what I was trying to troubleshoot, marked as solved, and no explanation given as to how.
Registered Linux User #565082
Offline
I was lucky I saw it this morning. I'm glad I could "help" somehow
M/B: Asus M5A97 LE R2.0 CPU: AMD FX(tm)-6100 Six-Core Processor GPU: XFX R9 390 DD Black Edition RAM: Kingston HyperX Beast DDR3 1866 2X4GB SSD: Crucial M4 128GB SATA 3
CPU and GPU are watercooled by Ibercool kit.
Offline
slowpoke1584 wrote:I'm not certain how useful it is to have a thread that has two links that link back to itself without actually providing information on how to fix the problem.
I don't know what happened to those links, but the fix is simply to add those line at the end of /etc/default/grub:
# Fix broken grub.cfg gen GRUB_DISABLE_SUBMENU=y
Wow , you just saved me a day. *salute*
Offline
Thanks!
IMO this sort of thing needs fixing if ever arch is to be taken seriously as a distro. The installation guide is out of date and the config file needs to be correct by default.
The networking guide even still says eth0 even though it's been something like enp0s1 for several months...
Last edited by Cloudane (2013-12-23 01:10:33)
Offline
The wiki is a community project. It gets updates and expanded when somebody takes time to edit it.
Sadly, few people do.
Offline
Hi,
New to Arch.
Having the same problem as expected. My question is when and how do I update the /etc/default/grub file. Given that I am in the middle of the installation. Sorry to be a bit dim.
Thanks
Offline
Hi,
New to Arch.
Having the same problem as expected. My question is when and how do I update the /etc/default/grub file. Given that I am in the middle of the installation. Sorry to be a bit dim.
Thanks
Hi and welcome
It is probably the best to edit the file right after u installed "grub". During the installation of grub the "/etc/default/grub-file" will already be created. After u changed the file, u should run "grub-mkconfig -o /boot/grub/grub.cfg", followed by "grub-install ...."
Last edited by tumas (2013-12-24 08:30:48)
Offline
Hi,
Just so I am absolutely clear.
My install sequence is :-
pacstrap -i /mnt base
pacstrap /mnt grub-bios
genfstab -U -p /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
BUG FIX
[ADD TO nano /etc/default/grub at the bottom “GRUB_DISABLE_SUBMENU=y”
=================================================================
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
passwd
exit
umount /mnt/home
umount /mnt
systemctl reboot
I tried this but it would not reboot. But the everything seemed to install ok and the FIX cured the error problem.
So I am a l unsure of what I am doing wrong.
Thanks
Offline
Well, do u have UEFI or normal BIOS? Depending on that, u probably should add a --target=xxx option for the "grub-install-command". And since this is getting a little bit "Off-Topic" here, u maybe want to create a new thread for ur problem (if it still exists)
Offline
Just wanted to say thanks.. I've just installed my first Arch base tonight, and the first attempt failed because of this bug. After reading this thread, the second attempt went smoothly!
Offline
Made my day....
Offline