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

learn more… | top users | synonyms

0
votes
0answers
7 views

Restart after install taking 'forever'

I just installed Ubuntu 14.04.03 from a custom cd with just a couple extra programs plus firewall configuration. Before I started the install, I installed the system76 driver and nvidia graphics card ...
0
votes
0answers
11 views

After upgrading of a kernel from the **3.19.0-15** to the **3.19.0-26** it shows me color lines on boot

CPU: Intel Core i7-4770. GPU: NVIDIA Corporation GK104 [GeForce GTX 760] (rev a1). Ubuntu 15.04 with LVM on LUKS: sda 8:0 0 111,8G 0 disk ├─sda1 8:1 ...
0
votes
0answers
17 views

Xubuntu 15.04 post install encryption

I have just installed Xubuntu 15.04 with /boot, /root, /home and swap all on different partitions, however the out of the box installer only gave me the option to encrypt /home. I want to encrypt ...
1
vote
1answer
7 views

Getting “Disk /dev/sdX doesn't contain a valid partition table” on LUKS external drive

Wanting to make sure I'm doing this right. I get the warning on both /dev/sdX and "/dev/mapper/luks-xxxx-xx. . ." when I run fdisk -l. This is what I did to encrypt it: cryptsetup -y -v luksFormat ...
0
votes
0answers
14 views

Unlocking the disk (sda5_crypt) , Full encryption [closed]

I activated full-disk encryption when I created Ubuntu, but I want to disable it. How would I do this?
3
votes
1answer
76 views

What is the proper way to install Ubuntu 15.04 with LVM, LUKS, and manual partitioning?

I am trying to install Xubuntu 15.04 with LVM and LUKS, manually partitioning in order to have a separate /home partition. So far I have booted the Xubuntu live CD and went through these steps: ...
0
votes
0answers
30 views

LUKS + LVM at Install Time

I am trying to use the Ubuntu 14.04.3 LTS installer to create a disk layout that logically looks like this during installation: /dev/sad | +-- /dev/sda1 (/boot) | +-- /dev/sda2 (LUKS) ...
0
votes
1answer
32 views

How to change file text content only with Shell Script commands?

In a file, there is: sd5_crypt UUID=1337 none luks,discard I'd like to change it to: sd5_crypt UUID=1337 /dev/disk/by-label/MON_LABEL_ICI:/keyfile luks,keyscript=/lib/cryptsetup/scripts/passdev ...
0
votes
0answers
13 views

Opening encrypted disk at boot using crypttab and decrypt_gnupg doesn't work

I have a Volume that is encrypted with a GnuPG pass phrase encrypted key. I can open it, using manual commands, like this: gpg -d key.gpg | cryptsetup luksOpen /dev/sdb2 cryptvolume This works ...
2
votes
1answer
79 views

Boot folder on external USB pendrive, how to boot to?

My machine is LUKS-encrypted and boot works a charm (asking the passphrase at launch). I want to use a keyfile on a USB pendrive, thus the user has a dongle that the user must plug to launch Linux ...
6
votes
1answer
1k views

Yubikey Two-factor Authentication Full-disk Encryption via LUKS

I recently acquired a Yubikey Neo - a nifty little hardware second factor authentication device. It's primarily intended for use with One Time Passwords, and the emerging U2F protocol - but since ...
0
votes
0answers
7 views

Problems to mount a crypto-luks in ubuntu

I have a drawback of novice person, I encrypt my hard drive with crypto - luks in ubuntu and now I can not access my data , I have tried everything I seen but always gives a different error , please ...
1
vote
2answers
36 views

Mask my Desktop for my ubuntu-based Wifi hotspot/router

I used Ubuntu to build a Wifi HotSpot. You can join the Wifi and access Internet. It is used in some area without lots of Internet access in Africa, Island and Greenland. Since we're responsible for ...
0
votes
0answers
15 views

LUKS encrypted: 2 keys, a passphrase and a keyfile, how to priorize keyfile?

I have installed Linux the LUKS way. I provided the passphrase. Later, I made a keyfile (with a random key) and added it to /etc/crypttab specifying its path. I get something like: # <target ...
3
votes
4answers
5k views

How to install in EFI mode with Encrypted LVM?

I'm trying to properly install Ubuntu 12.04.1 LTS 64-bit PC (AMD64) with the alternate install CD ".iso" on a lenovo Thinkpad X220. Default Hard Disk (with a pre-installed version of Windows 7) has ...
12
votes
3answers
1k views

Suspend to RAM and encrypted partitions

