Rechner bootet nicht mehr: mandatory option missing for 'class'

Wenn jetzt “quiet” aus /etc/default/grub entfernt ist
(und Du dann update-grub ausgeführt hast danach)
kannst Du möglicherweise in den Ausgaben sehen was das Problem ist
wenn Du das System bootest.

Ansonsten immer noch nur:
die Ausgaben von journalctl nach Hinweisen durchsuchen

Habe in /etc/default/grub in GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=3970456f-45fa-42d0-9a6a-84bad24a433b udev.log_priority=3" quiet entfernt.

Das scheint geklappt zu haben:

# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

Ist die Warnung unwichtig?

Zuerst ^D oder # exit danach:
Mal sehen, was journalctl oder besser journalctl -b gleich, also nach dem booten, anzeigt.

mit # exit bekomme ich den Fehler: umount: /mnt: target is busy.

$ sudo umount /mnt liefert: umount: /mnt: das Ziel wird gerade benutzt.

Wie bekomme ich denn raus, welches Program oder welcher Prozess noch /mnt verwendet?

nahh - not going to explain the options

just “sync”
and then shut the system down via power button


und schon wieder ins englische gefallen

einfach “sync” ausführen
und dann den Rechner ausschalten

es geht akkurater, eleganter, besser …
das zu erklären hab ich aber keine Lust - ist auch nicht nötig

sync stellt sicher, daß alle Daten auf Platte geschrieben wurden - der automatische Dateisystem Check wird damit keine Probleme haben

Wahrscheinlich Dein Datei Manager - mit dessen Hilfe Du wohl die Datei geöffnet hast, um sie zu bearbeiten.
Wer weiß?
Ist nicht wichtig.
War nur ein live System - das nimmt keinen Schaden.

Das ist schon OK, mit English. Es sind ja nur einfache Sätze.

OK sync und dann neu starten.

Ich bin total überrascht: Er startet wieder. Und bin auch verunsichert, ob irgendwo ein Fehler lauert, der das System wieder lahm legt. Da brauche ich noch etwas Sicherheit.

