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)
at least is there a way to reset(erasing?) all grub config and generated files and start from zero?
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
thank you philm, it is ok now,but should i use this command from now on or can i use update-grub as usual?
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.