Re: can't mount LUKS partition with cryptsetup
Michael Kjörling <[email protected]> Tue, 19 Nov 2024 18:15:20 +0000
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 19 Nov 2024 18:06 +0100, from [email protected] (Thorsten Giese): > [...] and read everywhere, that a dm-crypt > Partition ist mountable with "cryptsetup open" (to get my data). Terminology: you _open_ a container, then _mount_ a possible file system within it. The two operations are distinct and not all containers will contain a file system; a canonical example of that is an encrypted swap partition. > When presented with > > Enter passphrase for /dev/nvme0n1p3: > No key available with this passphrase. As long as the header isn't corrupted (and what you posted _looks_ sane at a glance), such issues are often caused by keymap differences. Try switching the keyboard layout to US English without dead keys and type the passphrase as normal; see if that helps. > Before entering the passphrase it says something about /scripts/init-premount, > maybe there is a hint on how to mount it, but I can't find it anywhere. That file is almost certainly within the initrd, which is why you're not seeing it at that path after boot. -- Michael Kjörling 🔗 https://michael.kjorling.se