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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [luks]

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

0
votes
1answer
225 views

Change LUKS Passphrase Prompt

How would one go about customizing the LUKS passphrase prompt when decrypting drive at system startup? I am on 16.04. Have looked into /lib/cryptsetup/cryptdisks.functions. Have also checked Plymouth. ...
0
votes
1answer
371 views

LUKS Encryption of NTFS Partition

I'm going to be doing a fresh install of Ubuntu 18.04 on my System76 laptop that currently has one SSD drive installed. Soon I'll be installing a second SSD on the same laptop that will have Windows ...
0
votes
0answers
35 views

Editing filesystem mount options outside of fstab for LUKS partitions

I have several LUKS encrypted drives attached to my system which do not mount at boot. I want to edit some of the options normally found in /etc/fstab (mainly noatime), but these drives aren't in ...
0
votes
0answers
283 views

File system errors on virtual machine: Resize inode not valid. fsck exited with status code 4

TL;DR I'm trying to fix a disk that got corrupted because I hard-shutdown the VM. The farthest I've managed to go is to use fsck.ext4 and a back up superblock to allow me to mount the disk again. ...
0
votes
0answers
135 views

How to enter the password only once if /home is LUKS-encrypted?

Last year I've upgraded my laptop with SSD, and decided to try LUKS for /home encryption, as after researching online and a few trials myself I felt like Ubuntu's "default" ecryptfs still slows it ...
11
votes
3answers
550 views

Will an external HDD encrypted with 17.10 be accessible with 18.04 after an upgrade?

I'm currently on 17.10 and don't use encryption on my internal drives but have an external USB disk which is encrypted. I use it for backups. Because I am was not sure whether I use ecryptfs or ...
0
votes
1answer
131 views

Will the KVM enabled kernel work with LUKS whole disk encryption on 18.04?

I have got a fresh installation of 18.04 with the whole disk encryption (LUKS) enabled. This works fine, but when I try to install a KVM enabled kernel (package linux-kvm), then I am unable to boot ...
0
votes
0answers
33 views

LUKS encrypted HDD not sleeping

The HDD is set to automatically go in to standby mode after ten minutes of inactivity, however, since encrypting the only partition the HDD is always awake. When I unmount the encrypted partition the ...
0
votes
0answers
158 views

Looking for lost Ubuntu fulldisk encryption with btrfs tutorial

a few months ago I reinstalled my computer with Ubuntu 18.04, using btrfs on a LUKS full disk encryption. I used a certain very good tutorial for that and it just worked. However, now I can't find ...
0
votes
2answers
355 views

Ubuntu 18.04 clevis decrypt of secondary disk

Running Ubuntu 18.04 with an unencrypted root volume. For what I need this to do, that's fine. But I need to mount and decrypt secondary disks. Following Red Hat's directions here since every google ...
1
vote
0answers
115 views

How to install cryptsetup 2.x to Ubuntu 16.04?

I came across with encrypted container created with LUKS2, but as a user of Ubuntu 16.04, which comes with 1.7.2, this container can't be opened. It seems I'd need a newer version of cryptsetup, 2.x.
0
votes
0answers
40 views

Can't Access Automatically Mounted LUKS Volume with User Account

I have a BTRFS filesystem layered on top of a LUKS partition on an external drive. When the drive mounts, it doesn't allow me access. It only allows access to the root user. How do I set the drive so ...
0
votes
0answers
38 views

Prevent LUKS Volume from Automatically Mounting

I have several LUKS volumes on an external drive. When I attach the drive, I would like to prevent two of the LUKS volumes from automatically mounting. Using noauto on the UUIDs in /etc/fstab doesn't ...
0
votes
0answers
533 views

Ubuntu won't boot after upgrade to 18.04

I am on Ubuntu 18.04 with kernel 4.15-22. After many tries, this is how I get it to boot correctly into the graphical interface: Repair mode. Low-graphics mode. Hit CTRL+F1 and get to a text screen ...
0
votes
0answers
103 views

Booting encrypted SquashFS from Live CD

Can we boot encrypted squashfs from livecd. If it possible please suggest me to decrypt and boot the OS. here i'm using luks encryption technique for securing the Squashfs file but i'm fail to ...
1
vote
0answers
72 views

LUKS crashes utility, command line doesn't provide encryption, alternative GUI applications are too slow

TLDR: I'm trying to encrypt my hard drive, half of universe failed. What is a straight-forward command towards encrypting target device (e.g. /dev/sdb1) with a "target" password (e.g. "password123")....
1
vote
0answers
970 views

Ubuntu 18.04 and after-install luks encrypted home partition - cant load OS

I deployed Ubuntu 18.04 on my laptop with home folder in separate partition (/home is /dev/sda6) After installation I wanted to encrypt my home partition, for that I followed this guide to encrypt it....
0
votes
1answer
819 views

autounlock luks encrypted drives upon startup with keyfile

i have a raidz2 zpool across 6 disks. i am using ubuntu server 16.04 LTS and i want to encrypt those disks with luks and have the system decrypt them on startup, so that zfs can use them. how exactly ...
0
votes
1answer
292 views

Decrypt LUKS partition without losing data

I have a LUKS encrypted hard drive consisting of one single partition for the whole hard drive and it's encrypted with LUKS, I was wondering if I wanted to decrypt the disk completely(remove the ...
0
votes
1answer
216 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 ...
2
votes
1answer
567 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-...
3
votes
1answer
3k 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
2k 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
276 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
115 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
47 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
106 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
40 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
2k 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
99 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
62 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
14 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
116 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
41 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
143 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
54 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
1k 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 ...
1
vote
1answer
629 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
406 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
310 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
118 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
501 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
310 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
254 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
55 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
68 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
169 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
416 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 ...