this post was submitted on 04 Feb 2025
13 points (100.0% liked)

Linux

2541 readers
21 users here now

Shit, just linux.

Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts

founded 2 years ago
MODERATORS
 

cross-posted from: https://sh.itjust.works/post/32235573

I just installed a Debian 13 Trixie system on my laptop. I have 5 GPT partitions on 1 terabyte SSD and NO LVM!

partition layout

sda1 vfat 256M   EFI system partition
sda2 ext4 512M   boot partition
sda3 LUKS 460G   encrypted root
--   sda3_crypt  root partition, unlocks with passphrase
sda4 LUKS 465G   encrypted home
--   sda4_crypt  home partition, unlocks with passphrase
sda5 LUKS 4G     encrypted swap
--   sda5_crypt  swap partition, unlocks with keyfile

GRUB works fine, it loads the kernel, then I enter the password to decrypt my root partition. It decrypts correctly, then hangs for 1 minute 30 seconds.

After that, I get this error:

[ TIME ] Timed out waiting for device dev-mapper-sda4_crypt.device - /dev/mapper/sda4_crypt.
[DEPEND] Dependency failed for home.mount - /home/
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
[DEPEND] Dependency failed for systemd-fsck@dev-mapper-sda4_crypt.service - File System Check on /dev/mapper/sda4_crypt.
[ TIME ] Timed out waiting for device dev-mapper-sda5_crypt.device - /dev/mapper/sda5_crypt.
[DEPEND] Dependency failed for dev-mapper-sda5_crypt.swap - /dev/mapper/sda5_crypt.
[DEPEND] Dependency failed for swap.target - Swaps

Not once does it ask me for the password to decrypt my home partition, it just waits until it fails.

you are viewing a single comment's thread
view the rest of the comments
[–] TootSweet 2 points 16 hours ago* (last edited 16 hours ago) (1 children)

Maybe try entering the password during that 1.5 minutes?

My thought process is that maybe it does print a prompt, but it does so while the boot process messages are going, and so the prompt just kindof gets lost somewhere in the scrollback buffer. But since it is (or rather if it is) waiting for input, it might work fine if you just enter the password and hit enter.

If as you type, it doesn't echo what you're typing, I'd say that's at least a bit of evidence that my hunch is right.

If that doesn't do it for you, maybe share what distro you're using, as well as the contents of your /etc/crypttab.

[–] [email protected] 2 points 15 hours ago (1 children)
[–] TootSweet 3 points 13 hours ago

Wow. I swear I reread the post like 5 times looking for that info. Thanks.