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 [cryptsetup]

cryptsetup - setup cryptographic volumes for dm-crypt (including LUKS extension). cryptsetup is used to conveniently setup dm-crypt managed device-mapper mappings.

0
votes
1answer
15 views

Setting correct size for “cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt mapping root” message

I have a full disk encryption using ecryptfs, after upgrading to 18.10 a warning message started to appearing at boot: cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt ...
0
votes
0answers
42 views

18.04 cryptsetup luks automount root during boot with USB as key

Iam trying to unlock/automount the root on my ubuntu 18.04 luks cryptsetup installation with a USB drive during boot. With the script attached or a similar version it was already working a few ...
1
vote
0answers
29 views

How to make cryptsetup abandon a drive once password limit is reached?

I would like to set up my encrypted root partition so that it can decrypt automatically if my USB flash drive with a keyfile is present, but ask for a password otherwise. There is one thing preventing ...
0
votes
0answers
31 views

Ubuntu 18.04 gets stuck after decrypting on startup & the OS is completely zoomed in

I've bought a new laptop today: MSI GL72 7QF I installed Ubuntu 18.04 without a problem, after rebooting i had to decrypt Ubuntu, which i did. Now it keeps getting stuck at that dialog; "cryptsetup (...
0
votes
1answer
69 views

Encrypting Linux server for remote access VM

Use Case I have an Ubuntu server machine wrapped in a VM (vmdk file) that contains web application. I want to send this VM to someone and prevent him from accessing to the internal file system of the ...
0
votes
1answer
120 views

Boot taking minutes following upgrade to 18.10

Following the upgrade to 18.10, my laptop is taking about 3 minutes to boot up, previously it was about 15 seconds. The boot screen appears with the message "cryptsetup waiting for encrypted device / ...
3
votes
1answer
313 views

WARNING Option 'hash' missing in crypttab after upgrading Ubuntu

I upgraded Ubuntu from 18.04 to 18.10. I have full disk encryption enabled. When I boot up, I get this error message displayed above the password prompt for the full disk encryption: cryptsetup: ...
1
vote
2answers
200 views

Can't unlock cryptswap1

Today I upgraded to Ubuntu 18.10 from Ubuntu 18.04. Unfortunately when everything is done I rebooted the system and I was surprised by this screen. I looked everywhere for such a problem but it seems ...
3
votes
1answer
225 views

Ubuntu 18.04 - cryptsetup fails to recognize passphrase, unlocking from Live USB works

I recently bought a Ubuntu Edition Dell XPS 13 9370. The machine comes without full disk encryption enabled out of the box, but offers to create a recovery USB drive, when booted from that Ubuntu can ...
0
votes
0answers
171 views

cryptsetup errors on apt-get upgrade

On headless vps servers (Ubuntu 16.04.5 LTS) when running # apt-get upgrade I get cryptsetup: WARNING: failed to detect canonical device of /dev/xvda1 cryptsetup: WARNING: could not determine root ...
0
votes
1answer
51 views

Keep encrypted drive open after key is removed from system

I have an encrypted drive that is mounted at boot time. I have three keys for the unit: Slot1: passphrase Slot2: file1 Slot3: file2 For unattended boot (avoiding typing the passphrase), I have file1 ...
0
votes
0answers
150 views

Forgot password or remove sda5_crypt password

I totally forgot my password and having no backups and all, is there a way to unlock this one? or if I have no choice, I just want to get the files or create a backup. Already tried cloning but ...
2
votes
1answer
460 views

cryptsetup: WARNING: failed to detect canonical device of

I have an Problem on my Ubuntu 18.04 Rootserver. Fresh Installation. I made an Update with apt update && apt upgrade && apt dist-upgrade I got this warning at the Kernel ...
0
votes
0answers
57 views

Ubuntu 16.04 Encrypted USB Disk key not showing up in seahorse

I just noticed that I'm having a problem: I have a external SSD with a encrypted partition on it. At some point I must've accidentally enabled the "Remember forever" function for the password on my ...
11
votes
3answers
545 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 ...
1
vote
0answers
114 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
87 views

Ubuntu 18.04 is not starting after installation [duplicate]

I just installed the new Ubuntu desktop version completely new (not as an update). This was successful. But then I needed to restart the computer and after unlocking the cryptsetup successfully, the ...
2
votes
1answer
547 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
44 views

How to access encrypted Ubuntu installation from an other computer?

So, I recycled an old compy, and I'm left with it's old HD. It was an ubuntu 17.10 installation, encrypted with the 16.04 stock installation encrypter. I know the passphrase, and used the following ...
2
votes
1answer
68 views

When booting Ubuntu 17.10, I'm being asked for an encryption pass key

When my system is booting, I get the following before reaching the log-in screen and don't know why this is happening: Can someone explain what's happening? I find it cumbersome to enter my ...
0
votes
0answers
22 views

Encrypted /tmp gets invalid access rights in Ubuntu 16.04.4

OS: Ubuntu 16.04.4 uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux cryptsetup version: 1.6.6-5ubuntu2.1 /etc/crypttab line: ...
1
vote
0answers
97 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 ...
0
votes
0answers
36 views

Help! Passphrase no longer decrypts my disk

For some unknown reason I can no longer decrypt my disk with the passphrase that I had been using for months. I thought that this could be a keyboard layout problem, therefore I have also tried typing ...
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
0answers
100 views

Laptop goes to sleep before asking for password (using cryptsetup)

This is my very first post so I will try to be as precise as possible. I have a Razer Blade Stealth 2017 with Ubuntu 16.04 using full disk encryption. It was going great, being able to type my ...
0
votes
0answers
27 views

Opening a encryted hardrive with cryptsetup with raw key

