Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [luks]

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

0
votes
1answer
133 views

clevis/dracut luks unlocker - early dracut unlocker not engaging upon boot

How to get FDE unlocked by clevis early dracut unlocker? I have installed Ubuntu 18 Server full disk encryption. clevis (from source). dracut (from source, to resolve clevis build dependencies) sudo ...
1
vote
1answer
387 views

LUKS/clevis fstab: “A start job is running for dev-mapper-encryptedfs.device (5min / no limit)”

Anyone know who can describe how to get dev-mapper stop halting boot? (LUKS/clevis with /etc/fstab entry) I've setup'ed clevis9 / LUKS with late boot authentication sudo systemctl enable clevis-luks-...
0
votes
1answer
1k views

Should I use LUKS1 or LUKS2 for partition encryption?

In the process of setting up LUKS encryption on my Ubuntu partition, I came across the --type luks2 option in the cryptsetup man pages. From what I've read, there don't appear to be any reasons not to ...
8
votes
1answer
2k views

Ubuntu with full disk encryption - bad password after upgrade to 18.04

A few months ago I set full disk encryption during installation of Ubuntu 17.10. Now, I've decided to upgrade. The upgrade ran to the end without any problems. However, after reboot I am not able to ...
3
votes
0answers
1k views

Why was home encryption dropped in the 18.04 installer?

You can no longer choose to encrypt your home directory with the Ubuntu 18.04 installer. Why? The official release notes for Ubuntu 18.04 state: The installer no longer offers the encrypted home ...
0
votes
0answers
238 views

Is there a supported way to install Ubuntu to an existing encrypted partition with LVM?

I have previously installed Ubuntu on my hard drive with one big encrypted (LUKS) partition, containing an LVM volume group. The thinking was that when I would later want to install a new version of ...
2
votes
0answers
2k views

Ubuntu 18.04 + LUKS + LVM. System boots only after hard reset

Today I dowloaded xUbuntu 18.04 amd64 Desktop and I decided to install it on my Lenovo ideapad 310 using LUKS encryption and LVM (I never installed Ubuntu before in this configuration). I have ...
1
vote
1answer
101 views

LUKS Encrypted Hard Drive — Passphrase includes '£'

I recently changed my passphrase through 'Disks' and I've included the character £ in it. I realise now that the UK keyboard mapping only applies after this is done, so trying to type £ gives me # ...
0
votes
0answers
46 views

My Ubuntu is booting to a black screen. What can I do? [duplicate]

My LUKS-encrypted Ubuntu 17.10 install normally would boot to a display that requests a passcode to decrypt the drive and then would boot to the Ubuntu login display. Instead it is now booting just to ...
0
votes
1answer
81 views

What is the leading 2048 sectors and in the first two partitions?

After booting from Live USB (16.04): ubuntu@ubuntu:~$ sudo fdisk -l [...] Disk /dev/nvme0n1: 953.9 GiB, 1024209543168 bytes, 2000409264 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
0
votes
0answers
39 views

Xubuntu mounts Luks disks always as root

I experienced a difference between Xubuntu 16.04 and Ubuntu 16.04, because Ubuntu mounts external luks encrypted disks as normal user by default, but Xubuntu does with root user. So the normal user ...
1
vote
2answers
1k views

How do I auto-mount LUKS partition?

How do I automount a LUKS encrypted partition in a secure way? Ideally either when I log on (and therefore my password in at the log in screen), or once I get to desktop have Ubuntu ask for my ...
1
vote
0answers
86 views

External hard drive gets disconnected while writing files to it

Ubuntu 17.10 I have a HW-RAID enclosure with two drives in RAID 1. The drive is formatted and encrypted LUKS/EXT4. The drive works perfectly when mounted or dismounted or when a few small files are ...
1
vote
0answers
60 views

Trying to set up multiple OS partitions, that both point to the same home partition, inside LUKS container

Encryptfs has been removed from 18.04, in favour of full disk encryption (LUKS). See here for confirmation. This means that my current set up of having an encrypted home directory on a different ...
0
votes
1answer
13 views

RM on an LUKS installation?

I am just wondering what will happen if you do sudo rm -rf / --no-preserve-root on an LUKS installation... Will the LUKS information be corrupted, rendering it useless (impossible to recover files) or ...
4
votes
1answer
76 views

VirtualBox using LUKS for root and shrinking

So I installed Ubuntu 16.04 in a VirtualBox. Using setup, I encryptet the whole / partition. The disc is dynamic, and up to 200GB. I am using less than 20GB according to df -h, 180 GB are free on my /...
1
vote
0answers
40 views

