LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-29-2011, 04:00 PM   #1
fat_boy
LQ Newbie
 
Registered: Dec 2005
Distribution: Arch, RHEL, Ubuntu
Posts: 4

Rep: Reputation: 0
Failed to setup dm-crypt key mapping for device /dev/sda2


Hello,

This is my first post so please be tolerant

My problem is with booting OS. The system is modified RHEL WS 6.1 on work laptop.

Recently there was an automatic update which finished successfully and asked for OS reset.
I did not do that and kept working until OS freeze and I had to do cold reset it. And then problems started.

Encrypted(LUKS) partition is under LVM. Whenever I type password it denies it with below error.

alg: No test for __aes-aesni (_driver-aes-aesni)
alg: No test for __ecb-aes-aesni (_driver-ecb-aes-aesni)
alg: No test for __cbc-aes-aesni (_driver-cbc-aes-aesni)
alg: No test for __ecb-aes-aesni (cryptd(_driver-ecb-aes-aesni))
device-mapper: table: 253:3: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: reload ioctl failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/sda2
Check the kernel supports aes-xts-plain64 cipher (check syslog for more info)
Failed to read from key storage

Strange but in fail safe same password is accepted.

I tried to generate initramfs, reinstall kernel and downgrade it.
Neither step helped.
 
Old 11-29-2011, 07:10 PM   #2
realbluntz
Member
 
Registered: Jun 2010
Location: the D
Distribution: arch x86_64
Posts: 57

Rep: Reputation: 3
syslog for more info
 
Old 11-30-2011, 09:34 AM   #3
fat_boy
LQ Newbie
 
Registered: Dec 2005
Distribution: Arch, RHEL, Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
There is no syslog in system, I found only /var/log/boot file. But it is useless and contains only several lines.
How about order of modules loaded in iniramfs, does it matter ?
What could be the difference in normal and fail safe kernels that make one working and other not ?
 
Old 12-05-2011, 06:06 PM   #4
realbluntz
Member
 
Registered: Jun 2010
Location: the D
Distribution: arch x86_64
Posts: 57

Rep: Reputation: 3
Yes, order of modules is important; encrypt needs to be loaded before the filesystem.
 
Old 12-05-2011, 11:45 PM   #5
fat_boy
LQ Newbie
 
Registered: Dec 2005
Distribution: Arch, RHEL, Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
The problem is solved now, I reinstalled operating system. Thank you for the help.
 
  


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
fsck.reiserfs /dev/sda2 failed jec25 Linux - Newbie 2 10-28-2009 10:17 PM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument dohpaz Slackware 7 05-25-2007 02:03 AM
"block device /dev/sda2 is write-protected, mounting read-only" - fstab problem blanks77 Linux - Hardware 1 04-28-2006 06:09 PM
connecting external device causes SuSe boot error with /dev/sda2 maxsch LinuxQuestions.org Member Success Stories 3 02-02-2006 01:17 AM


All times are GMT -5. The time now is 07:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration