You are not logged in.

#1 2012-08-23 19:27:50

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

[SOLVED]grub-mkconfig won't work

Hi!
I'm running grub2, and today grub-mkconfig stopped working: this is the error:

sudo grub-mkconfig -o /boot/grub/grub.cfg 
Creazione di grub.cfg...
Trovata immagine linux: /boot/vmlinuz-netbook
Trovata immagine linux: /boot/vmlinuz-3.4.9-1-i686-arch
Trovata immagine initrd: /boot/initramfs-3.4.9-1-i686-arch.img
Found memtest86+ image: /boot/memtest86+/memtest.bin
  No volume groups found
Trovato Arch Linux su /dev/sda3
/usr/sbin/grub-mkconfig: line 269:  8481 Errore di segmentazione ${grub_script_check} ${grub_cfg}.new
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.fatto

This is my /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Archlinux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet rootfstype=ext4 add_efi_memmap logo.nologo fastboot raid=noautodetect libahci.ignore_sss=1 loglevel=3 pcie_aspm=force i915.i915_enable_rc6=3 i915.lvds_downclock=1 ipv6.disable=1 resume=swap:/dev/sda3:0x5d0000 "
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=false

# 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=0
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-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/usr/share/grub/background.png"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

I only set a swapfile to be used by tuxonice, then add the proper line there, in /etc/default/grub.
May be i made some mistakes? I tried to remove the resume= parameter, but it won't work anyway...
Thank you!

Last edited by nierro (2012-08-23 22:32:46)

Offline

#2 2012-08-23 21:07:06

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]grub-mkconfig won't work

So what errors do you get when you remove the resume parameter? (I don't know what this should look like for tuxonice but it doesn't look like my resume parameter but maybe that's just a difference for tuxonice...)

Post error messages in English by passing LC_ALL=C before the command. Silly example, but if I needed to post a long file listing I could use

LC_ALL=C ls -l

(Without that, the month names aren't in English on my machine. smile)


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

#3 2012-08-23 21:36:50

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]grub-mkconfig won't work

The resume parameter is different from the normal resume= because i'm using a swap file smile
Btw, this is the error message without resume parameter, in english:

LC_ALL=C sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-netbook
Found linux image: /boot/vmlinuz-3.4.9-1-i686-arch
Found initrd image: /boot/initramfs-3.4.9-1-i686-arch.img
Found memtest86+ image: /boot/memtest86+/memtest.bin
  No volume groups found
Found Arch Linux on /dev/sda3
error: syntax error.
error: Incorrect command.
error: syntax error.
/usr/sbin/grub-mkconfig: line 269:  5859 Segmentation fault      ${grub_script_check} ${grub_cfg}.new
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

Last edited by nierro (2012-08-23 22:01:33)

Offline

#4 2012-08-23 22:31:46

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]grub-mkconfig won't work

Well, i solved ny the easiest and hardest way: syslinux instead of grub smile.
Thanks for your attenction!

Offline

#5 2012-08-24 00:05:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]grub-mkconfig won't work

I think what you would have needed to do is to take a look at the generated grub.cfg.new and maybe compare it with the old grub.cfg.


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

Board footer

Powered by FluxBB