Normally I don't shutdown my notebook any more in favour of using suspend-to-RAM. The downside is that my encrypted home partition is completely accessible after resume without entering the ...
5
votes
1answer
6k views

device-mapper: remove ioctl on luks-xxxx failed: Device or resource busy

While I was away from my computer, my encrypted USB drive got accidentally unmounted somehow (although it was still physically connected at the time). I haven't been able to recover (haven't tried a ...
0
votes
0answers
19 views

boot folder on my USB pendrive

I copied my boot folder onto a USB pendrive. (My FS is LUKS encrypted, I put the keyfile on the dongle, I want the pendrive to be plugged if a user wants to use the machine) I did it: put whole ...
0
votes
0answers
18 views

LUKS encryption + USB dongle keyfile = if not plugged, disallow passphrase prompt?

My laptop is LUKS-encrypted. I put boot & keyfile on a USB dongle: if the dongle is not plugged at boot, you cannot enter linux. But when I dont plug the USB dongle (which contain the keyfile), ...
0
votes
0answers
25 views

Nested crypto(luks) partitioning in ubuntu preseed

It is easy to define nested luks partitioning in ubuntu environment using following commands cryptsetup luksFormat /dev/sda(i) {entering passphrase: xxxxx} cryptsetup luksOpen /dev/sda(i) some_name1 ...
12
votes
3answers
18k views

How to configure LVM & LUKS to autodecrypt partition?

I have recently installed ubuntu server 11.04 with the full lvm encryption(installed from the setup) . I wish now to use a key file to do automatic unlock. I have tried to follow this guide ...
0
votes
0answers
12 views

mount encrypted disk with right permissions

I encrypted an external drive on my desktop computer, and I can conveniently mount/unmount it from Nautilus just entering the password. The problem is that when I mount it on my notebook (from ...
0
votes
0answers
21 views

LUKS encryption, switch from passphrase to keyfile

Using LUKS encryption, I set it during the Ubuntu installation. I entered a passphrase. But now I want to use a keyfile and I dont manage to find the right process to. How can I make the switch ...
3
votes
1answer
73 views

LUKS encryption, header on a dongle USBdrive?

I am going to install Linux the LUKS/LVM way, in order to have an encrypted disk. In addition, I would like to put the header and passphrase in a USB Key. Thus, instead of entering the passphrase, I ...
1
vote
1answer
43 views

cryptsetup luksAddKey throwing 'Maximum keyfile size exceeded' error - fix? 14.04

I am attempting to add a homekey entry to my /etc/crypttab in order to prevent entering a 3rd pass upon login on a 14.04 install w/ LUKS (root/swap/home). When I attempt to add the key using ...
0
votes
0answers
17 views

Unlocking at boot time Luks LVM

This is my first question, but let me start by saying how much of a big fan I am up this site. Every question I ever had over the last 4 years has been answered here and I am so grateful for the help ...
0
votes
2answers
97 views

Mounting encrypted LUKS partition from Live CD

Error to begin with, can't boot I had to do a hard reboot of my computer, and when booting up it (initramfs I think) gave an error: mount: mounting /dev/mapper/ubuntu--vg-root on /root failed: ...
0
votes
0answers
39 views

Unlocking luks encrypted partition automatically Ubuntu 14.04

I've been trying to resolve an issue unlocking a luks encrypted partition on boot using Ubuntu 14.04. I've set it up to automatically unlock after the root partition's password has been entered by ...
0
votes
1answer
79 views

Mount external hard drive with LUKS Encryption + LVM

I recently switched to a bigger Hard Drive by running dd if=/dev/old of=/dev/new However now I am trying to get some files that changed after copying, so I connected the old Hard Drive over USB. The ...
91
votes
0answers
4k views

How do I enable Ubuntu (using full disk encryption) to call LUKSsupend before sleeping/suspending to RAM?

This question is related to another one by @Stefan, but it is not a duplicate of it. The questions are slightly different: the author simply wanted to know if this had been implemented, while I'm ...
1
vote
2answers
48 views

What information should I preemptively store to be able to recover encrypted data?

All of the posts that I can find regarding encrypted-data recovery regard specific situations. I currently have functioning partitions and directories, but would like to maximise my chances of ...
1
vote
1answer
92 views

LUKS and loop device

I read a lot of tutorials about LUKS/dm-crypt/cryptsetup, in particular about how to create an encrypted file container. First step is to create the file with dd. Then some tutorials map the file to ...
5
votes
1answer
173 views

How do I get dropbear to actually work with initramfs?

Bounty Bounty Bounty Bounty! So I'm trying to unlock a headless server running an encrypted version of Ubuntu 14.04. It is a virgin 14.04.2 install with all updates as of writing. I went thtrough ...
1
vote
0answers
20 views

Thunderbird Profile on LUKS Encrypted flash drive not working

I want to store my Thunderbird profile on an encrypted USB flash drive and run it from there because I often switch between two computers with identical setups: Ubuntu 14.04 with the same user ...
0
votes
0answers
15 views

How do I encrypt my HDD and combine with my other encrpted HDD

I am trying to combine 2 HDD's. One of them is already encrypted and is my boot drive. The other one is not encrypted and Linux doesn't see it as more disk space. Could someone explain me how to do ...
1
vote
0answers
27 views

LUKS partition lost?

I'm starting to getting desperate about a partition encrypted with LUKS which is not recognized anymore. Here's what happend: Tried to resize partitions on sdb5 (lvm1 in crypt-container1). Made a ...
6
votes
4answers
8k views

Do you recommend LUKS encryption on a SSD (TRIM support)?

I have a laptop (Dell Inspiron 11z) and and SSD (Samsung 128GB) on order. On my current laptop, I have a spinning HDD and use LVM and LUKS encryption. I would like to use LUKS on the SSD but from ...
0
votes
0answers
44 views

Can't mount encrypted usb stick

I had a truecrypt encrypted usb stick, which I decided to reencrypt in LUKS through disk-utilities. I encrypted it, tested if I can mount it and put all my files on it. However, after a reboot I can't ...
0
votes
0answers
26 views

Cannot acces encrypted usb drive

So I had a USB stick encrypted by truecrypt but as it isnt supported anymore I decided to reformat it with disk-utilities in LUKS. I overwrote everything and formatted the drive with disk-utilities in ...
1
vote
2answers
58 views

Encrypt second hard disk with same password

I installed Ubuntu 14 LTS with disk encryption (selected during installation). I have two questions: 1- What is encryption algorithm of current encrypted disk? 2- I have a second hard disk and I ...
1
vote
1answer
134 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) ...
-1
votes
2answers
247 views

