Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Fresh install: crypttab not working (Read 401 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] Fresh install: crypttab not working

Hi all,

I have an encrypted swap partition and encrypted home partition I'm using /etc/crypttab to open. I'm using runit.

When I boot, I get the messages:

Code: [Select]
Device /dev/by-uuid/[uuid] does not exist or access denied.
Device /dev/by-partuuid/[partuuid] does not exist or access denied.

My /etc/crypttab is:

Code: [Select]
home /dev/by-uuid/[uuid] /etc/homeKey luks
swap /dev/by-partuuid/[partuuid] /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256

[uuid] and [partuuid] obviously replaced with the actual uuid/partuuid.

I have a keyfile at /etc/homeKey for my home partition. My root partition is also encrypted and I decrypt it upon boot (which is working fine).

`cryptsetup` and `cryptsetup-runit` are installed. `dmeventd` is running when I do `sv status dmeventd`.

I am also using `linux-hardened` instead of the normal Linux kernel.

Any help is really appreciated, I just want to get this working.

 

Re: Fresh install: crypttab not working

Reply #1
My first installation with dinit also completely refused to mount the disk via crypttab. I had to add some service to autostart. But I don’t remember whether it was cryptsetup, device-mapper or something else...

Re: Fresh install: crypttab not working

Reply #2
My first installation with dinit also completely refused to mount the disk via crypttab. I had to add some service to autostart. But I don’t remember whether it was cryptsetup, device-mapper or something else...
I have installed cryptsetup and device-mapper. dmeventd is running when I check the status of it. Would you mind checking what services you have running to see if there's anything related to cryptsetup/dm-crypt/etc, maybe there's something you have that I'm missing?

Re: Fresh install: crypttab not working

Reply #3
Update, seems to be an issue with selecting devices by uuid or partuuid, as when I manually run

Code: [Select]
cryptsetup open /dev/by-uuid/[uuid] home

I get the same error, that it does not exist or access denied. Any clue why?

Re: Fresh install: crypttab not working

Reply #4
Ok, fixed it! Very easy fix and just a silly mistake on my part, that's what happens when you stay up till 7am installing a new distro lol (I was up so late because it took ages to wipe my drive and I was determined to do it all in one sitting).

You need to do /dev/disk/by-uuid or partuuid. I was missing the disk.