LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   cryptsetup - command failed: invalid argument (http://www.linuxquestions.org/questions/debian-26/cryptsetup-command-failed-invalid-argument-348243/)

Captain Harlock 07-30-2005 12:36 AM

cryptsetup - command failed: invalid argument
 
Currently using Debian unstable, kernel 2.6.11-1-k7.
I'm not sure what happened between today and a couple days ago, but any insight would help.

I was just trying to mount my encrypted partition (/dev/hda4) and received "Command failed: Invalid argument" from cryptsetup.
I used the command properly, just like many times before:
$ sudo /sbin/cryptsetup create cryptonite /dev/hda4

I've also received this as root when running /etc/init.d/cryptdisks
Code:

/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.01.03 (2005-06-13)(compat) and kernel driver
Command failed

:D
Crisis averted. Solution found.
After downgrading to libdevmapper1.01.00-4 I was able to mount my encrypted partition.

Napalm Llama 03-23-2006 11:38 AM

Hi - I have this same problem, but it won't go away with different versions of libdevmapper (sys-fs/device-mapper in Gentoo).

I really need a fix because all my backup partitions are encrypted - so I can't make or restore from backups until crypsetup is working again...

Please help!

/edit:
Using sys-fs/device-mapper-1.01.03 and sys-fs/cryptsetup-luks-1.0.1-r1
If anyone thinks I should ask this in a new thread, please say so and I will. (And I'll delete this post/link it to the new one)

A.Thyssen 05-09-2006 12:18 AM

Cryptsetup
 
I also have seen this.

cryptsetup create hda8 /dev/hda8
Command failed: Invalid aguement

Strangly however the following does work!!!

cryptsetup create x /dev/hda8
Enter passphrase:

Also x_hda8 works too!
It looks like it is reacting to something about the label!
All in all it is very very weird!


All times are GMT -5. The time now is 09:33 AM.