LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-08-2007, 09:09 AM   #1
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 30
cryptsetup and device-mapper problem


Hello.
When I try to reach my encrypted partition by cryptsetup (cryptsetup create SEC2 /dev/hda5 )
I have the following problem:

Code:
Command failed: device-mapper: reload ioctl failed: Bad argument
# dmesg | tail
device-mapper: table: 254:0: 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.
Any ideas ?
 
Old 03-08-2007, 09:19 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Seems to be a known problem:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395414

What says
modprobe -v dm-crypt

If its linked in the kernel, its a different story..

Last edited by nx5000; 03-08-2007 at 09:20 AM.
 
Old 03-08-2007, 09:22 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Did you add dm-crypt module yourself? Like you build it with module-assistant or is it the dm-crypt module from debian?
 
Old 03-08-2007, 10:44 AM   #4
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Original Poster
Rep: Reputation: 30
actually it's Arch ;-) and yes dm_crypt is loaded. So it's rather a bug :/
hope they'll do something with it soon..

oh... almost forgot, when using Debian Etch I can easily access my data there is cryptsetup 1.0.5 (I wonder why it isn't on official cryptsetup page ) in Etch, so maybe after upgrading my cryptsetup this problem will be solved...
 
Old 03-08-2007, 11:24 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by avallach
actually it's Arch ;-)
Ah yeah I always forget there's something else than debian
Quote:
and yes dm_crypt is loaded. So it's rather a bug :/
Yes but where is the question!
Quote:
hope they'll do something with it soon..
They won't if they are not aware of it. The page that I showed you says it was corrected by a kernel upgrade. Looking quickly at kernel changelog, I haven't seen the change.
You do run the _latest_ 2.6.x ? Like 2.6.18.4 or 2.6.x.latest
Quote:
oh... almost forgot, when using Debian Etch I can easily access my data there is cryptsetup 1.0.5 (I wonder why it isn't on official cryptsetup page ) in Etch, so maybe after upgrading my cryptsetup this problem will be solved...
1.0.5 doesn't exist ?? see here:
http://packages.debian.org/cgi-bin/s...ll&release=all
which is based on upstream cryptsetup version:
http://packages.debian.org/changelog...26-1/changelog
http://bugs.debian.org/cgi-bin/versi...%3A1.0.4~rc2-1
My method would be to upgrade first the kernel (in case you don't have the latests) because running a buggy kernel is never perfect.
And then maybe cryptsetup needs to be updated for compatibility with the newer dm_crypt or dm_mapper.

ioctl are a way to communicate to the kernel module. It looks like the cryptsetup is not compatible with the kernel (bad argument).

When you get the same Device Mapper (kernel in fact) and cryptsetup versions then it should work the same..

Last edited by nx5000; 03-08-2007 at 11:28 AM.
 
Old 03-08-2007, 11:38 AM   #6
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Original Poster
Rep: Reputation: 30
I am using 2.6.20 kernel on arch and 2.6.18 on Debian... So I suppose it's not a kernel problem here, I could try downgrading this 2.6.20 to be the same version as on Debian or just wait cryptsetup version working with the latest kernels

This 1.0.5 version wasn't officialy released, so it's rather still in development
 
  


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
Device-mapper errors FC6 cuco76 Fedora 3 05-02-2008 08:16 PM
device-mapper: dm-linear: Device lookup failed tajo01 Linux - Kernel 1 05-18-2006 08:22 PM
Does Mandrake 10.1 has device mapper? edccorp Mandriva 2 03-20-2005 08:51 AM
installing device-mapper aaronj Linux - Software 1 10-02-2004 02:00 AM
lvm 2 device-mapper Kroenecker Linux - Newbie 4 12-29-2003 11:19 AM


All times are GMT -5. The time now is 12:55 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