Questions tagged [luks]

All questions relating to LUKS (the disk-encryption specification) for Linux

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Device /dev/sda3 is not a valid LUKS device

I have created a LUKS encrypted partition according to documentation. But after a reboot I cannot access the drive any more. The error message is very short: Device /dev/sda3 is not a valid LUKS ...
user avatar
  • 101
0 votes
1 answer
16 views

How do I auto-mount a LUKS disk at login WITHOUT unmounting it at logout?

So I have an external LUKS-encrypted disk connected to my machine, and I want to automatically mount it after I log in. After some Googling I found pam_mount, and it does exactly what I want, except ...
user avatar
1 vote
1 answer
172 views

Should Ubuntu 22.04 ZFS with encryption also encrypt the data partion?

I did a clean install of ubuntu 22.04 and I choose ZFS with encryption. Now when I check the partitions, I see that only the EFI and SWAP partitions are encrypted and my data partition is not. Is this ...
user avatar
0 votes
1 answer
68 views

What is causing my system to stall / freeze / corrupt data when using LVM + LUKS full-disk-encryption under Ubuntu Server?

Summary of Issue After enabling the LUKS / dm-crypt full-disk-encryption option available through the Ubuntu installer, disk I/O performance is absolutely abysmal. Writing to the disk stalls / freezes ...
user avatar
0 votes
0 answers
81 views

Ubuntu autoinstall with TPM2/LUKS auto-decrypt

I'm deploying Ubuntu 20.04 using the new autoinstall method. My deployment process works and we are encrypting the root volume with LUKS. I wan't to setup auto-decryption of the root volume on boot ...
user avatar
  • 71
0 votes
0 answers
47 views

How to pipe credentials to cryptroot-unlock for automatic LUKS unlock on boot

My root partition is encrypted with LUKS so on every boot I get prompted for the passphrase, I've installed dropbear-initramfs so that I can SSH in and provide the passphrase headlessly with "...
user avatar
0 votes
0 answers
66 views

How do you make a backup image of a fully luks encrypted drive?

