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.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Need help verifying partition table after accidentally deleting boot + efi partitions of (encrypted) Ubuntu installation

I made a mess today as the title says. I deleted the first two partitions on my hard drive containing my OS (Ubuntu 20.04). I realized what I've been doing before deleting the luks encrypted third ...
4
votes
1answer
103 views

How to install Ubuntu on an encrypted, error-correcting RAID 1 device with dm-crypt?

I would like to install Ubuntu on a two-disk RAID 1 with dm-integrity and LUKS2-encryption. Unfortunately, neither Ubiquity, nor the alternative textmode-installer offer such a solution. Although ...
0
votes
0answers
68 views

Change language on start

So I have disk encryption enabled and when I try to enter the passphrase (I am 100% it is correct) I get cryptsetup failed message.This lead me to believe it is from the language I'm using.I tried ...
0
votes
0answers
99 views

LUKS with encrypted /boot + GRUB -> rescue shell 50% of the time

I just setup xubuntu 20.04 according to the full disk encryption howto on a 32GB usb drive. I used 5000 iterations for the encryption, sha256. The first time, I restarted after installation, grub ...
1
vote
0answers
34 views

Problems with creating an encrypted livecd that works on USB/DVD/CD

Summary of the Problem I've created a custom ram-only Ubuntu image that refuses to boot over USB on any device. Before I encrypted it and used a loop device, it worked well. With the encryption setup,...
1
vote
1answer
114 views

Problem with update-initramfs and cryptsetup

I am trying to update my initramfs but I get this error: cryptsetup: WARNING: could not determine root device from /etc/fstab I am not really sure why this is happening because this is my fstab: ...
0
votes
1answer
52 views

Ubuntu - encrypted root, logistics

I am attempting to boot Ubuntu on a LUKS encrypted device - In a prior life, I specified the UUID as a kernel cmdline option and then the initramfs opened up that device with the credentials I ...
0
votes
0answers
127 views

I messed up something with the initramfs configuration and now I can't get the cryptsetup unlock prompt on boot

I've been trying to setup Ubuntu server (current attempt with 18.04.3) to receive LUKS passphrase from dropbear, I was mostly successful, but then I tried a few things to get the passphrase from ...
0
votes
1answer
150 views

Mounting a Luks partition

ORIGINAL POST: I have backed up a drive with all its partitions using the command dd if=/dev/sda of=/media/oshirowanen/external-drive/backups-2019/ubuntu.img /dev/sda is an ssd which has Ubuntu 18....
0
votes
0answers
276 views

Ubuntu 19.10 - missing lib_gcc.so.1 after kernel update

I am facing problem with missing lib_gcc.so.1 after kernel update. Currently i can't decrypt disk while booting - it shows alert with "incorrect password". When i press f1 i see following error ...
0
votes
0answers
42 views

strange systemd cryptsetup behavior

there is a useful parameter keyfile-timeout which fall back to keyboard if there is no keyfile presented. This seems correct, when there is no path to the keyfile. However, if I put a entry in fstab ...
0
votes
0answers
110 views

Unable to mount unencrypted drive from live USB

My son kindly crashed my laptop and when I restarted it, cryptsetup did not accept my password (going into 60 minute delay). I cannot launch Ubuntu 18.04 that I have installed on my laptop SSD, but I ...
0
votes
0answers
69 views

Can't unlock home folder; Encryption password no longer works

I've been using Ubuntu 16.04.5 LTS on my HP ProBook 470 G3 for about 2 years now with my home folder encrypted and my password now suddenly doesn't work anymore. I didn't perform any upgrades or do ...
1
vote
1answer
169 views

How can I run a sudo command as sudo (!) without password? (cryptsetup needs to be run as sudo in order to use kernel module 'device-mapper')

Solved Besides not commenting the #includedir line in /etc/sudoers out, editing sudoers.d/myOverrides with sudo visudo -f /etc/sudoers.d/myOverrides, and using the syntax I first tried, did the ...
1
vote
0answers
59 views

Decrypt Volume while bootup with keyfile OR password

A dynamically growing .img-file is mounted to my user's home directory. Its file system is btrfs and it's encrypted via LUKS. Keyslot 0: A file created by dd if=/dev/urandom of=<some file> bs=...
6
votes
1answer
4k views

Missing amdgpu firmware file named vega20_ta.bin | Kubuntu 19.04

Recently, after each upgrade I get these lines at the end of the process: Processing triggers for initramfs-tools (0.131ubuntu19) ... update-initramfs: Generating /boot/initrd.img-5.0.0-17-generic ...
2
votes
1answer
166 views

LUKS Nuke on Ubuntu 18.04?

So I've been searching through the Internet recently about a LUKS nuke patch from Offensoce Security for cryptsetup, but all of the places I've looked have the patch for cryptsetup 1.6.6 or earlier, ...
2
votes
0answers
198 views

Problem after packages upgrade

This morning I upgraded the following packages: libdevmapper1.02.1:amd64 (2:1.02.145-4.1ubuntu4, 2:1.02.145-4.1ubuntu4.1), libguestfs-hfsplus:amd64 (1:1.40.2-1ubuntu1, 1:1.40.2-1ubuntu1.1), ...
1
vote
1answer
3k views

“No key available with this passphrase” with a newly-created DM-CRYPT / LUKS partition

Doing searches, it appears that others are having more complex problems because of cipher settings, but my problem is when doing something straightforward. Using a mostly-fresh install of Lubuntu 18....
0
votes
0answers
1k views

Mounting LUKS encrypted drive

I have a LUKS encrypted drive which I can boot from on more modern UEFI bios machines but not older devices. Every machine in my house is an older device. Instead, I've tried to mount the thing in ...
1
vote
0answers
44 views

Cryptsetup language default bug during upgrade. How do I change it back?

I upgraded from 18.04 to 18.10 and the default language for cryptsetup was switched from English to French (which is usually my second language on this computer). I changed back the language and ...
0
votes
1answer
1k views

How to cryptsetup newly installed Ubuntu Server 18.10

I was wondering how to encrypt my harddrive on a newly installed Ubuntu Server 18.10. I tried this on Arch, which seemed to work fine, because I've done it during the installation fase. But with ...
0
votes
1answer
653 views

Encrypted drive cloning - resizing partitions problem

I'm trying to clone my SSD to a larger device so I will have a bootable backup in anticipation of doing a system upgrade on several desktop clients. I also want to model a known-correct procedure to ...
4
votes
1answer
2k 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 ...
3
votes
0answers
116 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
1answer
149 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
482 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 / ...
4
votes
1answer
1k 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: ...
2
votes
2answers
2k 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 ...
5
votes
1answer
7k 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 ...
1
vote
0answers
715 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
312 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
472 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 ...
4
votes
1answer
2k 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
125 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
696 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 ...
4
votes
0answers
443 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.
2
votes
1answer
2k 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
79 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
146 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 ...
1
vote
0answers
273 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
56 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
5k 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
310 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
72 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
746 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
477 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
5k 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
232 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
344 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 ...