Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] grub verbleibt bei Kernel 4.9.9  (Read 3962 times)

Offline cas

  • User
  • Posts: 401
[DE] grub verbleibt bei Kernel 4.9.9
« on: 2017/04/14, 01:58:15 »
Hallo,
ich habe bei zwei  siduction Installationen festgestellt, dass der normale grub-Eintrag jeweils Kernel 4.9.9 startet, obwohl jeweils bspw auch 4.9.11 oder 4.10.6 vorhanden sind.
Was stimmt da nicht?

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
Re: grub verbleibt bei Kernel 4.9.9
« Reply #1 on: 2017/04/14, 09:02:32 »
Hallo cas,

als Arbeitshypothese nehmen wir mal an, das nach der Installation der neueren Kernel das "update-grub"  nicht erfolgreich (oder gar nicht) ausgeführt wurde.

Kannst Du jetzt "update-grub" verwenden?
Ist die Festplatte voll?
Liegt evtl. eine besondere Konfiguration vor (z.B. mehrere Linuxe mit jeweils eigenem Grub)?

Grüße
musca
„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: grub verbleibt bei Kernel 4.9.9
« Reply #2 on: 2017/04/14, 12:34:06 »
Liegt evtl. eine besondere Konfiguration vor (z.B. mehrere Linuxe mit jeweils eigenem Grub)?

das wird es sein - das ist aber nichts besonderes, dass man den grub der installation aktualisieren muss, welcher die Startmenu-Einträge verwaltet ...
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline cas

  • User
  • Posts: 401
Re: grub verbleibt bei Kernel 4.9.9
« Reply #3 on: 2017/04/14, 14:11:08 »
update-grub hatte ich bei beiden Installationen bereits mehrfach händisch aufgerufen, ohne Erfolg.

Ich habe 5 Festplatten, darauf waren unzählige Partitionen, wo ich gerade radikal aufräume, verschiebe, zusammenführe, lösche, etc. Mittlerweile ist überall Platz im Bereich von GB bzw TB.  :)
Hier hatte ich bereits beschrieben, dass nicht mehr vorhandene Installationen noch im Menu verbleiben.
https://forum.siduction.org/index.php?topic=6693.0

Da neue Installationen bisher im Menu auftauchten, haben mich die Unstimmigkeiten nicht gestört bzw sind mir nicht aufgefallen.

Wo ich den Grub gespeichert habe, weiss ich nicht. Wie kann ich das herausfinden?

das ist aber nichts besonderes, dass man den grub der installation aktualisieren muss, welcher die Startmenu-Einträge verwaltet ...
Ich verstehe nicht genau, was man nach einer Installation mit dem grub noch machen muss.

« Last Edit: 2017/04/14, 14:21:24 by cas »

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: grub verbleibt bei Kernel 4.9.9
« Reply #4 on: 2017/04/14, 14:47:28 »
cas

Sorry for english  :(

Take a look at 

Code: [Select]
/boot/grub
You *should*  have 2 files (back these up somewhere)

grub.cfg
grub.cfg.new

Look at and compare the two, make adjustments or

rename the grub.cfg to grub.cfg.old and rename grub.cfg.new to grub.cfg  ** make sure you back up both **

Code: [Select]
update-grub

If your running a  40_custom compare that to grub.cfg.new and make adjustments


I had a typo in my 40_custom and this fixed it for me

I was stuck on kernel 4.10.6, although newer kernels installed, they didn't show up on grub.cfg and only showed up on grub.cfg.new, so booting up didn't have the newer kernels.

After comparing

grub.cfg.new
grub.cfg
40_custom

and making adjustments all is good

EDIT:

If you don't have both
grub.cfg.new
grub.cfg

perhaps paste your grub.cfg


Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline cas

  • User
  • Posts: 401
Re: grub verbleibt bei Kernel 4.9.9
« Reply #5 on: 2017/04/14, 16:27:52 »
Sorry for english  :(
No problem, thanks for your answer

Quote
Take a look at 

Code: [Select]
/boot/grub
You *should*  have 2 files (back these up somewhere)

grub.cfg
grub.cfg.new

Code: [Select]
cas@kde~$locate grub.cfg.new
cas@kde~$locate grub.cfg
/boot/grub/grub.cfg
/disks/disk1part7/boot/grub/grub.cfg
/disks/disk1part7/usr/share/doc/grub-common/examples/grub.cfg
/disks/disk2part11/boot/grub/grub.cfg
/disks/disk2part11/usr/share/doc/grub-common/examples/grub.cfg
/home/cas132/xVirtualBox VMs/KIRIWANG/boot/grub/grub.cfg
/usr/share/doc/grub-common/examples/grub.cfg

Quote
If you don't have both
grub.cfg.new
grub.cfg
perhaps paste your grub.cfg

siduction-paste /boot/grub/grub.cfg
http://paste.siduction.org/20170414135536




Offline unklarer

  • User
  • Posts: 816
Re: grub verbleibt bei Kernel 4.9.9
« Reply #6 on: 2017/04/14, 16:57:02 »
Wenn ich die Paste richtig interpretiere hast du

siduction 2017 patience
siduction 2016 kde
siduction 2016 cinnamon

Angenommen, die Paste ist von der patience und sie hat den Grub im MBR, dann startest du die 2016 kde. Wirst root und entziehst der os-prober hier das Ausführungsrecht
Code: [Select]
chmod -x /etc/grub.d/30_os-proberund anschließend
Code: [Select]
update-grub
Danach machst du das Gleiche in der 2016 cinnamon.

Zum Schluß schließlich in der 2017 patience das update-grub sollte das Durcheinander in der grub.cfg beendet und das Startmenü von Grub aufgeräumt haben.  ;D

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: grub verbleibt bei Kernel 4.9.9
« Reply #7 on: 2017/04/14, 17:01:02 »
Danke unklarer  :) :)

After any install, one of my first things I do is

apt purge os-prober ;)
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline unklarer

  • User
  • Posts: 816
Re: grub verbleibt bei Kernel 4.9.9
« Reply #8 on: 2017/04/14, 22:21:27 »
^ piper,

I thank you too!  :)

Offline cas

  • User
  • Posts: 401
Re: grub verbleibt bei Kernel 4.9.9
« Reply #9 on: 2017/04/19, 00:02:58 »
Code: [Select]
chmod -x /etc/grub.d/30_os-proberund anschließend
Code: [Select]
update-grub

I had to do this a couple of rounds, but now three problems are solved:

1) Current kernel is activated in default grub menu.
2) In extended grub  menu were literally dozens of entries of non-existing kernels. they have vanished.
3) there were kernels which didn't show up in kernel-remover. Now they did show up and I could remove them.

thanks.