journalctl -b liefert eine ganze Menge gelbe und rosa Einträge. Die vielen blauen Einträge habe ich weggelassen. Was bedeuten diese Einträge? Sind welche davon wichtig?:

  1. Unknown kernel command line parameters “BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64”, will be passed to user space.

  2. x86/cpu: SGX disabled by BIOS.

  3. WARNING mit Kontext:
    Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
    Dez 06 23:06:50 lenovo-a kernel: Spectre V2 : WARNING: Unprivileged eBPF is enabled with eIBRS on, data leaks possible via Spectre v2 BHB attacks!
    Dez 06 23:06:50 lenovo-a kernel: Spectre V2 : Mitigation: Enhanced IBRS
    Dez 06 23:06:50 lenovo-a kernel: Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
    Dez 06 23:06:50 lenovo-a kernel: Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT

  4. Die angegebene WWW-Seite gibt es nicht:
    MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.htm>
    Dez 06 23:06:50 lenovo-a kernel: #7 #8 #9 #10 #11

  5. Zeile 547: hpet_acpi_add: no address or irqs in _CRS

  6. usb 1-5.1: config 1 has an invalid interface number: 3 but max is 2
    Dez 06 23:06:50 lenovo-a kernel: usb 1-5.1: config 1 has an invalid interface number: 3 but max is 2
    Dez 06 23:06:50 lenovo-a kernel: usb 1-5.1: config 1 has an invalid interface number: 3 but max is 2
    Dez 06 23:06:50 lenovo-a kernel: usb 1-5.1: config 1 has an invalid interface number: 3 but max is 2
    Dez 06 23:06:50 lenovo-a kernel: usb 1-5.1: config 1 has no interface number 2

  7. mtd: partition “BIOS” extends beyond the end of device “0000:00:1f.5” – size truncated to 0x1000000

  8. acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)
    Dez 06 23:06:51 lenovo-a kernel: acpi PNP0C14:03: duplicate WMI GUID 05901221-

    Dez 06 23:06:51 lenovo-a kernel: acpi PNP0C14:04: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)

  9. iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
    Es gibt noch eine Menge dunkelblaue Einträge. Ich weiß nicht, ob die wichtig sind.

  10. thermal thermal_zone6: failed to read out thermal zone (-61)

  11. snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
    (Das Audio vom Monitor funktioniert):

  12. hid-generic 0003:0A92:0054.0001: No inputs registered, leaving

  13. ConfigurationDirectory ‘bluetooth’ already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
    Dez 07 00:05:48 lenovo-a kernel: Bluetooth: hci0: Found device firmware: intel/ibt-19-0-4.sfi
    Dez 07 00:05:48 lenovo-a kernel: Bluetooth: hci0: Boot Address: 0x24800
    Dez 07 00:05:48 lenovo-a kernel: Bluetooth: hci0: Firmware Version: 106-39.22
    Dez 07 00:05:48 lenovo-a kernel: Bluetooth: hci0: Firmware already loaded
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: Bluetooth daemon 5.66
    Dez 07 00:05:48 lenovo-a systemd[1]: Started Bluetooth service.
    Dez 07 00:05:48 lenovo-a audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=bluetooth comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr>
    Dez 07 00:05:48 lenovo-a systemd[1]: Reached target Bluetooth Support.
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: Starting SDP server
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: src/plugin.c:plugin_init() Failed to init vcp plugin
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: src/plugin.c:plugin_init() Failed to init mcp plugin
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
    Dez 07 00:05:48 lenovo-a bluetoothd[986]: src/plugin.c:plugin_init() Failed to init bap plugin

  14. kauditd_printk_skb: 189 callbacks suppressed

  15. sd 6:0:0:0: [sda] No Caching mode page found
    Dez 07 00:05:50 lenovo-a kernel: sd 6:0:0:0: [sda] Assuming drive cache: write through

  16. sr 7:0:0:0: Power-on or device reset occurred

  17. gkr-pam: unable to locate daemon control file

  18. kauditd_printk_skb: 8 callbacks suppressed

  19. /home/micha/.config/autostart/xcape.desktop:9: Unknown key name ‘RunHook’ in section ‘Desktop Entry’, ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: Configuration file /home/micha/.config/autostart/xfce-panel-workaround.desktop is marked executable. Please remove executable>
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: Configuration file /home/micha/.config/autostart/xfce-pbw.sh is marked executable. Please remove executable permission bits. >
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:2: Assignment outside of section. Ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:3: Assignment outside of section. Ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:4: Assignment outside of section. Ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:5: Assignment outside of section. Ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:6: Assignment outside of section. Ignoring.
    Dez 07 00:05:55 lenovo-a systemd-xdg-autostart-generator[1192]: /home/micha/.config/autostart/xfce-pbw.sh:7: Assignment outside of section. Ignoring.

  20. mod.rt: Can’t find xdg-portal: (null)
    Dez 07 00:05:55 lenovo-a pipewire[1195]: mod.rt: found session bus but no portal

  21. Failed to set scheduler settings: Die Operation ist nicht erlaubt

  22. mod.rt: Can’t find xdg-portal: (null)
    Dez 07 00:05:55 lenovo-a pipewire-pulse[1304]: mod.rt: found session bus but no portal

  23. Failed to load plugin “tumbler-gepub-thumbnailer.so”: libgepub-0.7.so.0: cannot open shared object file: No such file or directory

  24. Error probing device: Error sending ATA command IDENTIFY DEVICE to ‘/dev/sda’: Unexpected sense data returned:
    0000: f0 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 …
    0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
    (g-io-error-quark, 0)

  25. Theme parser error: gtk.css:6084:3-36: No property named “-GtkTreeView-horizontal-separator”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6085:3-34: No property named “-GtkTreeView-vertical-separator”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6143:3-29: No property named “-GtkTreeView-expander-size”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6176:3-37: No property named “-GraniteWidgetsPopOver-arrow-width”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6177:3-38: No property named “-GraniteWidgetsPopOver-arrow-height”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6178:3-39: No property named “-GraniteWidgetsPopOver-border-radius”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6179:3-38: No property named “-GraniteWidgetsPopOver-border-width”
    Dez 07 00:05:57 lenovo-a xdg-desktop-por[1446]: Theme parser error: gtk.css:6180:3-37: No property named “-GraniteWidgetsPopOver-shadow-size”

  26. kauditd_printk_skb: 21 callbacks suppressed

  27. Failed to load plugin “tumbler-gepub-thumbnailer.so”: libgepub-0.7.so.0: cannot open shared object file: No such file or directory

Insgesamt 1952 Zeilen.

Ob das update-grub die Lösung war?

Die kann ich Dir nicht geben.

Sieht alles so ziemlich normal aus.
Und die Fehlermeldung existiert auf einmal nicht mehr.

Mach ein vollständiges Systemupdate
sudo pacman -Syu

Ich selbst habe noch diese zwei Schlüsselworte hinzugefügt:
mitigations=off audit=0
zu der Zeile, aus der Du “quiet” entfernt hast

