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.

cryptsetup - setup cryptographic volumes for dm-crypt (including LUKS extension). cryptsetup is used to conveniently setup dm-crypt managed device-mapper mappings. For basic (plain) dm-crypt mappings, there are four operations.

Source:cryptsetup man page

172 questions
103
votes
7 answers

How to change the password of an encrypted LVM system (previously alternate Installation, now advanced feature)?

I installed Ubuntu 11.10 with the alternate CD and encrypted the whole system (except boot) with the encrypted LVM. Update 2020: Encrypted LVM can be selected at the Installation type step of the Ubuntu install, click on Advanced features and choose…
Filbuntu
  • 13,891
27
votes
3 answers

Problems with cryptsetup during update

I think I was installing a bunch of updates, and after what seemed like an hour or so, I finally got this message in the Terminal window: cryptsetup: WARNING: failed to detect canonical device of overlayfs cryptsetup: WARNING: could not determine…
Maegan
  • 271
15
votes
1 answer

cryptsetup: Waiting for encrypted source device problem

I know this has been asked before,but I don't have the technical know-how to perform any of the fixes nor do I know where to start. I turn my laptop on and it boots up to the GNU Grub whereas before it would just boot up automatically to Ubuntu then…
Anthony
  • 151
12
votes
4 answers

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 mapping root. Please read…
marcanuy
  • 624
11
votes
3 answers

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 cryptsetup I show the steps it took to set up the…
PerlDuck
  • 13,885
8
votes
2 answers

Configure Ubuntu 22.04 (ZFS) for automatic LUKS unlock on-boot via USB drive

I've freshly installed Ubuntu 22.04 and used the ZFS+LUKS full drive encryption option from the installer. I've been searching around on the web for a way to configure the drive to unlock automatically on boot when a usb key is detected (LUKS unlock…
Bob Arezina
  • 121
  • 1
  • 10
7
votes
1 answer

A start job for dev-mapper-cryptswap.device is never ending

I again have problems with my swap. I using an encrypted swapfile. It worked until i rebooted my PC. When im trying to boot it is just showing this: I disabled my swap in the recovery mode for now. But i am really confused why it has this boot…
Marco21
  • 86
7
votes
2 answers

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 /dev/loop0 and format the loop device, other…
gaiapac
  • 109
7
votes
1 answer

cryptsetup: waiting for encrypted source device /swapfile, fstab empty

On the bootscreen I get the message: cryptsetup: waiting for encrypted source device /swapfile... which then leaves me hanging for about 2 minutes followed by Initramfs unpacking failed: Decoding failed. I then get dropped to Initramfs. This is on…
Thijser
  • 1,101
  • 2
  • 14
  • 39
7
votes
1 answer

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 cryptsetup: ERROR: Couldn't resolve device…
7
votes
1 answer

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 be installed with LUKS encryption. However, after…
6
votes
1 answer

Swap problems after upgrading from 14.04 to 16.06

After upgrading Ubuntu from 14.04 to 16.04 booting started to be very slow. It seems to be a problem with swap partitions. Bellow I attach some details. cat /var/log/boot.log [FAILED] Failed to activate swap /dev/mapper/ubuntu--vg-swap_1. See…
tomek
  • 161
6
votes
2 answers

Warning during update: cryptsetup: WARNING: failed to detect canonical device of /dev/sda1

Preamble: Few years back I dropped my laptop, it subsequently failed to mount the sda1 disk. I recovered it mounting it with a live usb ubuntu distro. Ever since, my laptop has never been as smooth anymore. Q: I am getting this warning message…
6
votes
2 answers

LVM on encrypted partition drops me to initramfs root missing

I installed Ubuntu 13.10 64bit on my PC. I have single hard disk (/dev/sda) with LVM encrypted partition. So the problem is that after reboot I cannot start Ubuntu (it dropped me to initramfs prompt with message: /dev/mapper/kubuntu....-root…
mixs
  • 69
  • 1
  • 1
  • 2
6
votes
1 answer

Full System encryption with LUKS on headless server - unlock with dropbear and busybox. How?

I encrypted a headless server with cryptsetup/LUKS. 2 HDDs with 512 MB /boot on /dev/md0 and 1,61 TB LUKS encrypted /dev/md1 with LVM containing /, swap, and others. I installed dropbear (and busybox was already installed) to unlock everything…
FrankM
  • 91
1
2 3
11 12