Questions tagged [luks]
All questions relating to LUKS (the disk-encryption specification) for Linux
601
questions
0
votes
0
answers
16
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
27
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 ...
0
votes
1
answer
139
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?
-1
votes
1
answer
63
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
32
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, ...
0
votes
0
answers
69
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 ...
0
votes
0
answers
116
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
53
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
138
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, ...
0
votes
0
answers
253
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 ...
1
vote
0
answers
850
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 ...
0
votes
0
answers
79
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
67
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
21
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 ...
1
vote
0
answers
228
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
1
answer
201
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 ...
0
votes
0
answers
136
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
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
95
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
51
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 ...
1
vote
1
answer
225
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
0
answers
152
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 (...
1
vote
0
answers
487
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
vote
1
answer
532
views
No prompt to decrypt luks partition on boot
Fresh install of Ubuntu 22.04.2 LTS to a LUKS partition. When I boot, it never prompts me for my LUKS password, fails to load the system, and instead puts me at a command prompt. If I type
cryptsetup ...
1
vote
1
answer
235
views
Extends encrypted partition to new SSD
I have added a 1TB disk to my ubuntu 22.04 install.
I have installed it using LVM+LUKS. lsblk gives this
...
nvme1n1 259:0 0 931,5G 0 disk
nvme0n1 259:1 0 476,9G ...
0
votes
0
answers
62
views
kubuntu: kwallet forgot my luks passwords after upgrade to 22.04
upgraded from 20.04 to 22.04.
mostly went fine.
however, i had an encrypted partition which i just could click the folder in dolphin and it would autofill the password but since the upgrade it keeps ...
1
vote
0
answers
82
views
LUKS FDE password policy not enforced?
I am noticing that on a vanilla Ubuntu 22.04 LTS installation, there is no password policy whatsoever enforced when changing the LUKS FDE password using cryptsetup luksChangeKey or luksAddKey.
In the ...
0
votes
1
answer
164
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
1
answer
4k
views
LUKS + TPM2 + auto unlock at boot (systemd-cryptenroll)
Please, help me to finish setup LUKS + TPM2 + auto unlock at boot.
I have installed clean Ubuntu 22.04.2 I have encrypted partition in GUI while installing OS. I have installed all updates.
Ubuntu 22....
0
votes
0
answers
212
views
Plymouth not asking for LUKS password without ESC in Ubuntu 22.04
On Ubuntu 22.04 and BGRT plymouth theme, the plymouth turns black. The ESC key shows me that I need to enter the LUKS password of my home partition. Entering ESC key again shows my plymouth with a ...
0
votes
0
answers
408
views
LUKS decrypted partition mapped name
I've successfully configured LUKS encryption on various partitions (root, home, extra) on ubuntu 22.04. I've to insert a password for decrypting the root part and after other partitions are decrypted ...
0
votes
0
answers
55
views
Is it possible to recover this LUKS-encrypted SD card?
I have a large size SD card that was encrypted with LUKS using the GNOME Disk Utility running on Ubuntu. I had some cherished photos on it. I've managed to accidentally format the SD card and wish to ...
0
votes
1
answer
458
views
Ubuntu encryption during installation
For the first time while installing Ubuntu 23.04 I clicked the button for encryption. For bad luck the installation got stuck, so now I have an encrypted Lenovo laptop and I can't decrypt mmcblk0 even ...
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 ...
0
votes
0
answers
903
views
Initial Ubuntu Server 22.04.2 LTS Install - LUKS - headless/remote decrypt
Installing Ubuntu Server 22.04.2 LTS for the first time ever on a Beelink Mini PC (SEi12). Went for the most standard installation possible. Configured using a guided storage layout; i.e.
Use entire ...
0
votes
0
answers
1k
views
How do I install Ubuntu 23.04 on an encrypted Btrfs filesystem?
I currently use an encrypted Btrfs filesystem (cryptsetup+luks), which I could set up easily using the Ubuntu 22.10 setup. With Ubuntu 23.04, I only managed to install it on an encrypted LVM+ext4 ...
0
votes
0
answers
55
views
Encrypt hard disc on ubuntu server 18.04 with luks and yubikey
This https://askubuntu.com/a/599826/1068251 do not work for ubuntu server 18.04.
Ubuntu ask about touching yubikey and repeat again question. I can login only with passphrase.
I found other solution ...
0
votes
1
answer
629
views
Mount encrypted volume in read/write mode
The canonical method to mount encrypted volumes from the command line on later Ubuntu editions involves udisksctl. However, that recipe mounts the volume in read-only mode.
$ udisksctl unlock -b /dev/...
1
vote
0
answers
128
views
Can I view the progress of a LUKS encryption that was initiated in the GUI? Alternately can I calculate it?
I am encrypting a 2TB internal hard drive with LUKS using the default Disks app (see image). I am aware that these things are supposed to take time (I've seen days, even weeks, in my cursory googling),...
0
votes
0
answers
184
views
Full disk encryption with 'fire and forget' autoinstall in 20.04+?
I have a small problem. I'm trying to do a 'fire-and-forget' install of Ubuntu 20.04 with full disk encryption. And I keep getting prompted for the disk password during the process. (I believe this is ...
0
votes
0
answers
291
views
cryptsetup: Device /dev/sda4 is not a valid LUKS device
chatGPT could not solve this one :-)
I mistakenly erased my username from /etc/sudoers
I need to rescue the system, which has full disk encryption.
I rebooted on a bootable usb drive (Finnix) and ...
1
vote
1
answer
1k
views
Yubikey Two-factor Authentication Encryption via LUKS - Spare Yubikeys how to create an additional key
My main question is how to create an additional key (instructions Yubikey Two-factor Authentication Full-disk Encryption via LUKS ) to use if I lost the key. Should I create an additional new code on ...
0
votes
1
answer
4k
views
how to restore btrfs snapshot backup of root partition with subvolume for home
I have btrfs over luks over lvm on a physical ssd drive.
I've done some crap with apt and break my system. I want to reverse it to previous state.
When i boot on a live usb and decipher my luks drive ...
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 ...
2
votes
0
answers
150
views
Native laptop keyboard not recognised when asked for disk encryption upon reboot
Linux amateur here, I have a Microsoft Surface laptop 2, running Ubuntu 22.4 with the organic ubuntu disk encryption (LUKs I believe) disk encryption. When the device is rebooted, it asks to unlock ...
0
votes
0
answers
461
views
LUKS full disk encryption fails from boot but live-CD is able to unlock partition - Kubuntu 22.04.1 LTS
When trying to boot with Kubuntu I can't get the root to decrypt. That is an old installation that worked for months. I can't remember what was updated before it stopped working.
I've verified that it ...
0
votes
0
answers
241
views
Make cryptsetup prompt at boot time ignorable
I have a machine with multiple users. Home directory for one user is encrypted with LUKS. There is a crypttab entry for opening the LUKS partition at boot time.
When the system boots up, it asks for ...
0
votes
1
answer
533
views
Allow user to change luks password
Disk Utility allow to change hard disk encryption password with a simple GUI.
I would like to allow non-admin/non-root user to change their luks password (IT have another slot for recovery).
...
1
vote
3
answers
362
views
Recovering LUKS partition with shred disk
I have Ubuntu 18.04 LTS encrypted on my SSD and I ran the command:
sudo shred -vfn 1 /dev/sda
and have overwritten 8-10 GB I guess.
Furthermore, my computer could not load the password input window ...