# Unable to mount LUKS partition

**URL:** <https://forums.suse.com/t/unable-to-mount-luks-partition/12171>\
**Category:** RancherOS\
**Created:** [October 27, 2018, 12:30pm UTC](https://forums.suse.com/t/unable-to-mount-luks-partition/12171 "2018-10-27T12:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanxx](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ivanxx/32/4580_2.png) [@ivanxx](https://forums.suse.com/u/ivanxx)\
**Post date:** [October 27, 2018, 12:30pm UTC](https://forums.suse.com/t/unable-to-mount-luks-partition/12171/1 "2018-10-27T12:30:42Z")

</div>

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?)

Thanks!

-Iván.

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.

---

<div class="post-metadata">

**Author:** ![niusmallnan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/niusmallnan/32/811_2.png) [@niusmallnan](https://forums.suse.com/u/niusmallnan)\
**Post date:** [November 6, 2018, 1:59am UTC](https://forums.suse.com/t/unable-to-mount-luks-partition/12171/2 "2018-11-06T01:59:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cdauth](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cdauth](https://forums.suse.com/u/cdauth)\
**Post date:** [April 5, 2020, 10:29pm UTC](https://forums.suse.com/t/unable-to-mount-luks-partition/12171/3 "2020-04-05T22:29:40Z")

</div>

It seems that this still is an issue. It is reported [here](https://github.com/rancher/os/issues/2795). It only happens to me when I’m not using the default console.

I managed to use this as a successful workaround:

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

```
