Questions tagged [luks]
All questions relating to LUKS (the disk-encryption specification) for Linux
660 questions
1
vote
1
answer
56
views
LUKS on a device with bad blocks - doable via GUI?
I have a portable (3,5'') external drive (Seagate, 2TB, USB3) which I would love to use with my Ubuntu 25.10 laptop. But, it has a few bad blocks:
user@user-ubuntu:~$ sudo mkfs.ext4 -c -c -v /dev/sdc1
...
-1
votes
1
answer
47
views
Adding an encrypted LUKS disk to a LUKS+LVM root filesystem?
I have the following problem:
How can I add storage to a machine already using LUKS+LVM without being asked for a passphrase for every added disk?
Goal:
Add space to the logical volume (LV) lv-var ...
0
votes
0
answers
30
views
Samsung T7 Shield + LUKS + ext4 causes USB resets and I/O errors
I have a Samsung T7 Shield 4 TB with a LUKS-encrypted partition and ext4 filesystem with default mount options on Ubuntu 22.04. Writing large files (~1–2 GB) causes the drive to hang, USB resets, and ...
0
votes
1
answer
39
views
Stuck at initramfs after hard reboot
I had to hard reboot my laptop and I landed on this screen.
.
I tried running fsck as this saved me before without luck. This is the output of blkid.
Can someone guide me on how to recover?
0
votes
1
answer
120
views
How to revert back to default LUKS setup in Ubuntu 24.04 after I messed it up?
I have a laptop with Ubuntu 24.04.3 with LUKS encryption set up at the time of installation. I wanted to an "key-file in a USB drive" based unlock option so that I don't have to enter the ...
0
votes
0
answers
30
views
Clevis with tmp 2 cannot start docker service
clevis tmp 2 successfully auto decrypts the disk and boots Ubuntu, however it did not start the docker services.
Prior to using clevis and tmp 2, docker container was able to start after reboot ...
1
vote
2
answers
611
views
Is it possible to shutdown the LUKS unlocking by timeout?
I wonder if I can set the timeout to the boot time LUKS unlocking and let the PC shut down on timeout.
In other words, I want the PC to shut down automatically when I leave it without typing the ...
0
votes
0
answers
47
views
ENCFS files recovery [duplicate]
I have lost a home folder containing 2 ENCFS folders, inside a LUKS partition. Now, the LUKS partition works fine, and I have created a DD image of it, using Testdisk. I have retrieved one of the two ....
0
votes
0
answers
95
views
Restoring a formatted LUKS partition
I accidentally reformatted a drive partition that is encrypted using the standard Ubuntu encryption. The affected partition was incorrectly formatted as NTFS. I did not perform any overwrites when ...
0
votes
0
answers
68
views
Why does my system sporadically go in emergency mode at boot?
I'm using kubuntu 24.04.03, installed on a LUKS partition on an external SSD and for reasons I haven't managed to identify for more than a year, the system sometimes goes into emergency mode at boot.
...
0
votes
0
answers
419
views
How to install Ubuntu 24.04 Desktop with RAID1 and LUKS?
We need to create RAID1 on a server that will have ubuntu 24.04 Desktop version. The disks should be encrypted. After some searching we noticed that there is not an exactly tutorial for this. The ...
1
vote
1
answer
115
views
LUKS encryption on Orange PI 5 NVME
I'm trying to get LUKS encryption to work on my Orange PI 5. I take the following steps:
Install the image on an sd card.
copy the contents of the sd card to te nvme drive using dd
Remove the sd and ...
0
votes
0
answers
92
views
24.04 A NON-boot attached luks encrypted hard drive no longer automounts when unlocked as it did in 22.04
I moved to 24.04 from 22.04 on the same machine. It is a brand new install of 24.04. The boot disks are luks encrypted and they boot and automount perfectly.
The problem is that periodically used ...
1
vote
2
answers
1k
views
Ubuntu 24.04 LUKS encrypted installation with manual partitioning
I have a dual-boot setup with Windows 11 (BitLocker off) and Ubuntu 22.04 (LUKS encrypted). I need to upgrade to 24.04. The default upgrade won't work because the /boot partition is too small and ...
0
votes
1
answer
235
views
Ubuntu 22:04 Full-disk Encryption + FIPS with Dell SafeBIOS, hangs before LUKS decrypt prompt
Key question: Does anyone know how to set up Ubuntu 22.04 LTS with both full-disk encryption (FDE) and a FIPS kernel for a system with Dell SafeBIOS?
Issue: After enabling FIPS mode (via Ubuntu Pro), ...