You are not logged in.

#1 2021-09-04 16:14:46

SphinxCanine
Member
Registered: 2021-09-04
Posts: 1

LUKS + btrfs, UEFI, systemd-boot: Time out waiting for disk on boot

I'm trying to install a system on a LUKS encypted partition using btrfs subvolumes. I'm using UEFI and systemd-boot to boot.

The main disk has quite a few partitions as I'm dual booting with Windows, but the main ones are:

  • /dev/nvme0n1p1 UUID=5CE2-A16C (The EFI partition, also mounted to /boot in the installed system)

  • /dev/nvme0n1p4 UUID=11d59ba4-b352-4fde-9781-5a21abda29c7 (The encrypted partition)

When unencrypted the partition should be placed at /dev/mapper/system and have the UUID 61697513-452c-4ad5-9a05-d22f0ffa67e4.

However, when I boot I get the following

...
[  OK  ] Finished Coldplug All udev Devices.
[  1.456085] ACPI Error: Cannot release Mutex [ECMX], not acquired (20210331/exmutex-357)
[  1.487055] ACPI Error: Aborting method \_SB.PC00.LPCB.ECDV._Q66 due to previous error (AE_AML_MUTEX_NOT_ACQUIRED) (20210331/psparse-529)
[  *** ] (1 of 2) A start job is running for /dev/mapper/system (5s / no limit)
[  *** ] (2 of 2) A start job is running for. /dev/disk/by-uuid/11d59ba4-b352-4fde-9781-5a21abda29c7 (8s / 1min 30s)
[  *** ] (2 of 2) A start. job is running for /dev/disk/by-uuid/11d59ba4-b352-4fde-9781-5a21abda29c7 (12s 1min 30s)
[  13.024135] sd 8:0:0:0: [sda] No Caching mode page found
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/11d59ba4-b352-4fde-9781-5a21abda29c7.
[DEPEND]Dependency failed for Cryptography Setup for system,
[DEPEND] Dependency failed for Local Encrypted Volumes.
[DEPEND] Dependency failed for /dev/mapper/system.
[DEPEND] Dependency failed for File System Check on /dev/mapper/system.
[DEPEND] Dependency failed for /sysroot..
[DEPEND] Dependency failed for Initrd Root File System.
[DEPEND] Dependency failed for Reload Configuration from the Real Root.
[DEPEND] Dependency failed for Initrd Root Device.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Initrd File Systems.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
You are in emergency mode. After logging in, type "journalctl -xb" to view ....

If anyone has some idea of what I've done wrong, or ideas on how I can try and troubleshoot this, that would be really helpful

Various File Contents that might be useful

While running the archiso I have the installation FS mounted to /mnt
cat /mnt/etc/mkinitcpio.conf | grep -v "#"

root@archiso ~ # cat /mnt/etc/mkinitcpio.conf | grep -v "#"
MODULES=()

BINARIES=(/usr/bin/btrfs)

FILES=()

HOOKS=(base systemd sd-vconsole modconf keyboard block filesystems btrfs sd-encrypt fsck)

cat /mnt/etc/fstab

root@archiso ~ # cat /mnt/etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/system
/dev/mapper/system  	/         	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=256,subvol=/@	0 0

# /dev/nvme0n1p1 LABEL=ESP
UUID=5CE2-A16C      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/mapper/system
/dev/mapper/system  	/home     	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=257,subvol=/@home	0 0

# /dev/mapper/system
/dev/mapper/system  	/.snapshots	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=258,subvol=/@snapshots	0 0

# /dev/mapper/system
/dev/mapper/system  	/srv      	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=259,subvol=/@srv	0 0

# /dev/mapper/system
/dev/mapper/system  	/var/abs  	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=260,subvol=/@var_abs	0 0

# /dev/mapper/system
/dev/mapper/system  	/var/log  	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=261,subvol=/@var_log	0 0

# /dev/mapper/system
/dev/mapper/system  	/var/tmp  	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=262,subvol=/@var_tmp	0 0

# /dev/mapper/system
/dev/mapper/system  	/var/cache/pacman/pkg	btrfs     	rw,noatime,compress=zstd:3,ssd,space_cache,subvolid=263,subvol=/@var_cache_pacman_pkg	0 0

cat /mnt/boot/loader/entries/arch.conf

root@archiso ~ # cat /mnt/boot/loader/entries/arch.conf 
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options rd.luks.name=11d59ba4-b352-4fde-9781-5a21abda29c7=system root=/dev/mapper/system rd.luks.options=discard rootflags=subvol=@ rw

ls -l /dev/disk/by-uuid

root@archiso ~ # ls -l /dev/disk/by-uuid 
total 0
lrwxrwxrwx 1 root root 15 Sep  4 14:31 2EDE8F85DE8F4455 -> ../../nvme0n1p7
lrwxrwxrwx 1 root root 15 Sep  4 14:31 5CE2-A16C -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Sep  4 14:33 11d59ba4-b352-4fde-9781-5a21abda29c7 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Sep  4 14:31 30FEE400FEE3BC6A -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 10 Sep  4 14:31 2021-09-01-11-25-35-00 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  4 14:31 3719-544C -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  4 14:33 61697513-452c-4ad5-9a05-d22f0ffa67e4 -> ../../dm-0
lrwxrwxrwx 1 root root 15 Sep  4 14:31 EA40E42140E3F26D -> ../../nvme0n1p6

Offline

#2 2024-11-26 17:55:40

ksnw
Member
Registered: 2023-02-26
Posts: 8

Re: LUKS + btrfs, UEFI, systemd-boot: Time out waiting for disk on boot

hey sorry to kick up dusts, but did you ever get this solved? I am seeing similar stuff and couldn't figure out why.

Offline

Board footer

Powered by FluxBB