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

Author Topic:  grub2 update  (Read 34276 times)

Offline t0mte

  • User
  • Posts: 29
grub2 update
« Reply #45 on: 2013/02/01, 15:32:38 »
Das stellt die richtige Reihenfolge dar, zumindest wenn ich /dev glauben darf (und da auch sonst nüscht am System gebastelt wurde); und darauf verlasse ich mich gerade einfach mal …

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
grub2 update
« Reply #46 on: 2013/02/01, 15:40:47 »
Quote from: "michaa7"


Hi dibl,

did you find a way to make visible the expanded, real kernel name in Grub2 menue?


Yes. If you click the next line down, "Advanced option for Debian GNU/Linux", then it will expand and show you the installed kernels, and you can choose one.

Regarding the grub splash image, I am finding different behaviors on different computers.  The method I posted above works great on two older computers, but not at all on my Asus P6X58D-E motherboard. Fortunately this one only gets rebooted when towo releases a new kernel, so I don't see grub much anyway.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
grub2 update
« Reply #47 on: 2013/02/01, 15:58:54 »
Hallo zusammen,
habe ebenfalls Probleme bei einem Laptop mit grub. Fehlermeldung lautete etwa sinngemäß:

Der MBR konnte nicht auf /dev/sda geschrieben werden.

Auch ein Löschen sämtlicher grub-* Pakete und anschließender Neuinstallation brachte nichts, ebenso verhielt sich "dpk-reconfigure grub-pc" :?

Vermutlich ist das ein Bug. Werde mal nachforschen. Ich habe alle grub-Pakete auf HOLD gesetzt und dann einen d-u durchgeführt.

Offline michaa7

  • User
  • Posts: 2.298
grub2 update
« Reply #48 on: 2013/02/01, 16:13:05 »
Quote from: "t0mte"
Das stellt die richtige Reihenfolge dar, zumindest wenn ich /dev glauben darf ...


Das ist eine alphabetische reihenfolge, nichts sonst. Ich zweifle das Grub das alphabet beherrscht bzw. sich daran hält, dann bräuchte man nämlich keine device.map, wenn das alphabet *für Grub* eine verbindliche regel darstellen würde.

Klar ist lediglich dass grub eine installierte komponente nicht findet. Das kann dann nur ein pfadfehler sein. Und wenn zwischenzeitlich grub auf die verkehrte platte geschrieben wurde, dann ist ja garnicht klar ob du an dem grub herumschraubst der beim neustart dann versucht das OS zu booten.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline michaa7

  • User
  • Posts: 2.298
grub2 update
« Reply #49 on: 2013/02/01, 16:38:56 »
Quote from: "dibl"

Yes. If you click the next line down, "Advanced option for Debian GNU/Linux", ..


Easy-peasy. I should have found myself. Thanks anyway.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline agaida

  • User
  • Posts: 1.760
    • http://g-com.eu
grub2 update
« Reply #50 on: 2013/02/01, 16:44:39 »
@micha and dibl: a good starting point is /etc/default/grub.

Edit: für den Kernelname. Ich empfehle die Nutzung von programmen wie awk und für den Distributor /etc/siduction-version.
Code: [Select]

GRUB_DISTRIBUTOR=`awk -F '(' '{ print $1 }' /etc/siduction-version`
There's this special biologist word we use for "stable". It's "dead". ~ Jack Cohen

Offline michaa7

  • User
  • Posts: 2.298
grub2 update
« Reply #51 on: 2013/02/01, 17:24:16 »
Nice command, agaida, works fine.

Actually I like the naming "Debian GNU/Linux" as it reflects my affection for Debian. OTOH, I am / we are not using a Debian stock kernel and thus your command is very sensible.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
grub2 update
« Reply #52 on: 2013/02/01, 18:45:02 »
Quote from: "agaida"
Ich empfehle die Nutzung von programmen wie awk und für den Distributor /etc/siduction-version.
Code: [Select]

GRUB_DISTRIBUTOR=`awk -F '(' '{ print $1 }' /etc/siduction-version`


awk is on the long list of languages which I cannot speak.

However, thank you for doing it for me!   :D
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

WhiteDwarf

  • Guest
grub2 update
« Reply #53 on: 2013/02/06, 11:07:23 »
Hallo zusammen,
ich hoffe ich bin in diesem Thread richtig.
Leider habe ich auch ein Problem mit Grub/LVM und fehlender module.

Nach einem dist-upgrade, wobei grub2 von version 1.98 nach 2.01 ersetzt wurde, scheitert ein update-grub mit der Meldung, dass core.img sei zu gross und könne nicht in den MBR grschrieben werden.
Leider konnte ich die alten grub2 Paket nicht mit apt oder dkpg wegen diverser Paketabhängigkeiten zurückspielen.

Also entschied ich mich für eine Neuinstallation, da ich noch aptosid auf dem Laptop hatte und mich Siduction 2012.2 interessiert.

Also installer gestartet. LVM die schon bestanden dem installer mitgeteilt.
Alles neu installiert ohne Fehlermeldung. System neu gebootet. Alles funktioniert.

Neu gebootet. Danach:

- init 3
- apt-get update, dist-upgrade

Jetzt werden die neuen Grub pakete eingespielt und es gibt die gleiche Fehlermeldung core.img ist zu gross für MBR.

