Questions tagged [cryptsetup]
cryptsetup is a command-line utility for managing disk volumes encrypted using the dm-crypt kernel subsystem (Linux versions 2.6 up and DragonFly BSD).
264 questions
3 votes
2 answers
363 views
Correct permissions for a LUKS key file
journalctl -b shows: systemd-cryptsetup[1807]: Key file /some-path/keys/sda1.luks is world-readable. This is not a good idea! … systemd-cryptsetup[1807]: /some-path/keys/sda1.luks has 0644 mode that ...
3 votes
3 answers
669 views
cryptsetup block size preventing from using it
I used cryptsetup to encrypt a disk. I followed this tutorial, which uses the default values. Afterwards I used the disk with no issues and backed up my data. Now I connect it again and returns error ...
1 vote
1 answer
182 views
Damaged LUKS encrypted HHD - need help recovering
I have a 2 TB Western Digital MyBook I encrypted with LUKS over a year ago. A few months ago, I decided to be reckless and accidentally formatted the disk in Windows when trying to create a boot-able ...
2 votes
1 answer
1k views
How to automatically mount external BitLocker encrypted drives at boot on Linux
How do I ensure that an external, BitLocker encrypted NTFS drive is automatically decrypted and mounted at boot time on a Linux system?
0 votes
0 answers
112 views
Recovering encrypted LVM on top fo RAIDs but LUKS header offset by 2MB
I am trying to recover my data from a 8 year old configuration. 8 years is the last time I tried to mount this configuration but the computer died. The configuration is thus: LUKS encryption on top ...
0 votes
0 answers
338 views
Systemd shutdown hanging for 90 seconds due to luks/btrfs
ver since I set up my LUKS-encrypted BTRFS RAID1 between my two NVMe drives on Debian 12, the shutdown process has taken way too long, about a minute and a half. I had to get a video of the shutdown ...
0 votes
0 answers
108 views
Converting LUKS to LUKS2 breaks password
I've got a system with LUKS partitions. I'd like to convert them to LUKS2 to see if I can simplify my setup using partition labels. When I run cryptsetup convert <partitionNode> --type LUKS2 it ...
1 vote
1 answer
393 views
Minimizing the size of the LUKS Header
With cryptsetup I will create some LUKS encrypted files with detached header. In the files I will write once and read repeatedly. I do not need to change any key. How can the size of the header be ...