Ubuntu Version:
24.04 LTS
Desktop Environment (if applicable):
Cinnamon
Problem Description:
Trying to mount/open LUKS+BTRFS partition with systemctl start
, which never asks for the LUKS password and always gives error:
Dependency failed for media-1tbmx500-BTRFS-id5_top_volume.mount - /media/1tbmx500/BTRFS/id5_top_volume
Crypttab line for this partition:
1TBMX500 UUID="DELETED" none luks,nofail
Both manual sudo cryptsetup luksOpen
(via the same UUID as in crypttab) and sudo mount
(using same fstab’s entry) work w/o any issue.
If I remove nofail
from crypttab line above, systemctl start
still never asks for the LUKS password and waits forever.
Relevant System Information:
systemctl --version
systemd 255 (255.4-1ubuntu8.8)
+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
Screenshots or Error Messages:
In journalctl:
polkitd[1244]: Operator of unix-session:c6 successfully authenticated as unix-user:DELETED to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.304285 [systemctl start /media/1tbmx500/BTRFS/id5_top_volume] (owned by unix-user:DELETED)
systemd[1]: Dependency failed for media-1tbmx500-BTRFS-id5_top_volume.mount - /media/1tbmx500/BTRFS/id5_top_volume.
systemd[1]: media-1tbmx500-BTRFS-id5_top_volume.mount: Job media-1tbmx500-BTRFS-id5_top_volume.mount/start failed with result 'dependency'.
In terminal:
A dependency job for media-1tbmx500-BTRFS-id5_top_volume.mount failed. See 'journalctl -xe' for details.
What I’ve Tried:
Checked journalctl and dmesg.
systemctl daemon-reload
a number of times.
Removed and added nofail
to relevant crypttab nofail.
Was going to create issue at the systemd upstream GIT, but in other issues the response is:
we only support the latest two major releases here, namely v256 and v257.
.
- Verified UUID is correct.
- Unsuccessfully tried to find relevant unit in
/etc/systemd/system
- there’s none.
How to determine what’s meant by dependency job
?
Couldn’t find any details about dependency job
yet.
Why doesn’t systemctl start
ask for LUKS password?
Thank you.