Mount encrypted Hdd

I had some issues with my Hdd that is encrypted. I KNOW the passphrase, but I might have messed up something else (maybe LUKS header?) and now even with passphrase, I get an error: Error unlocking /...
0
votes
1answer
113 views

Unable to boot into LVM/LUKS on second disk

I have one Linux OS (Linux Mint) installed on my first hard disk inside a LUKS partition and now I'm trying to install a dual boot scenario on a second disk. I successfully installed Ubuntu into a ...
1
vote
2answers
51 views

Passphrase during boot

Jus installed ubuntu on my Asus laptop, with 256 sad HD. It demands a passphrase with the following message: Please unlock disk sda3_crypt My research discovered that my whole HD is encrypted, it's ...
1
vote
1answer
945 views

How to fix a not booting ubuntu setup with encrypted root disk?

Ubuntu is not booting but printing weird things, either /run/lvm/lvmetad.socket: connect failed: No such file or directory or /sbin/cryptsetup not found then falls back to busybox after a few ...
0
votes
1answer
394 views

Can't get Ubuntu to boot from LUKS / LVM group on external drive on iMac with refind

I have a 2017 iMac and am trying to install Ubuntu on an external USB3 drive. The external drive has a GPT partition table (no hybrid MBR) and is partitioned like so: /dev/sda1: EFI partition /dev/...
0
votes
0answers
357 views

Ubuntu 16.04 and LUKS all partition

I need to move old system (/dev/sda). Ubuntu 16.04 is LUKS partition. I would like to move the system (on /dev/sdb) so that all partitions (including /boot) are encrypted. I have already copied the ...
0
votes
0answers
293 views

Decrypt Partition (LUKS)

I really hope, that someone can help me... I need to access files on an encrypted USB-drive but my pass phrase isn't working and the long string of letters and numbers I was asked to write down when I ...
0
votes
0answers
103 views

Preseeding with software Raid + LUkS +LVM

Has anyone had any luck Preseeding Software RAID with Encryption and LVM? So far I am only to preseed SW RAID with LVM no luks. Thanks
1
vote
0answers
435 views

cannot mount luks-encrypted partition from live usb

For a while my Ubuntu hasn't been booting anymore as it tells me to update the microcode. I've asked about it here but wasn't able to resolve it. I had my hard drive encrypted so I've decided to focus ...
0
votes
0answers
246 views

Why Luks only asks for password once at boot for 2 devices?

I have the following lines in /etc/crypttab: cryptswap1 /dev/sda2 none luks hd-crypt UUID=xxxx none luks and both use the same luks password. The behaviour of Ubuntu upon boot is: Please enter ...
0
votes
0answers
226 views

Boot-repair with full disk encryption (LUKS) and LVM and UEFI

I've tried using boot-repair to fix a damaged boot partition with no luck Would I be right in thinking the additional complication of LUKS encryption and LVM is too much for boot-repair to handle, or ...
0
votes
0answers
54 views

Linux encryption for application files

I had a scenario where I would like data written my application database to be encrypted by Linux file system. I don't want to handle encryption on application side and also don't want to use ...
1
vote
1answer
54 views

Is there any good reason to enable both full-disk and home-directory encryption on a single-user machine?

The installer invites you to do both, so I did, but home-directory encryption is making backups and recovery more complicated, and I suspect that it might be redundant.
0
votes
1answer
143 views

How do I set mount point and label for a LUKS encrypted ext. HDD?

Is there an "easy" way of changing the label/name/mount of a LUKS encrypted HDD, and at the same time have it mount at a Label name in /media/user/ ? Atm I have my disk listed twice in Dolhpin: 3,6 ...
0
votes
1answer
380 views

Automounting encrypted SD card on boot/login

