Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-27-2010, 05:01 AM   #1
LQ Newbie
Registered: Aug 2009
Location: AT
Distribution: gentoo,debian
Posts: 4

Rep: Reputation: 0
cryptsetup - canīt open luks parittion - "no key available with this passphrase"


i have strange problems with luks since my last reboot of my Gentoo Linux (64 bit) box.

the md*-devices have strange names (for example md125 - before it was md3). the luks header of "md125" (raid 10 - 1,5 tb) is still there but i canīt open the luks-partition. The message is "No key available with this passphrase".

the filesystem off the encrypted luks partition is ext4.

I am absolutely sure that the passphrase is valid!

I hope someone have some suggestions for me. all my data is stored on this raid 10.

some debug output:
cryptsetup luksOpen /dev/md6 storage --debug
# cryptsetup 1.1.2 processing "cryptsetup luksOpen /dev/md6 storage --debug"
# Locking memory.
# Allocating crypt device /dev/md6 context.
# Trying to open and read device /dev/md6.
# Initialising device-mapper backend, UDEV is enabled.
# Detected dm-crypt target of version 1.7.0.
# Timeout set to 0 miliseconds.
# Password retry count set to 3.
# Iteration time set to 1000 miliseconds.
# Password verification disabled.
# Trying to load LUKS1 crypt type from device /dev/md6.
# Initializing crypto backend (using secure memory).
# Reading LUKS header of size 1024 from device /dev/md6
# Activating volume storage [keyslot -1] using [none] passphrase.
# dm status storage OF [16384]
Enter passphrase for /dev/md6:
# Trying to open key slot 0 [3].
# Reading key slot 0 area.
# DM-UUID is CRYPT-TEMP-temporary-cryptsetup-22803
# Udev cookie 0xd4d9fbd (semid 2850817) created
# Udev cookie 0xd4d9fbd (semid 2850817) incremented
# Udev cookie 0xd4d9fbd (semid 2850817) incremented
# Udev cookie 0xd4d9fbd (semid 2850817) assigned to dm_task type 0 with flags 0xe
# dm create temporary-cryptsetup-22803 CRYPT-TEMP-temporary-cryptsetup-22803 OF [16384]
# temporary-cryptsetup-22803: Stacking NODE_ADD (252,0) 0:0 0600
# dm reload temporary-cryptsetup-22803 OF [16384]
# dm resume temporary-cryptsetup-22803 OF [16384]
# temporary-cryptsetup-22803: Stacking NODE_READ_AHEAD 4096 (flags=1)
# Udev cookie 0xd4d9fbd (semid 2850817) decremented
# Udev cookie 0xd4d9fbd (semid 2850817): Waiting for zero
# Udev cookie 0xd4d9fbd (semid 2850817) destroyed
# temporary-cryptsetup-22803: read ahead is 256
# temporary-cryptsetup-22803: Setting read ahead to 4096
# Udev cookie 0xd4da76b (semid 2883585) created
# Udev cookie 0xd4da76b (semid 2883585) incremented
# Udev cookie 0xd4da76b (semid 2883585) incremented
# Udev cookie 0xd4da76b (semid 2883585) assigned to dm_task type 2 with flags 0x0
# dm remove temporary-cryptsetup-22803 OF [16384]
# temporary-cryptsetup-22803: Stacking NODE_DEL (replaces other stacked ops)
# Udev cookie 0xd4da76b (semid 2883585) decremented
# Udev cookie 0xd4da76b (semid 2883585): Waiting for zero
# Udev cookie 0xd4da76b (semid 2883585) destroyed
# Trying to open key slot 1 [1].
# Trying to open key slot 2 [1].
# Trying to open key slot 3 [1].
# Trying to open key slot 4 [1].
# Trying to open key slot 5 [1].
# Trying to open key slot 6 [1].
# Trying to open key slot 7 [1].
No key available with this passphrase.

this is also strange, ... if i create the raid 0 with the other drives of the raid 1 with metadata 0.9 then one time i get 64k chunks and the other time 512k chunks. Luks header is still there but the valid passphrase is not accepted...

thanks in advance

Last edited by ts0; 10-27-2010 at 05:04 AM.
Old 06-08-2013, 12:46 PM   #2
Registered: Oct 2005
Posts: 310

Rep: Reputation: 30
Hi ts0,

Has your problem resolved? I encountered the same issue and now I could not load my data.


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
automount 5.0.3 with auto.smb script yields "key "<name>" not found in map" rbergen Linux - Software 0 01-01-2010 01:27 PM
"Enter Key" not working, how to map "Enter Key" functionality to "F9" Key srinihi Linux - Newbie 1 04-03-2009 03:46 PM
cryptsetup won't open crypted fs on raid5 with known luks passphrase luboss Linux - Security 3 11-13-2008 02:55 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
"Installing non-distro Linux on USB key" or "Using syslinux to boot a jffs2" lymae Linux - Newbie 6 12-31-2006 11:00 PM

All times are GMT -5. The time now is 11:20 PM.

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