LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-16-2014, 03:24 AM   #1
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
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
 
Old 12-16-2014, 05:44 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
modprobe dm-crypt
 
Old 12-16-2014, 06:27 AM   #3
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Original Poster
Rep: Reputation: 4
Dear linosaurusroot,

I have tried this but still facing the same issue.

Thanks for your reply.

Thanks and Regards,
Sunil
 
Old 12-16-2014, 11:06 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.
 
Old 12-17-2014, 01:53 AM   #5
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Original Poster
Rep: Reputation: 4
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount an encrypted partition /dev/sda6 navneethr Fedora 5 03-04-2011 12:37 AM
unable to mount USB pardo Linux - Hardware 2 07-14-2009 07:48 AM
move grub to usb + mount encrypted devices from usb question Lancelot1 Linux - Security 1 02-26-2009 09:51 AM
Mayday! How do I manually mount my encrypted ext3 external usb disk? simonsharry Linux - Newbie 11 02-15-2009 04:49 AM
Can't mount encrypted USB drive letrout Linux - General 1 02-08-2006 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration