Announcement

News: Chakra 2013.03 Benz Released: Release Notes - Download - A good place to start: Beginner's Guide - For pasting any code/info please use paste.chakra. Please read Forum Etiquette.

#1 2012-02-14 12:20:37

robyshot
Member
Registered: 2011-02-04
Posts: 49

[solved]Grub sed expression error

Hello

i'm having an error when updating grub -it happens with burg too- but im using grub actually)

when i do a update-grub

i get this

Updating /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  No volume groups found
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda4
Found openSUSE 12.1 (x86_64) on /dev/sda8
Setup resume hook
Adding swap partition /dev/zram0
/dev/zram1
/dev/zram2
/dev/zram3
sed: espressione -e #1, carattere 74: comando `s' non terminato

the last line in english could be

sed:expression -e #1 character 74: command `s' not terminated

]

Last edited by robyshot (2012-02-17 21:47:17)

Offline

#2 2012-02-17 11:40:05

robyshot
Member
Registered: 2011-02-04
Posts: 49

Re: [solved]Grub sed expression error

at least is there a way to reset(erasing?) all grub config and generated files and start from zero?

Offline

#3 2012-02-17 12:49:37

jmc
[Chakra Developer]
From: Roma, Italy
Registered: 2010-09-26
Posts: 1,550
Website

Re: [solved]Grub sed expression error

sudo rm -rf /boot/grub

Then, make sure you run update-grub again.

Offline

#4 2012-02-17 13:50:05

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved]Grub sed expression error

You have more than one swap-partition on your PC. This confuses my script. Try this instead:

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

instead of -s you can use --skip-resume too. All is related to this patch

Offline

#5 2012-02-17 21:48:17

robyshot
Member
Registered: 2011-02-04
Posts: 49

Re: [solved]Grub sed expression error

thank you philm, it is ok now,but should i use this command from now on or can i use update-grub as usual?

Offline

#6 2012-03-13 23:06:17

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved]Grub sed expression error

update-grub always tries to search for the swap-partition. It seems you have more than one swap. The -s switch only disables that search.  update-grub just calls followed cmd:

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

Simply edit update-grub and add -s to that line.

Offline

Board footer

Powered by FluxBB 1.4.8