Author Topic: grub fails to update  (Read 1235 times)

Offline carlo

  • Full Member
  • ***
  • Posts: 199
grub fails to update
« on: July 07, 2015, 06:11:15 pm »
hi all
i've noticed it's some kernel versions that grub isn't upgrading properly......
now i've removed grub customizer and tried to purge and resintall grub, but i always get the very same message:

Code: [Select]
......
Trovata immagine initrd: /boot/initrd.img-3.16.0-4-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Trovato Linux Mint 17.1 Rebecca (17.1) su /dev/sda5
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
Errore di sintassi alla riga 189
Errori di sintassi sono stati rilevati nel file di configurazione
di GRUB generato. Assicurarsi che non vi siano errori in
/etc/default/grub e /etc/grub.d/* o segnalare un bug allegando
il file /boot/grub/grub.cfg.new.

actually the file it tells me to attach is here: http://www.federproprietaabruzzo.it/Carlo/grub.cfg.new:

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #1 on: July 07, 2015, 09:25:12 pm »
I don't know what installing and removing grub-customizer changed in grub config files, but it could.
I suggest reinstalling all installed grub files (should be 4 packs) and update grub manually after to check is still somenthing wrong.
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #2 on: July 08, 2015, 12:00:47 pm »
i guess i've already done what you suggested, but the outcome would always be the same: check all of the /grub.d/ config files or report for bug

what if i try to install grub 1?

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #3 on: July 08, 2015, 01:47:43 pm »
I don't think it's a good idea.

Try: edit as root the file: /etc/default/grub and past inside, on the end of the file:
Code: [Select]
GRUB_DISABLE_SUBMENU=yThen:
Code: [Select]
sudo update-grub
You have 8 Liquorix and 2 Debians kernels installed.
Do you need all of them?
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #4 on: July 08, 2015, 07:23:44 pm »
Quote
Try: edit as root the file: /etc/default/grub and past inside, on the end of the file:
Code: [Select]

GRUB_DISABLE_SUBMENU=y

Then:
Code: [Select]

sudo update-grub


alas it did the very same thing...


Quote
You have 8 Liquorix and 2 Debians kernels installed.
Do you need all of them?
isn't it "the more the better"?

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #5 on: July 09, 2015, 11:42:42 am »
i've made an apt-get autoremove
it deleted some liquorix and maybe something from nvidia from what i could tell, then it sort of made update-grub many times, and i've noticed that this kind of messages
Code: [Select]
Errore di sintassi alla riga 567appeared:
it says on line 567 there's a syntax error:
i've checked through /etc/defaults/grub and /etc/grub.d/* but no single file has so many lines
the only file to have enough lines is the /boot/grub/grub.cfg.new, which i'm going to upload again, just in case it change: http://www.federproprietaabruzzo.it/Carlo/grub.cfg.new2

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #6 on: July 09, 2015, 01:12:39 pm »
The line shows that it's about function gfxmode.

Looks like the file  /boot/grub/grub.cfg.new has been made by grub-customizer before.
Can you move the file (as root) out of the /boot/grub directory and update grub again?
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #7 on: July 09, 2015, 01:21:50 pm »
i've move grub.cfg* to /tmp but the update grub command gives the very same output....

what is updaate-grub2 about?

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #8 on: July 09, 2015, 01:35:11 pm »
update-grub2 is a symlink to update-grub only so they run the same command
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #9 on: July 09, 2015, 01:48:24 pm »
Actually grub totally failed to boot
Not sure whether to try to recover the files ive moved ir try a live grub install...

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #10 on: July 09, 2015, 02:56:56 pm »
Quote
i've move grub.cfg*
have you moved all grub.cfg* files out?
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #11 on: July 09, 2015, 03:01:23 pm »
Yup

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: grub fails to update
« Reply #12 on: July 09, 2015, 04:13:02 pm »
That's why it's not useable now.
I said to move /boot/grub/grub.cfg.new file only.
Nothing is easy as it looks.

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #13 on: July 09, 2015, 04:29:19 pm »
hope i can find them when i'm back in office.....



just in case:
if i format is there any way to tell debian "pliiiiis install all the packages i had before i made anything wrong" in a short easy way?

Offline carlo

  • Full Member
  • ***
  • Posts: 199
Re: grub fails to update
« Reply #14 on: July 09, 2015, 07:15:50 pm »
i took the third path:

i've booted from sparky xfce, launched grub-repair:
it made me purge everything, then it reinstalled grub
with the latest debian and liquorix kernel besides linux mint
and boot works now
thank you