Questions tagged [luks]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
556 views

LUKS Automatic unlocking locked me out

I have a problem that is very hard for me to diagnose in the first place. I am locked out from my computer which is in my workplace and due to the outbreak I am not allowed to go to my work to get ...
2 votes
0 answers
922 views

Install Ubuntu 22.04 Server with RAID 1 and LVM on machine with UEFI BIOS?

I followed the instructions here - Install Ubuntu 20.04 desktop with RAID 1 and LVM on machine with UEFI BIOS but used the Ubuntu Server Installer to configure the partition layout and added an extra ...
28 votes
2 answers
50k views

How do I automatically decrypt an encrypted filesystem on the next reboot?

Goal I am looking for non interactive way to decrypt a root file partition and a swap partition encrypted with LUKS the next time the system reboots. As well as this, I need a way to undo it after the ...
1 vote
0 answers
17 views

How to recover a deleted LUKS partition

I have created a LUKS encrypted pen drive with the gnome-disks tool, but a time ago I have accidentally formatted the disk, losing the partition. I tried to recuperate the partition stored on sda1 ...
0 votes
1 answer
4k views

Installing Ubuntu 22.04 with full disk encryption (LUKS) and swap partitions

I`m just trying to install Ubuntu 22.04 in my notebook, but I need to have full disk encryption enabled and I would like to define the size of my swap partition. When searching for answers I saw ...
7 votes
2 answers
5k views

Configure Ubuntu 22.04 (ZFS) for automatic LUKS unlock on-boot via USB drive

I've freshly installed Ubuntu 22.04 and used the ZFS+LUKS full drive encryption option from the installer. I've been searching around on the web for a way to configure the drive to unlock ...
7 votes
1 answer
3k views

Are there any advantages/disadvantages (if any?) in running luksFormat on raw drive (sdx) vs a partition (sdx1)?

I've been setting up a few LUKS encrypted drives and noticed that I've been creating the encrypted disk directly on the 'raw'(?) drive, ie. /dev/sdb, while many examples via google are showing it ...
2 votes
1 answer
6k views

Initramfs + Luks - only one password prompt

What I want to achieve: Being asked for a password, only once during boot time; The other (non-root) partitions to use the keyfile inside the /root/ directory. What I have achieved so far: (A) The ...
0 votes
0 answers
17 views

Inaccessible Data after LUKS2 encryption

I tried to encrypt a HDD with an exisiting EXT4 partition on it using Luks2. First I made room for the LUKS2 header (probably the issue I assume...): resize2fs / dev/sdc1 2929710000 Then I started ...
0 votes
0 answers
34 views

Move Ubuntu 22.04 to hardware hp p410i RAID1 with encrypted volumes on BIOS

I have an old hp n40l microserver with Ubuntu 22.04 on board with quite old BIOS as of 2012. Now my SSD 256GB disk is split to 2 partitions: /boot/efi and /. I've bought hp p410i RAID card, and 3 more ...
45 votes
1 answer
3k views

Is it Possible to make "Forget password immediately" the default when opening LUKS encrypted partition?

When a LUKS encrypted partition pops up the unlock window it gives 3 options for how to remember the password. The "Remember password until you logout" is always ticked by default. Is there a way to ...
3 votes
2 answers
5k views

Unlocking LUKS partition with keyfile on USB does not work

I partially followed this What is /lib/cryptsetup/scripts/passdev actually doing? /etc/crypttab 2tb UUID=... /dev/disk/by-label/STICK:/logfile luks,nofail,keyscript=/lib/cryptsetup/scripts/passdev,...
0 votes
1 answer
226 views

Is there a way to enable or configure Full Disk Encryption (LUKS) after installing Ubuntu?

Is there a way to enable or configure Full Disk Encryption (LUKS) after installing Ubuntu?
2 votes
1 answer
2k views

/etc/crypttab timeout option

I have created an encrypted flash drive named 'LUKSFlash'. I have tested with the following: $ sudo cryptdisks_start LUKSFlash /dev/mapper/LUKSFlash now exists $ sudo cryptdisks_stop ...
-1 votes
1 answer
70 views

How do I install Ubuntu to a new disk on a system that already has a disk with Windows installed on it with BitLocker enabled?

I'm creating this question because I wasn't able to find existing questions after searching that described the issue I ran into. Existing questions dealt with the scenario where you want to install ...
0 votes
0 answers
35 views

Is there a manual process to reseal TPM FDE keys based on current system measurements in Ubuntu 23.10?

There are a couple similar questions out there, but here is what I'm trying to figure out... In Ubuntu 23.10, if you change the system config or firmware, then unsealing the TPM isn't going to work, ...
2 votes
1 answer
5k views

Ubuntu + Luks: Volume Group 'vgcrypt' not found (drop to busybox)

Problem: I followed the intructions for installing Ubuntu 16.04 over an EFI system with LUKS+LVM of this upvoted question on AskUbuntu, but I ended up with a somewhat unusable system. The only thing ...
0 votes
0 answers
87 views

My ubuntu 22.04.2 wont boot after successful LUKS decryption

my disk is encrypted using LUKS and everytime I open my pc I always need to provide the write password before I can log in into my device, so as usual I open my pc ready to work, and as usual I was ...
2 votes
1 answer
1k views

Is it safe to delete "/crypto_keyfile.bin"?

I use Lubuntu 20.04 with full-disk encryption. # lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal Each time I boot, there is a one ...
1 vote
1 answer
4k views

No password prompt for full-disk LUKS encryption

I am running Kubuntu 20.04 on a Dell laptop. After an upgrade yesterday, my computer crashed and, on rebooting, the disk decryption password prompt is gone. Now I can't boot into the computer at all, ...
0 votes
0 answers
127 views

How do I image a LUKS system disk with Clonezilla without including all the empty space?

I have a 1 TB NVMe disk with Ubuntu 22 installed with vanilla options, except I used LVM, and enabled LUKS. I'd like to image the disk for easy restores. Simply backing up the files is not enough ...
0 votes
0 answers
54 views

LUKS Container lost due to partitioning by Windows?

I plugged a HDD with a LUKS container on it into Windows and opened the Disk Manager. A dialog appeared where I clicked "Format as GPT", not knowing what I was doing. Apparently Windows wasn'...
0 votes
0 answers
147 views

How do I enable hibernation on Ubuntu 22 on a LUKS system disk with a swapfile?

I have an Ubuntu 22.04.3 LTS desktop. The only swap is a swap file (I removed the swap partition that came as default with the instalation). I followed these instructions to enable suspend to disk, ...
4 votes
1 answer
5k views

LUKS passphrase screen does not show up

I installed Ubuntu with a fully LUKS encrypted LVM. It works fine with one issue: After selecting Ubuntu in Grub while booting, the "enter passphrase to unlock disk" screen does not show up. I can (...
0 votes
1 answer
5k views

How to get Plymouth working with LUKS encryption after NVIDIA driver installation?

When I first set my computer up with LUKS encryption, during boot, right after Grub2, Plymouth takes over and you get a nice graphical screen with the prompt to enter the passphrase. And that screens ...
4 votes
1 answer
5k views

resize an encrypted disk?

so I've been using Ubuntu gnome for about 6 months+ now , and I wanted to install windows alongside as dual boot, but first I need to partition my disk so I can install windows on a separate partition,...
2 votes
1 answer
5k views

Encrypting FAT32 with Luks

In previous versions of Ubuntu I was able to encrypt USB flashdrives using the disks tool in any format I pleased. Now unfortunately I am only able to encrypt a flash drive in EXT format. This is ...
0 votes
0 answers
263 views

Manually Binding TPM2 For FDE In Ubuntu 23.10

In Ubuntu 23.10, you can use TPM2 to unlock LUKS; however, after a firmware update, the system asks for the recovery key in every boot. I was expecting it to refresh TPM2 after entering the key, just ...
4 votes
4 answers
6k 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 ...
0 votes
0 answers
87 views

LUKS LVM installation not booting

I can't get ubuntu 23.10 to boot in the following LUKS & LVM setup. Booting fails after entering the password and going to initramfs console. Devices: root@ubuntu:/# sudo blkid /dev/nvme0n1: UUID=&...
0 votes
0 answers
73 views

Mount external LUKS hard drive

I recently updated my laptop's hard drive to a bigger one. The previous one I mounted it in an external case to transform it in to an external drive. The old drive was encrypted with LUKS. When I plug ...
0 votes
0 answers
22 views

extracting data from fully encrypted ubuntu hard drive from other ubuntu operating system

I installed Ubuntu in an hard drive with encryption but there was a problem in loading opreating system. So, I'm trying to copy my data from that hard drive by connecting it with another system having ...
0 votes
1 answer
211 views

Is it possible to retrofit TPM based disk encryption on system upgraded to 23.10?

There was a lot of rumour about TPM base disk encryption available on Ubuntu 23.10, but looks like all articles meant installation process. Is it possible to retrofit TPM based encryption (effectively ...
1 vote
0 answers
230 views

I've deleted cryptsetup-initramfs

I'm running Ubuntu 20.04 (5.15.-10088.98) with LUKS LVM and have done something stupid. I've tried sudo apt upgrade and get the following problem: I: The initramfs will attempt to resume from /dev/dm-...
0 votes
0 answers
150 views

Can't access LUKS device after cloning

I cloned a partition that is encrypted with LUKS using clonezilla (partclone.org) Now I get the following error when I try to access the LUKS data on the device. sudo cryptsetup luksDump /dev/sde3 --...
0 votes
1 answer
167 views

Minimal BASH-like on LUKS-encrypted install after format of secondary SSD

I can't load ubuntu after I formatted the old SSD I used to have Windows on and that I thought had nothing to do with Ubuntu's boot. The Ubuntu partition is LUKS encrypted and in GRUB I am able to ...
4 votes
3 answers
3k views

Ubuntu 18.04 on kernel 4.15.0-34-generic boots to BusyBox

The machine was a fresh install of Ubuntu 18.04.1 and used LVM and LUKS during install. The machine was working fine on kernel 4.15.0-33-generic. The kernel upgraded from 4.15.0-33 to 4.15.0-34-...
5 votes
3 answers
1k views

Encrypted disk not available in boot process after distro upgrade

Some time ago I installed Ubuntu 20.04 following this guide with btrfs-luks encryption. The boot process used to involve only a single passphrase prompt at the very beginning. Today, after upgrading ...
44 votes
4 answers
44k views

How do I get passwords from the keyring in the terminal for usage in scripts?

When you have a LUKS encrypted drive in your computer, Nautilus or Nemo will show it under Devices as a drive with a little lock on it. When you click it, you need to enter a password. If you choose ...
1 vote
1 answer
1k views

Enable Bluetooth Keyboard before LUKS decryption - Ubuntu 20.04

I need to have my Keychron K8 Bluetooth keyboard working to write my boot-time LUKS disk decryption password. At the moment, I can only use the laptop keyboard as the Bluetooth stack is not enabled ...
0 votes
0 answers
16 views

Predecryption + File name encryption

I am using ubuntu server on an old 2011 imac. I want to encrypt a directory i use frequently with a method that hides the file names (like cryfs), but the encryption is only important for when the ...
0 votes
0 answers
96 views

Does disk encryption or key ring store anything in hardware?

I am running Ubuntu 20.04 (soon 22.04), and am wondering if Ubuntu by default stores any key material in a hardware store like TPM. Specifically I am using standard LUKS disk encryption during setup, ...
0 votes
0 answers
57 views

Uncryptroot-unlock with dropbear doesn't launch my ubuntu

I am facing an issue with a computer with Ubuntu 22.04 LTS. My SSD Disk is uncrypt with LUKS. I have no access to this computer and I only do SSH connexion. Normaly I uncrypt the computer using ...
0 votes
0 answers
47 views

Black screen after passphrase LUKS encryption

I have a problem with ubuntu 22.04. when i put passphrase to LUKS disk the screen becomes all black and I can't do anything. I am completely stuck. What should I do? Thanks for your consideration and ...
58 votes
6 answers
231k views

Can I disable full-disk encryption?

I recently installed Ubuntu 12.10 and it requires a passphrase to boot up (I installed it with an encrypted file system). Do I have to reinstall to change to a standard unencrypted file system?
1 vote
1 answer
238 views

LUKS encrypted USB: "Operation cancelled" error on correct passphrase

I'm asking as a new question because I don't have enough rep to comment on answers, and the drive in question here is removable. I've set up an encrypted USB drive using cryptsetup luksFormat, but I'm ...
0 votes
1 answer
2k 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 ...
1 vote
0 answers
174 views

Decrypt LUKS partition automatically if part of a defined network?

I do have an Ubuntu 22.04 server running at home with LUKS-encrypted root and data partition. At the moment I have to type in the passphrase to unlock the partitions which prevents unattended reboots (...
3 votes
1 answer
2k views

Ubuntu x 2 dual boot: how to get old LUKS-encrypted Ubuntu version back into Grub menu after installing new Ubuntu version in new LUKS partition

I had a LUKS-encrypted Ubuntu 20.04 setup. I followed my own instructions here to shrink the LUKS partition and install Ubuntu 22.04, also LUKS-encrypted. Now, my grub boot menu no longer gives me the ...
1 vote
0 answers
508 views

Gave up waiting for root file system device upon reboot

This question has been asked several times already, but there does not appear to be a generic solution. I have tried multiple solutions but can't seem to get anything to work. I have an Ubuntu Server ...

1
2 3 4 5
12