my wife uses Kubuntu 21.10 (no dual boot) and I use a Kubuntu-21.10/Windows-10 dual boot. Both of our Kubuntu installs where done with LUKS and the drives fully encrypted (my dual boot uses two ssd ...
user avatar
1 vote
0 answers
43 views

encrypted ubuntu

I am new to zfs. I read, and sucessfully tested, that encrypted zfs is working. This is a professional laptop so full encryption is required. Current (20.04) setup is separate / and /home, both luks ...
user avatar
0 votes
0 answers
24 views

Enabling hybrid sleep with FDE (LUKS+LVM) and secure boot

So over the past few days, I've been jockeying around trying to figure out a way to do this: using hibernate on Ubuntu. My setup is as follows: I have two NVMe SSDs: one has Windows 11 installed (...
user avatar
  • 11
0 votes
0 answers
27 views

Are my files encrypted in sleep mode?

I have a simple questions but can't to seem to find an answer online. I've installed Ubuntu 20.04 using full disc encryption. At startup, my laptop now asks me for a password to decrypt. I use suspend ...
user avatar
  • 111
0 votes
0 answers
34 views

Not booting after changing LVM/LUKS password

I changed the LVM/LUKS password and when I needed to reboot the computer following a "partial upgrade" it would not boot up. I am prompted for the password, when I type in the old password I ...
user avatar
0 votes
0 answers
73 views

How to boot live Ubuntu from ISO on an encrypted LUKS partition

For a while I've been wanting to set up my ultimate everyday-carry USB drive, and my current setup is a hybrid MBR-GPT with EFI 32, EFI 64 and legacy BIOS GRUBs on a FAT32 partition that can also be ...
user avatar
  • 1
0 votes
0 answers
21 views

How to install Ubuntu 21.10 to a mapper device (to dual boot LUKS) [duplicate]

I tried to use this very old post as a model to install directly to the LUKS mapper instead of to an LVM set on top of the mapper, but the Ubuntu 21.10 installer explicitly forbids installing to a ...
user avatar
  • 101
1 vote
1 answer
125 views

Troubleshooting Ubuntu autoinstall for desktop with LUKS

I'm trying to troubleshoot an Ubuntu autoinstaller using cloud-init & autoinstall. Ideally I'm trying to have it encrypt & partition the main OS disk on a laptop after the installer runs. ...
user avatar
0 votes
1 answer
383 views

Ubuntu 20.04 does not start after update luks encrypted disk

The problem: A Dell notebook, after a recent update the system does not start any more. I'm tapping around the encrypted disk, or maybe its related to a graphics prlem. Normally, after getting through ...
user avatar
1 vote
0 answers
36 views

No Password Prompt During Boot (Kubuntu 21.10)

I use Kubuntu 21.10, and have KDE 5.24.1, but this happened on older KDE versions, too. When I startup, I choose my installation from GRUB, and then I am presented with what should be the password ...
user avatar
0 votes
0 answers
31 views

Ubuntu's LUKS password prompt does not recognize my local keyboard layout

During the installation of Ubuntu 20.04 I have setup a keyboard layout that corresponds to the keyboard layout of my country. Unfortunately, when I setup a LUKS encrypted partition during installation,...
user avatar
0 votes
0 answers
38 views

How do I rebuild/reconnect encrypted RAID array on new computer?

I am looking for help to have a previously built/functioning 2 HDD RAID1 array (encrypted with LUKS and containing two partitions) mount/decrypt at boot on a new rig. I'm having trouble finding ...
user avatar
0 votes
0 answers
146 views

Ubuntu 21.10 encrypted ZFS unbootable, inaccessible

I am in the unfortunate situation of having installed exactly this configuration in the middle of December 2021. Ubuntu 21.10 encrypted ZFS with root and boot both encrypted, with luks. All done with ...
user avatar
1 vote
1 answer
81 views

LUKS password randomly not working on boot

I have an odd problem and I am not sure what the reason might be. Sometimes, randomly my encryption password is not accepted and I get the following error message while booting up my computer: ...
user avatar
  • 11
0 votes
0 answers
33 views

Data recovery from deleted partitions [duplicate]

I accidently deleted two partitions from an external usb drive. One was a blank ntsb partition with about 1gb. The other was a LUKS partition of the rest of the 250gb drive. I did not format or do ...
user avatar
0 votes
0 answers
57 views

Preseed ubuntu - multiple passwords to Luks

I would like to add at least two passwords to LUKS during installation system from preseed file. In pressed file I have my first password: d-i partman-auto/method string crypto d-i partman-crypto/...
user avatar
  • 1
0 votes
1 answer
47 views

2 alternating lvm luks encrypted ssd drives with a USB booting issue

I hope everyone is healthy and safe. I have one lvm luks encrypted ssd let's call it "A" and it is the main drive inside the laptop, and one lvm luks encrypted ssd on USB let's call it "...
user avatar
1 vote
0 answers
45 views

Deja dup with LUKS

I have my home partition backed up on an external hard drive via Deja Dup. This is my only partition except my boot partition. I’d like to enable LUKS on it, so would it work to just do it (which ...
user avatar
  • 111
0 votes
0 answers
17 views

Encryption of external hard drive failed

I have an problem with my external hard drive. It is fully Luks-encrypted and normally unlocks automatically on boot-up. Maybe it got ejected without safely disconnecting it. When I connect the drive ...
user avatar
  • 1
2 votes
0 answers
157 views

Hoe to link swapfile to RESUME variable on LUKS encrypted drive? | Ubuntu 21.10

I want to have 32GB of SWAP on LUKS encrypted filesystem and have hibernation enabled. My basic swap partition was 1GB, and I've made ´/swapfile'of 31GB. I first tried with fallocate command as ...
user avatar
2 votes
0 answers
544 views

does there exist a concise guide installing Ubuntu 21.10 desktop with LVM and LUKS 2 full disk encryption, enabling encrypted hibernation?

I've previously only used the graphical installer for Ubuntu with the simple automated partitioning scheme with disk encryption, however I would like to be able to have encrypted hibernation -> ...
user avatar
0 votes
0 answers
185 views

Mount LUKS encrypted partition at login

I would like to mount a LUKS partition on login. The solutions I have found involve using either: a LUKS passphrase that is equal to the user's password, or a keyfile that is stored in the HOME ...
user avatar
  • 299
0 votes
0 answers
69 views

Ubuntu LUKS NBDE for GNOME Desktop

Has anyone successfully set up NBDE, using tang and clevis, on Ubuntu Desktop running GNOME? I successfully set up LUKS on Ubuntu 18.04 Desktop using GNOME. I created a Tang server and verified that ...
user avatar
0 votes
0 answers
33 views

Installing parallel Ubuntu alongside the productive system

To make it short: I am on Ubuntu Budgie 20.04, all apps are running (including special research software and all I need for my work) I want to test the new Ubuntu (not Budgie, because Gnome got the ...
user avatar
0 votes
0 answers
25 views

Cannot boot anymore on full root LUKS volume

I have a server with a 300GB SSD set up as encrypted LUKS volume with default partitioning (all into the same place / /home etc.). Recently I started to get the / volume full with unknown stuff (it's ...
user avatar
0 votes
0 answers
104 views

LUKS don't recognize my correct passphrase anymore right after enrolling a new generated MOK

I have a laptop with Ubuntu 20.04 with Linux Unified Key Setup used for encrypting a logical volume. I had to install a third-party kernel module and I followed the last point of the tutorial "...
user avatar
1 vote
1 answer
65 views

how to read raw data from disk

I want to use LVM over LUKS. I just filled large disk with semi-random data: I've put LUKS on the new drive (with a password I have already forgotten) Then dd if=/dev/zero of=<the whole encrypted ...
user avatar
  • 11
1 vote
0 answers
96 views

Having trouble mounting encrypted disk (ZFS) on Ubuntu

I have a new SSD to backup photos. I installed Ubuntu 21.10, with ZFS and encrypted. Everything worked well and I decided to backup some photos. Now, I wanted to boot with my old encrypted disk (...
user avatar
0 votes
0 answers
29 views

Can't mount encrypted drive, even after creating an FS on it

I have a USB flash drive with one partition:   ~ ↪ sudo sfdisk -l /dev/sdg The backup GPT table is corrupt, but the primary appears OK, so that will be used. Disk /dev/sdg: 1.93 TiB, 2097152000000 ...
user avatar
1 vote
0 answers
949 views

grub says: "attempting to decrypt master key" on every boot

The system is recently upgraded to 21.10 Every boot starts with this simple text message. I need to enter the LUKS passphrase. Once done .. it boots as before, and with the nice GUI, asks again for ...
user avatar
  • 1,239
1 vote
0 answers
139 views

How to change name of LUKS encrypted partition?

I am using ubuntu 20.04.2 (64bit) on my dell laptop. I have three drive partition named as D,E and H. I have enrypted D and E with LUKS. Drives are encrypted well, but the drive-name I have set at the ...
user avatar
0 votes
0 answers
58 views

Ubuntu 20.04 alongside xubuntu 20.04 both encrypted with LUKS

I need to install Xubuntu and Ubuntu on the same harddrive both of them need to be encrypted separately. Is it possible? While installation there is no option "Install alongside" only "...
user avatar
1 vote
1 answer
762 views

Is there a guide to configuring TPM2 with LUKs in Ubuntu? I have issues!

I am not a beginner but am no way an expert running Linux operating systems. I am trying to configure a TPM2 with LUKs in Ubuntu to verify its functionality and use disk encryption if possible. I read ...
user avatar
0 votes
0 answers
24 views

Stuck on mounting ext4 but luks is unlocked on usb drive

I have a drive that I cannot access anymore. I have it on LUKS and at first it worked properly, but now it's just stuck on mounting the EXT4 part of the drive. I tried using gparted and mkusb but both ...
user avatar
  • 1
0 votes
0 answers
43 views

LUKS-drive: How to Save Password but do not always Mount?

After some research, I seem to be asking the reverse of what is popular. Using Ubuntu 20.04, I have 4 x LUKS USB drives and 2 x LUKS Partitions on my SSD. When I first Mounted them I was asked the ...
user avatar
0 votes
0 answers
44 views

Copy of a hard disk, error during the mount because of luks

A few weeks ago I encrypted an external hard drive with luks and the header bugged. I can still open the drive with my password but it shows me an empty folder. So I made a copy of the whole disk with ...
user avatar
4 votes
2 answers
1k views

How to enable systemd-cryptenroll TPM2 support in Impish Indri

Background and Setup: I have installed a fresh copy of Ubuntu 21.10 on my laptop. Before install I cleared the TPM2.0 module from BIOS and during install I enabled SecureBoot. I selected full disk ...
user avatar
  • 41
2 votes
0 answers
285 views

How to get more space on /boot? (extra kernels have been removed)

i'm on ubuntu 21.04 trying to update to 21.10, and getting the usual error The upgrade has aborted. The upgrade needs a total of 287 M free space on disk '/boot'. Please free at least an additional ...
user avatar
  • 65
0 votes
0 answers
73 views

LUKS after or before LVM

Difference in approaches if i first do LVM, pvcreate - vgcreate - lvcreate, and after cryptosetup luksFormat - open, or i'll do it in reverse order (format - open and do LVM). LVM on LUKs or LUKS on ...
user avatar
0 votes
0 answers
61 views

Restore unencrypted partition into a LUKS encypted partition on 20.04

I have an SSD with multiple partitions. Device Start End Sectors Size Type /dev/nvme0n1p1 2048 309247 307200 150M EFI System /dev/nvme0n1p2 309248 571391 ...
user avatar
1 vote
1 answer
190 views

Ubuntu install with mdadm and multiple luks partitions

Given 3 identical drives partitioned for an ubuntu 20.04 install as follows (swap and /home are on separate luks volumes to share with another Linux install on sda3/4) Partition Format Mount Point /...
user avatar
  • 111
1 vote
0 answers
64 views

Does LUKS' luksAddKey have a problem with passwords being exactly 64 characters long?

Ubuntu: 20.04.3 LTS LUKS Version: 1 Cipher name: aes Cipher mode: xts-plain64 Hash spec: sha256 I noticed some weird behaviour when using luksAddKey, when the password is exactly 64 characters long. ...
user avatar
  • 116
1 vote
0 answers
75 views

How might an Ubuntu machine that has full-drive encryption be altered remotely to enable remote reboot?

I've got a remote machine that was set up with full-drive encryption. I need to remotely reboot the thing. Is there some way to remotely alter the machine such that the passcode for decryption gets ...
user avatar
2 votes
1 answer
50 views

Hybrid Ubuntu with /home in an hdd encrypted

So, I bought an SSD and I'm planning to install Ubuntu 20.04 in it. As I've read before if I do a full disk encryptation I may lose SSD performance. So I thought about doing this: I want to install ...
user avatar
  • 21

1
2 3 4 5
11