LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unable to mount encrypted USB (https://www.linuxquestions.org/questions/linux-server-73/unable-to-mount-encrypted-usb-4175528435/)

sunilpopaliya 12-16-2014 03:24 AM

Unable to mount encrypted USB
 
Hello,

I am not able to mount encrypted USB on Redhat Enterprise linux server.We are using cryptsetup for encryption. Below is the error which we are getting while mounting USB.We are facing this problem from last two days. Before that it was working fine.

[root@vishnugupt1 ~]# cryptsetup luksOpen /dev/sdj2 usb1
Enter LUKS passphrase:
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-plain cipher spec and verify that /dev/sdj2 contains at least 258 sectors.
Failed to read from key storage


Thanks in Advance.

Thanks and Regards,
Sunil

linosaurusroot 12-16-2014 05:44 AM

modprobe dm-crypt

sunilpopaliya 12-16-2014 06:27 AM

Dear linosaurusroot,

I have tried this but still facing the same issue.

Thanks for your reply.

Thanks and Regards,
Sunil

veerain 12-16-2014 11:06 AM

Try:

modprobe aes
modprobe aes-generic

and check

ls /lib/modules/your kernel-version/crypto
and
cat /proc/crypto

and after issuing cryptsetup command see dmesg output
dmesg

It may help.

sunilpopaliya 12-17-2014 01:53 AM

Dear veerain,

I have executed commands given by you.There is no directory like crypto in /lib/modules/your kernel-version.Output of cat /proc/crypto is given below.

[root@vishnugupt1 ~]# cat /proc/crypto
name : aes
driver : aes-generic
module : aes_generic
priority : 100
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32

name : aes
driver : aes-x86_64
module : aes_x86_64
priority : 200
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32

name : crc32c
driver : crc32c-generic
module : kernel
priority : 0
type : digest
blocksize : 32
digestsize : 4

name : sha1
driver : sha1-generic
module : kernel
priority : 0
type : digest
blocksize : 64
digestsize : 20

[root@vishnugupt1 ~]#


I have executed cryptsetup command and below is error message getting in dmesg.


device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:11: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.


Thanks for your reply.

Thanks and Regards,
Sunil


All times are GMT -5. The time now is 04:21 PM.