I'm trying to replicate this cold boot attack experiment: https://github.com/DonnchaC/coldboot-attacks/blob/master/coldboot.pdf I'm using a Ubuntu system encrypted with LVM as the target. The goal is ...
0
votes
0answers
65 views

Encrypted Ubuntu 16.04.03 partition no longer boots

I have a hard drive with two copies of Ubuntu on it, living on separate partitions. One is running Ubuntu 16.04.02 and is not encrypted. It is doing fine. The other is running Ubuntu 16.04.03 and the ...
1
vote
1answer
361 views

How get ubuntu to boot after reducing size of encrypted logical volume?

After reducing the size of /root volume of an encrypted partition using lvm, I get this error when ubuntu boots: cryptsetup: cryptsetup failed, bad password or options The partition itself is fine....
2
votes
0answers
243 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 ...
0
votes
0answers
1k 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
128 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 -...
3
votes
0answers
241 views

encrypted /tmp doesn't mount at boot time

OS: Ubuntu 16.04.3, 64-bit. cryptsetup version 1.6.6 Contents of /etc/crypttab (UUIDs replaced to save space): cryptswap1 UUID=XXXX /dev/urandom swap,offset=1024,cipher=aes-xts-plain64 crypttmp1 ...
2
votes
0answers
101 views

Ubuntu Gnome 17.04 cannot type crypt password in & other weird issues on fresh install

I've installed Ubuntu Gnome 17.04 with full disk encryption using the LVM option, everything went fine until I rebooted and it asked me to type in my crypt password on the splash screen, I go to type ...
0
votes
1answer
793 views

Using a Yubikey with LUKS on Removable Storage

I'm trying to use a Yubikey 4 as a second factor to access a LUKS-encrypted USB HDD. Here's how far I've gotten: I'm using yubikey-luks to add my HMAC-SHA1 hashed password to slot 7 of the device. ...
0
votes
0answers
520 views

How to use cryptsetup keyscript with initrd in Ubuntu 16.04?

I am setting up an encrypted partition with a special script to automatically input the passphrase. The partition is not a system partition and the process requires a custom keyscript. I've managed ...
0
votes
1answer
633 views

Unable to access encrypted LVM /home directory on Ubuntu

I recently did a fresh install of Ubuntu (MATE) 16.04 on a new hard drive and used LVM. I created a partition table with separate mount points for /, /home,/boot swap. While installing, I did not ...
1
vote
1answer
575 views

Keyserver for cryptsetup-luks

I've several machines at home: A small nas, my notebook, a litte webserver etc. Some of these machines store my entire digital life - so I encrypted nearly every partition. To boot up the devices, I ...
1
vote
1answer
380 views

Bypassing root authentication by pressing the ENTER key for 70 seconds [duplicate]

The following site brought a question to mind. Go there and read the article. They basically say that it's possible to bypass my cryptsetup password on my ubuntu version by holding down the Enter key ...
0
votes
1answer
396 views

Passing luks passphrase to unlock encrypted rootfs with script instead of passing from the terminal

I would like to develop a script which passes LUKS passphrase instead of passing from the keyboard when cryptroot asks user to unlock. I tried to modify cryptroot script, but not able to run it. It ...
1
vote
1answer
679 views

Specify encryption cipher to use during install?

I just went through the install process specifying "do something else," then picked my partition to use as an encrypted container, and finally used that container to be formatted with a filesystem. I ...
1
vote
0answers
544 views

Problem booting into my system: cryptsetup: lvm is not available

I installed Ubuntu 16.04 LTS with full disk encryption using this guide. Normally I have to enter one passphrase to unlock root and then another one to unlock swap, and then the system boots with no ...
0
votes
0answers
20 views

OS on flash drive acts differently on different ports of the same machine cryptsetup/busybox

I have Ubuntu installed into a usb flash drive with encryption enabled. My laptop (XPS13) has 2 USB ports. When I insert the flash drive into let's say port A, it works just fine; cryptsetup comes up,...
0
votes
1answer
52 views

Does a keyfile always have to be mounted?

I got a very simple question about using LUKS/cryptsetup with a keyfile on a separate USB stick. Does it always have to be mounted? Or only when the system boots?
2
votes
1answer
1k views

LUKS/Cryptosetup and LVM: can't input passwords after boot

So I followed many times with success this particular tutorial http://thesimplecomputer.info/full-disk-encryption-with-ubuntu With 2 slightly different things: lubuntu instead of ubuntu and install ...
1
vote
1answer
57 views

Strange (hanging) problem with dualboot W10, Xenial and FDE (for Xenail partition)

Added after solution - This is NOT a dual boot issue! This was a driver issue as the open source drivers for what ever reason didn't work with my NVIDIA GTX 960m and full disk encryption. They did ...
3
votes
0answers
669 views

Swap partition not active

My swap partition is neither mounted nor active. My system does find/recognise the swap partition but that is it My fstab entries: # /etc/fstab: static file system information. # # Use 'blkid' to ...
0
votes
0answers
35 views

Is there a way to check if the Cryptsetup vulnerability patch is already installed? [duplicate]

Is there a way to check if we already have the patch for the Cryptsetup vulnerability that's in the news recently? http://hothardware.com/news/linux-vulnerability-found-by-holding-down-enter-key-for-...
1
vote
1answer
2k views

Ubuntu GNOME display fails to start on boot

I have made a fresh Ubuntu GNOME 16.04.1 install through USB and there were no problems during the first boot. Booting my OS a second time throws me immediately to tty1. Here is what I have tried: ...
1
vote
2answers
268 views

zuluCrypt hangs when creating a luks container with a key

When I create a luks container using zulucrypt, it hangs at the point of creating the file system. I have installed zulucrypt and cryptsetup. I select 'create encrypted container in a file' or '...
2
votes
2answers
1k 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,...