Unable to mount LUKS partition

Hi there!

I’m trying to mount a LUKS encrypted partition on a 8Tb USB disk. So far, I switched console to Ubuntu and
apt-get cryptsetup

When I try to
cryptsetup luksOpen /dev/sdc2 encrypted
I get a prompt to write the password and after I enter it, cryptsetup hangs and nothing else happens.

The partition was created on a different host with Ubuntu 17.04 and unlocks normally when pulgged there.
Anything I could try? (or is it nos possible at all?)



EDIT: Well, after some more proper troubleshooting, I’ve found that altohugh cryptsetup never ends execution, the actual /dev/dm-0 is created, so I

ln -s /dev/dm-0 /dev/mapper/encrypted

to finish the job. After that I was able to

mkfs.ext4 /dev/mapper/encrypted and mount /dev/mapper/encrypted /mnt/internal

So, it clearly works, although cryptsetup gets blocked by some reason (?). I don’t feel very comfortable with a (un)dead cryptsetup command lying around, so any solution/fix will be greatly appreciated.

Here is a issue, https://github.com/rancher/os/issues/2551.
If this is what you want, you can track that.

It seems that this still is an issue. It is reported here. It only happens to me when I’m not using the default console.

I managed to use this as a successful workaround:

system-docker exec -ti cryptsetup luksOpen /dev/sda2 srv