Encrypted SWAP partition creation after ubuntu 15.04 installation, 15.04 installer bugs!

Today I decided to install clean copy of 15.04. Using the installer partitioning tool, I created an encrypted luks system volume, then created an unencrypted SWAP, clicked continue, then got an error ...
2
votes
0answers
89 views

cryptsetup: unknown fstype, bad password, ect. Bug? Ubuntu 14.04.2

I can't log in to my system at first I had gotten the following error: cryptsetup: unknown fstype, bad password or options? Ubuntu spammed this at boot. Now I can't run the Ubuntu OS ...
2
votes
1answer
217 views

Cannot enter password to start Ubuntu

I'm running Ubuntu 14.10 with the system disk encrypted with luks. When I start the computer, it shows the Ubuntu logo and asks to enter the password to unlock the disk. However, I cannot enter the ...
8
votes
1answer
3k views

How do I use dm-crypt (LUKS) with GnuPG to use two-factor for FDE?

When using full disk encryption with Ubuntu (opposed to homedir encryption), dm-crypt with LUKS is used for encrypting the volume. In the installer (at least on 12.04 alternate) you can choose between ...
1
vote
0answers
48 views

How can I repair my LUKS / ext4 file system?

my computer was running the whole night and my only open windows where IntelliJ IDEA and Google Chrome. Today my file system seems completely corrupted. Linux Mint can't read any files and folders ...
0
votes
0answers
101 views

How to resize a crypt-luks partition that takes all hard drive?

I want to shrink the partition to be able to install a windows OS, but i installed ubuntu 15.04 with encryption of the logical volume, gparted doesn't support crypt-luks so what do i do?
0
votes
2answers
81 views

how to lock LUKS partition from terminal?

I need to lock opened luks partition from terminal as normal user. in other words, I need terminal command do the same as sudo cryptsetup luksClose <name> but without root privileges. ...
2
votes
1answer
2k views

LUKS and LVM install: no boot (gave up waiting for root device)

I just finished installing 12.04 on my system, configuring it with LUKS and LVM. I can open the encrypted position just fine in a recovery disk, but I just can't seem to get it to boot. It waits ...
0
votes
0answers
265 views

LUKS encryption over ecryptfs

My /home partition under Ubuntu is default encrypted (ecryptfs), but now the system isn't mounting it. Even worse, I don't even find the folder after encrypting for a second time with LUKS. This is ...