Hello,
after updating the system I get this error at boot time
Failed to execute /init (error -2)
From chroot I reinstalled systemd-boot and also the kernel but nothing changed.
Can anyone help me? What information is needed?
Can we see what occurs before that error?
Can you boot off the ISO and go into a chroot as per these instructions. Be careful to mount your EFI partition properly.
Then share the output of:
find /efi -printf "%Ac %P\n"
cat /efi/loader/entries/*
[root@EndeavourOS /]# find /efi -printf "%Ac %P\n"
Thu 01 Jan 1970 01:00:00 AM CET
Fri 17 Nov 2023 01:00:00 AM CET initramfs-6.6.1-arch1-1.img
Fri 17 Nov 2023 01:00:00 AM CET System Volume Information
Fri 17 Nov 2023 01:00:00 AM CET EFI
Fri 17 Nov 2023 01:00:00 AM CET EFI/systemd
Fri 17 Nov 2023 01:00:00 AM CET EFI/systemd/systemd-bootx64.efi
Fri 17 Nov 2023 01:00:00 AM CET EFI/BOOT
Fri 17 Nov 2023 01:00:00 AM CET EFI/BOOT/BOOTX64.EFI
Fri 17 Nov 2023 01:00:00 AM CET EFI/Linux
Fri 17 Nov 2023 01:00:00 AM CET loader
Fri 17 Nov 2023 01:00:00 AM CET loader/entries
Fri 17 Nov 2023 01:00:00 AM CET loader/entries/ae6b8b05ea3342b7b78a9c3153c943a5-6.6.1-arch1-1-fallback.conf
Fri 17 Nov 2023 01:00:00 AM CET loader/entries/ae6b8b05ea3342b7b78a9c3153c943a5-6.6.1-arch1-1.conf
Fri 17 Nov 2023 01:00:00 AM CET loader/loader.conf
Fri 17 Nov 2023 01:00:00 AM CET loader/random-seed
Fri 17 Nov 2023 01:00:00 AM CET loader/entries.srel
Fri 17 Nov 2023 01:00:00 AM CET ae6b8b05ea3342b7b78a9c3153c943a5
Fri 17 Nov 2023 01:00:00 AM CET ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1
Fri 17 Nov 2023 01:00:00 AM CET ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd-fallback
Fri 17 Nov 2023 01:00:00 AM CET ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd
Fri 17 Nov 2023 01:00:00 AM CET ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/linux
Fri 17 Nov 2023 01:00:00 AM CET initramfs-linux.img
[root@EndeavourOS /]# cat /efi/loader/entries/*
# Boot Loader Specification type#1 entry
# File created by /etc/kernel/install.d/90-loaderentry.install (systemd 254.1-1-arch)
title EndeavourOS
version 6.6.1-arch1-1
machine-id ae6b8b05ea3342b7b78a9c3153c943a5
sort-key endeavouros-6.6.1-arch1-1
options nvme_load=YES nowatchdog rw root=UUID=9bba316c-c0f8-4d70-9362-27fbc4ac79b2 amd_iommu=on iommu=pt video=efifb:off systemd.machine_id=ae6b8b05ea3342b7b78a9c3153c943a5
linux /ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/linux
initrd /ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd
# Boot Loader Specification type#1 entry
# File created by /usr/lib/kernel/install.d/90-loaderentry-fallback.install (systemd 254.1-1-arch)
title EndeavourOS
version 6.6.1-arch1-1-fallback
machine-id ae6b8b05ea3342b7b78a9c3153c943a5
sort-key endeavouros-6.6.1-arch1-1-fallback
options nvme_load=YES nowatchdog rw root=UUID=9bba316c-c0f8-4d70-9362-27fbc4ac79b2 amd_iommu=on iommu=pt video=efifb:off systemd.machine_id=ae6b8b05ea3342b7b78a9c3153c943a5
linux /ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/linux
initrd /ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd-fallback
Can you share the full output of the command reinstall-kernels
from that same chroot?
[root@EndeavourOS efi]# reinstall-kernels
Installing kernel 6.6.1-arch1-1
dracut: Executing: /usr/bin/dracut --no-hostonly --force /efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd-fallback 6.6.1-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: *** Including module: systemd ***
not a dynamic executable
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: dmraid ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: multipath ***
dracut: Skipping udev rule: 40-multipath.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Method: sha256
dracut: Files: 2014
dracut: Linked: 9 files
dracut: Compared: 0 xattrs
dracut: Compared: 472 files
dracut: Saved: 1.42 MiB
dracut: Duration: 0.028360 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd-fallback' ***
dracut: *** Creating initramfs image file '/efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd-fallback' done ***
dracut: Executing: /usr/bin/dracut --hostonly --no-hostonly-cmdline -f /efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd 6.6.1-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: *** Including module: systemd ***
not a dynamic executable
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Method: sha256
dracut: Files: 756
dracut: Linked: 2 files
dracut: Compared: 0 xattrs
dracut: Compared: 37 files
dracut: Saved: 356.65 KiB
dracut: Duration: 0.010394 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd' ***
dracut: *** Creating initramfs image file '/efi/ae6b8b05ea3342b7b78a9c3153c943a5/6.6.1-arch1-1/initrd' done ***
Try installing linux-lts
. pacman -S linux-lts linux-lts-headers
and see if you can boot off the LTS kernel.
With linux-lts I get a black screen at startup
What happens if you temporarily remove this part:
I tried but nothing changes.
I tried to install reFIND and configure it manually but in the boot menu there are no system entries. It doesn’t seem to see the partition.
fdisk of the boot partition reports this:
Disk /dev/nvme1n1p1: 1000 MiB, 1048576000 bytes, 2048000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Why is the partition table MBR? should it be GPT?
kernel downgrade reports this:
[...]
typedracut: *** Creating initramfs image file '/boot/initramfs-6.5.9-arch2-1.img' done ***
Running in a chroot, skipping cmdline generation
(4/5) Check if user should be informed about rebooting after certain system package upgrades.
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
(5/5) Checking which packages need to be rebuilt
fatal library error, lookup self
or paste code here
Can you share the full output of sudo parted -l
Those last two hooks may not work in a chroot. Neither of them are critical though. They are both informational.
[liveuser@eos-2023.08.05 ~]$ sudo parted -l
Model: ATA ST8000DM004-2CX1 (scsi)
Disk /dev/sda: 8002GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 16.8MB 16.8MB Microsoft reserved partition msftres
2 16.8MB 8002GB 8002GB Basic data partition msftdata
Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdb: 62.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 62.0GB 62.0GB primary fat32 boot, lba
Model: Samsung SSD 980 PRO 1TB (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp, no_automount
2 106MB 123MB 16.8MB Microsoft reserved partition msftres, no_automount
3 123MB 999GB 999GB ntfs Basic data partition msftdata, no_automount
4 999GB 1000GB 780MB ntfs hidden, diag, no_automount
Model: WD Blue SN570 1TB (nvme)
Disk /dev/nvme1n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2097kB 1051MB 1049MB fat32 boot, esp
2 1051MB 1000GB 999GB ext4 endeavouros
It looks like all your disks are all GPT except for the one you used to boot the ISO.
why is the disk label of the boot partition “dos”? it should be “gpt”
sudo fdisk -l /dev/nvme1n1p1
Disk /dev/nvme1n1p1: 1000 MiB, 1048576000 bytes, 2048000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Perhaps because you ran fdisk
on the partition instead of the disk?
What happens if you do sudo fdisk -l /dev/nvme1n1
?
yes, gpt
sudo fdisk -l /dev/nvme1n1
Disk /dev/nvme1n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WD Blue SN570 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 158359A8-2428-489F-B214-CAB4B4614908
Device Start End Sectors Size Type
/dev/nvme1n1p1 4096 2052095 2048000 1000M EFI System
/dev/nvme1n1p2 2052096 1953520064 1951467969 930.5G Linux filesystem
bootctl --boot-path=/boot install
/dev/nvme1n1p1: Partition has wrong PART_ENTRY_TYPE=c12a7328-f81f-11d2-ba4b-00a0c93ec93b for XBOOTLDR partition.
That isn’t how we boot. Just do bootctl install
if you want to reinstall it.
Be sure that your EFI partition is mounted to /efi