nun mit apt-get install die alten Grub (1.9X) Pakete wieder eingespielt. Mit update-grub aktualisiert. Keine Fehlermeldung. Scheinbar alles OK.

Heute Laptop hochgefahren:
Bootvorgang stoppt bei (initramfs) mit Meldung "findet kein LVM".

mit vgchange -a y die volumes angegeben und sie werden erkannt.
(initramfs) mit exit beendet. Geht leider nicht, da Fehlermeldung:

modprobe: module i8042 not found in modules.dep
modprobe: module atkbd not found in modules.dep

Jetzt weiss ich leider nicht mehr weiter, was kann ich tun?

Wäre nett wenn Ihr mir helfen könntet.

Danke und Gruß,

Markus

WhiteDwarf

  • Guest
grub2 update
« Reply #54 on: 2013/02/06, 14:18:10 »
die modules Fehlermeldung kann man ignorieren.

da von den 2 lv's eines verschlüselt ist, musste ich erst dieses verschlüsselte lv mit luksOpen öffnen danach war ich im System.

Muss später probieren, wie ich grub das luksOpen wieder beibringe, da ich jetzt keine Zeit habe.

Gruss,
Markus

Offline Bequimão

  • User
  • Posts: 121
grub2 update
« Reply #55 on: 2013/02/06, 17:52:41 »
@ WhiteDwarf,

Prinzipiell funktioniert die neue Grub-Version im (unverschlüsselten) LVM, jedenfalls hier. Also kein Upgrade Warning. Damit es funzt, muß die Datei core.img zusammenhängend (contiguous) sein und mit den Blockgrenzen der Festplatte übereinstimmen. Eventuell kein Platz mehr in der logischen Partition für die Installation des core.img?

Grüße
Bequimão
Bequimão (gesprochen: Be-ki-mãu) ist Manuel Beckmann,
brasilianischer Revolutionär in Maranhão (1630 - 1685).

WhiteDwarf

  • Guest
grub2 update
« Reply #56 on: 2013/02/06, 18:31:53 »
Quote from: "Bequimão"
@ WhiteDwarf,

Prinzipiell funktioniert die neue Grub-Version im (unverschlüsselten) LVM, jedenfalls hier. Also kein Upgrade Warning. Damit es funzt, muß die Datei core.img zusammenhängend (contiguous) sein und mit den Blockgrenzen der Festplatte übereinstimmen. Eventuell kein Platz mehr in der logischen Partition für die Installation des core.img?

Grüße
Bequimão


Hallo Bequimão,
ich bleibe erst mal bei der alten Version von Grub2 (1.9X).
Ich muss zuerst das Problem lösen, dass initramfs keine Passwortfrage zum Öffnen des LV-Crypt auslöst, das die VG für root, home und swap enthält.

Ging bisher immer, warum jetzt nicht mehr ist mir noch schleierhaft.

Hat jemand eine Idee?

Gruß,
Markus

Offline Bequimão

  • User
  • Posts: 121
grub2 update
« Reply #57 on: 2013/02/06, 20:11:41 »
Das Problem hatte ich doch auch schon, und es liegt vor dem Öffnen der /root-partition

http://forum.siduction.org/index.php?msg=23397#23397

Bitte gib die englischen Originalfehlermeldungen an, so daß kein Ratespiel entsteht.

Grüße,
Bequimão
« Last Edit: 2013/11/10, 03:16:39 by ayla »
Bequimão (gesprochen: Be-ki-mãu) ist Manuel Beckmann,
brasilianischer Revolutionär in Maranhão (1630 - 1685).

Offline vilde

  • User
  • Posts: 708
grub2 update
« Reply #58 on: 2013/02/07, 00:30:33 »
Sorry, but I really wonder? Is all this really about upgrade warnings? I usually have a look here to check if it's ok to d-u and now there have been a very long German discussion about Grub here? If all this is a Grub d-u problem, please write in English and if not, maybe it shall be moved somewhere else?

HunkirDowne

  • Guest
grub2 update
« Reply #59 on: 2013/02/07, 01:36:28 »
The grub d-u issue was not an issue for me this morning (over 12 hours ago).

Quote from: "vilde"
Sorry, but I really wonder? Is all this really about upgrade warnings?


Yes.  At least mostly.  My German (DE) is not what I would like it to be but I have been able to derive from what little I understand there and the English (EN) to make sense of it all.

Quote from: "vilde"
I usually have a look here to check if it's ok to d-u and now there have been a very long German discussion about Grub here? If all this is a Grub d-u problem, please write in English and if not, maybe it shall be moved somewhere else?


Growing pains for the forum maybe?  This is a dual-language section of the forum (note the "DE & EN" in the name) so this is probably the best place for this thread.

That said, I don't see where this is marked 'solved', though.  I never had a problem but, like you, was checking here to see if it was safe to d-u.  From my perspective, it is.

Code: [Select]
dpkg -l grub*|grep ii

yields

Quote
ii  grub-common                                             2.00-12                            i386         GRand Unified Bootloader (common files)
ii  grub-pc                                                 2.00-12                            i386         GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                                             2.00-12                            i386         GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common                                            2.00-12                            i386         GRand Unified Bootloader (common files for version 2)