The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [dmcrypt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
2k views

How do you repair a Ubuntu 14.04 RAID-LVM-DM-CRYPT-LUKS Physical to Virtual system that won't boot?

I can't get a Ubuntu 14.04 Virtual server to boot correctly. It's recently been cloned "dd if=/dev/sda of=vmimage" The Physical has a RAID1-LVM-DMCRYPT-LUKS configuration, The boot sequence aborts and ...
0
votes
1answer
22 views

raid1 will not work when I physically remove “removed” disk in Ubuntu 18.04

/dev/sdc1 and /dev/sdd1 is raided (RAID1) into /dev/md3. /dev/md3 is encrypted with luksSetup. Last night I got DegradedArray events for /dev/sdc1. I shutdown the system, physically removed the disk,...
3
votes
3answers
2k views

Find out which loop device is behind a dev mapper blcok device

I'm using cryptsetup with loopback devices. I'm looking for a way, given a device mapping, to identify which loopback device is used by this device. i.e. get /dev/loop1 as a result of an operation on ...
0
votes
2answers
87 views

How to monitor dm-crypt on unreliable external hard disk?

I have an external USB drive, which - for whatever reason - sometimes drops out unrecoverably. Probably due to faulty cables or something. On this I have a LUKS partition. dmesg reports Buffer I/O ...
2
votes
1answer
778 views

Encrypt/Decrypt filesystem container file with smartcard on linux

I want to encrypt and decrypt a file system container file with luks and a smartcard on debian linux. The smartcard is a Nitrokey Start which is basically a compact smartcard in a usb reader. I know ...
2
votes
0answers
342 views

Linux dm-crypt slowness with fast SSD

I'm experiencing slowness with an encrypted filesystem. Here are the details: # /dev/sdd: TOSHIBA PX05SVQ192B AX02 /dev/sdd # gdisk -l /dev/sdd GPT fdisk (gdisk) version 0.7.1 Partition ...
1
vote
1answer
19 views

Restore back-up from pre-encrypted drive into newly encrypted drive

It sounds like I am going to be reinstalling CentOS 7 on a server this weekend. The original installation didn't have the drive encrypted and it needs to be done. My understanding is that this will ...
0
votes
2answers
400 views

Troubles with swap on dm-crypt/LUKS partition

I have created two dm-crypt partitions during Debian install: sda2 sda2_crypt swap sda3 sda3_crypt / I used 7.8.1 netinstall ISO. Later I have added additional dm-crypted drive sdb: # ...
2
votes
0answers
96 views

Is there a “TRIM” command for dmcrypt devices?

When using an encrypted drive in a virtual machine, the VM image starts very small if you do not initialize the drive with random data. When you fill the drive, it grows, but when you delete files it ...
2
votes
2answers
66 views

Best filesystem setup for 'partial data loss: ok' scenario

I'm searching for the best way to set up filesystems/partitions for a storage server with the specialty that partial data loss is not a problem. Lets say I got 4x3TB disks and I want to arrange them ...
1
vote
2answers
968 views

LUKS/dm-crypt security in the case of a break-in

This is an encryption topic I've been confused by for a while now. From what I understand of LUKS, once the LUKS volume is opened with a passphrase and the resulting device mapper device is mounted, ...
0
votes
0answers
150 views

DM-crypt truecrypt container suddenly empty

I used to map and mount a truecrypt container with cryptsetup --type tcrypt open /path/to/file mount /dev/mapper/file /mnt/file and unmap / unmount it with umount /mnt/crypt cryptsetup --type ...
8
votes
1answer
11k views

How to non-interactively supply a passphrase to 'dmcrypt luksFormat'?

I'm writing a script which automatically sets up testing environment virtual machines. This script should automatically format a dmcrypt+LUKS partition for me, with a certain passphrase. Because this ...
0
votes
1answer
700 views

Running python to unlock luks full disk encryption

I wish to make use of full disk encryption using Luks on ubuntu 14.04. However, i wish to make use of my own python script to carry out the functionality of generating the decryption key during device ...
0
votes
1answer
423 views

Ubuntu 12.04 LUKS/dmcrypt disk to disk copy freezes

I have 2 external USB hard drives encrypted with LUKS in Ubuntu 12.04. Generally, the both drives are very slow with LUKS/dmcrypt, e.g. 7 MB/s for both read/write, but I could live with this. However,...
4
votes
1answer
760 views

ZFS on LUKS not recognized at boot

I've got 6 physical drives in RAID-Z2, which I intend to one-by-one convert to dm-crypt devices. My process was roughly: dd if=/dev/zero of=/dev/sdf Create keyfile /etc/crypttab.d/crypt-1.key ...
1
vote
1answer
494 views

How can I grow an ext4 filesystem inside a dm-crypt/LVM volume?

I have a disk with this format: sdc 8:32 0 1,8T 0 disk └─sdc1 8:33 0 1,8T 0 part ├─vg-lv1 (dm-0) 254:0 0 900G 0 lvm /...
1
vote
1answer
364 views

ID_FS_LABEL empty for luks volume

I have an LUKS encrypted partition on a disk. I would like to label it and have it available at /dev/disk/by-label. The value used is ID_FS_LABEL to create the link in /dev/disk/by-label. That value ...
0
votes
1answer
865 views

dmcrypt container on nfs

I'm setting up an encrypted file storage on a remote server and I want to be able to use it transparently on my system. I want to be able to de-/encrypt them locally so that the server hosting the ...
3
votes
1answer
1k views

Anybody experiencing full system lockups with LUKS?

I've recently setup a couple of new servers. This time I'm encrypting most of my partitions using dmcrypt+LUKS. However these new servers crash very often, every few days. Full lockups, kernel does ...
1
vote
1answer
4k views

how to mount a luks-encrypted file?

I had a good-working system. Cent OS 6. But after I made a reboot luks-partition has been unmounted. And our system administrator have a weekends now :( Please help me to mount a luks partition again....