I'm looking to encrypt my SD card so that if it gets swiped out of my laptop the data won't be accessible. I want it to automount either on system start or on user login (I'm the only user). PW or ...
5
votes
1answer
4k 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 ...
0
votes
0answers
97 views

LUKS-container accepts passphrase at boot but refuses from other installs like USB-Sticks

I installed Artful with full disk encryption using LVM & btrfs as shown in this tutorial. The system works fine, the LUKS-container opens at boot using a passphrase. But when I try to open the ...
1
vote
0answers
85 views

How to make lmv wait sda5_crypt AND sdb_crypt unlock on boot?

I have two HDs in my PC, sda and sdb with a clean Ubuntu installation with LVM and LUKS encryption on sda. I want to increase the root size extending it on sdb with encryption too. I managed to ...
0
votes
0answers
36 views

Mounting Ubuntu encrypted partition on another Ubuntu

My full-drive encrypted hard disk started to die (had to fsck more and more often, about once per week), so I bought a new disk, replaced the hard drive in my laptop and reinstalled Ubuntu 16.04 LTS ...
0
votes
2answers
339 views

LUKS + BTRFS + RAID1

I'd like to use BTRFS RAID1 with dm_crypt on a microserver. The hard part that I don't understand many things about how filesystems and LUKS work. Let's say we have 2 partitions on a drive and we do a ...
2
votes
0answers
215 views

How to Ignore encrypted (LUKS) on external hard drive

I am using Ubuntu 16.04 (which is upgraded from 14.04). I have created a LUKS volume with cryptsetup on my external harddrive. The problem is, everytime I connect the harddrive, ubuntu prompts me ...
1
vote
0answers
225 views

How to recover my LUKS partition after this failed resize operation?

TL;DR: I messed up a LUKS partition resize operation and need help restoring it. Below is all relevant information I could think of. If you think any other information might be relevant, or if ...
0
votes
0answers
481 views

Luks-encrypted partition becomes read-only when I try to write

I have an encrypted drive I mount in my Ubuntu 17.10 installation. When I first decrypt the container and mount the partition it shows as 'rw' in mount (detailed outputs below). As soon as I try to ...
0
votes
0answers
913 views

cryptsetup fails at decrypting logical partition: “Cannot use device /dev/sda5 which is in use (already mapped or mounted)”

I've encountered a problem while I was trying to set an encrypted logical partition for personal data. All I did was formating some free space on the same hard disk I installed Kubuntu using the KDE ...
0
votes
0answers
287 views

Ubuntu 17.10 won't startup with LUKS2 header

I upgraded to cryptsetup 2.0.0 (first time compiler). Wanted to use Argon2 hash. When I converted my header in-place to LUKS2 the startup password no longer works. I'm a relative newbie so beyond ...
0
votes
0answers
392 views

ACPI Errors - How to update BIOS on Dell XPS 9550 so I can turn ACPI back on?

Running Ubuntu 16.04 LTS on a Dell XPS 9550. On boot, I am getting several (~30) lines of ACPI ERROR: Method parse/execution failed. Although this has never happened before (been using this setup for ...
8
votes
1answer
8k views

Warnings about cryptsetup on new Ubuntu 17.10 installation?

I have just downloaded and installed a fresh Ubuntu 17.10 server system. Upon running sudo apt update and sudo apt upgrade I happened to notice these two warnings: WARNING: Setting CRYPTSETUP in /...
0
votes
0answers
110 views

cryptsetup/luks backend can use openssl evp interface?

I'm trying to use cryptsetup with some hardware acceleration. Mu cryptsetup backend is OPENSSL. After installed the module cryptodev I tested openssl openssl speed aes-256-cbc -engine cryptodev -...
2
votes
0answers
161 views

Ubuntu 16.04.3 Kernel panic during boot (after trying to auto decrypt disk on startup)

Followup to an earlier question on having my encrypted disk auto-decrypt on startup. It seems I completely shut myself out of my system, I'm getting a kernel panic on startup. Here's what I did: ...
0
votes
1answer
791 views

How do I erase the LUKS headers in terminal?

I am wondering if erasing the LUKS headers (primarily the one on the active booted partition/disk) is as simple as doing a sudo rm -rf / --no-preserve-root or if I'd need to do a different command. ...
0
votes
1answer
424 views

Keyboard layout in LUKS prompt

I have been using Lubuntu with LUKS encrypted disks with at least 4 previous Lubuntu releases. The keyboard layout in LUKS passphare prompt has been the same as in the whole system. Yesterday I ...
0
votes
0answers
16 views

Network Interface not found on LUKS installation

I have installed Ubuntu 14.04.2 on a HP zBook laptop. If I don't use LUKS to encrypt the drive during installation then everything works fine. However if I choose to install using LVM's and LUKS to ...
0
votes
1answer
72 views

16.04 swap slowness

I upgraded from 14.04 to 16.04, and every time my machine starts using the swap space, it gets brutally slow, which did not happen with 14.04 even when using up to 90% of my swap space. I routinely ...
2
votes
1answer
867 views

LUKS without a boot partition

I remember reading a blog entry that someone at Canonical was working on making LUKS work without a boot partition for 17.04. However when I did a fresh install of 17.10 I was unable to find anything....