Skip to main content
Topic: Encrypted LUKS Patition won't decrypt on boot (Read 387 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Encrypted LUKS Patition won't decrypt on boot

when i installed artix on this machine with the encrypt drive option and to have a seperate home partition. but when i ran out of space on my i found out i wasn't using my seperate home partition at all.

in my `/etc/crypttab` file I have my home partition
`luks-2c8008c7-f1c3-48e4-9a15-41dc04dc57a3 UUID=2c8008c7-f1c3-48e4-9a15-41dc04dc57a3     /crypto_keyfile.bin luks`

and when i run `sudo blkid` it has the same UUID as in my `/etc/crypttab`
`/dev/nvme0n1p4: UUID="2c8008c7-f1c3-48e4-9a15-41dc04dc57a3" TYPE="crypto_LUKS" PARTUUID="2e662274-78ef-1148-b177-c4b0e9fa7dde"`

but when I boot it doesn't show up in /dev/mapper. yet my root and swap partitions show up.

it's setup in /etc/fstab properly
`/dev/mapper/luks-2c8008c7-f1c3-48e4-9a15-41dc04dc57a3 /home          ext4    defaults,noatime 0 2`

but won't decrypt the drive when i boot my machine.

i've ran `sudo cryptsetup luksOpen /dev/nvme0n1p4 home` and the partition isn't corrupted or anything

Re: Encrypted LUKS Patition won't decrypt on boot

Reply #1
What init are you using and do you have the appropriate crytsetup-${init} package?

Re: Encrypted LUKS Patition won't decrypt on boot

Reply #2
yes I am
> pacman -Q | grep cryptsetup
cryptsetup 2.6.1-1
cryptsetup-openrc 20211126-1

I can mount my root and swap partitions correctly. My home partition which is on the same drive won't decrypt upon boot. The details are in my original post.

Re: Encrypted LUKS Patition won't decrypt on boot

Reply #3
I thought openrc used /etc/conf.d/crypttab or something like that. I'm not 100% sure.