Einige der Meldungen werden dadurch verschwinden.
Bitte schau aber selber nach, was diese Optionen bewirken.

Das vollständige Systemupdate habe ich gestern vor dem Fehler gemacht. Später in chroot und jetzt auch sind das Systemupdate immer noch aktuell. Ich finde das schon seltsam, dass der Boot-Fehler nach chroot und update-grub einfach so verschwunden ist.

Vielleicht kennt sich jemand anderes der mit liest mit den Warnungen und Fehlermeldungen sehr gut aus. Ich hoffe aber auch, dass es jetzt einigermaßen normal aussieht und ich nichts mehr tun muss, für SystemStabilität :slight_smile:

Ich habe nach einem System-Update wieder denselben Fehler:
Der Rechner bootet nicht mehr und nach ca. 10 Sek. erscheint als erste Meldung:

error: missing mandatory option for `class'.
error: missing mandatory option for `class'.

Press any key to continue…
  Failed to boot both default and fallback entries.

Press any key to continue…

Irgendetwas geht nach einem System-Update kaputt. Muss ich das Folgende jetzt nach jedem System-Update machen?

Ich versuche jetzt erstmal das alte System zu mount-en und mache dann update-grub. Ich melde mich dann wieder.

Edit: PS:
Kann das mit UEFI zusammenhängen? Mein Lenovo ThinkCentre Tiny ist die erste Generation, in der Lenovo nur UEFI eingebaut hat.

you dont need grub if you are on UEFI… you can boot via uefi, thats assuming grub is the issue

OK and thanks for the info :slight_smile: What must i do, to boot via UEFI? Is it difficult?

Another error is: In the file-manager thunar, the cursor jumps away from one mark to another position, after doing something in thunar. Can this error todo something with boot by Grub and can it disapear by booting via UEFI?

enter into uefi boot menu, dont know the keyboard shortcut for your machine, and just select manjaro … it should be the menu when you try booting from example from usb, you have a selection there for usb, hard drive, cd rom, card reade … etc
and the thunar issue is not related to this one…

It sounds easy todo :slight_smile: (i hope it will be, if i try …)

For the thunar issue, i will open an own thread.

It doesn’t work. The error is the same. I have this settings:

F1 -> UEFI-Menu -> Startup -> Primary Boot Sequence:
USB CDROM: <empty>
M.2 Drive 1: SKHynix_HF…
|
+- Manjaro
|
+- UEFI OS
USB HDD:
SATA 1:
Network 1:
…
Other Device:

Ich habe gemacht:

  1. Vom live system aus ins alte System mount-en
  2. Ein verursachendes Programm gibt es nicht, um es wieder zu deinstallieren
  3. Ein komplettes System Update in chroot
  4. Versuch Grub zum laufen zu bringen
manjaro-chroot -a
sudo pacman -Syu

[root@manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

Ich melde mich heute Nachmittag wieder…

Ich kann wieder booten (nur mit grub) und manjaro läuft wieder. Was kann ich tun, um den Fehler in Zukunft zu vermeiden?

Now i can boot (without grub) and manjaro is OK again. What can i do in future, to avoid this error?

there is something with your grub:


post output from:

cat /etc/default/grub
lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME

The outputs are:

$ cat /etc/default/grub | grep -i "GRUB_DISABLE_OS_PROBER"
#GRUB_DISABLE_OS_PROBER=false

$ cat /etc/default/grub
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="apparmor=1 security=apparmor resume=UUID=3970456f-45fa-42d0-9a6a-84bad24a433b udev.log_priority=3"
	# "quiet " am Anfang entfernt.
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
#GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true

$ lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
PATH           PTTYPE PARTTYPE                             FSTYPE PARTTYPENAME
/dev/sda       gpt                                                
/dev/sda1      gpt    0fc63daf-8483-4772-8e79-3d69d8477de4 ext4   Linux filesystem
/dev/sr0                                                          
/dev/nvme0n1   gpt                                                
/dev/nvme0n1p1 gpt    c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat   EFI System
/dev/nvme0n1p2 gpt    0fc63daf-8483-4772-8e79-3d69d8477de4 ext4   Linux filesystem
/dev/nvme0n1p3 gpt    0657fd6d-a4ab-43c4-84e5-0933c84b4f4f swap   Linux swap

looks like mine, except you have disabled os prober …
i would just reinstall grub, its at this point the best possible solution…
boot again into manjaro live usb, chroot:
manjaro-chroot -a
reinstall grub for uefi:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck

update it:
mkinitcpio -P && update-grub
exit chroot:
exit
reboot and wait till the next update, to see if it helped