You are not logged in.

#1 2009-11-23 00:14:48

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

Helo,

Well, I had setup four encrypted partitions  var,tmp,pkg,mail  with the DmCrypt-LUKS Arch-WiKi.

All went well but I was stupid and used a dumb Key-file. Now I want to add a passphrase then remove the key-file. However, I can't use cryptsetup for some reason.

whenever I try to run cryptsetup I keep getting this...

$ cryptsetup luksAddKey /dev/sda6 
Command failed: Cannot communicate with device-mapper. Is the dm_mod module loaded?

$ modprobe dm_mod

$ cryptsetup luksAddKey /dev/sda6 
Command failed: Cannot communicate with device-mapper. Is the dm_mod module loaded?

$ sudo modprobe dm_mod
 
$ same thing...... Is the dm_mod loaded

$ sudo modprobe dm-mod

no luck

$ sudo pacman -S kernel26 kernel-headders && reboot

$  sudo pacman -S cryptsetup

no luck

I even added dm_mod  AND dm-mod   to the rc.conf MODULES array and Reboot

no luck

$ locate dm-mod.ko
/lib/modules/2.6.31-ARCH/kernel/drivers/md/dm-mod.ko
/lib/modules/2.6.31-aircrack/kernel/drivers/md/dm-mod.ko
/usr/src/kernel26-aircrack/pkg/lib/modules/2.6.31-aircrack/kernel/drivers/md/dm-mod.ko
/usr/src/kernel26-aircrack/src/linux-2.6.31/drivers/md/.dm-mod.ko.cmd
/usr/src/kernel26-aircrack/src/linux-2.6.31/drivers/md/dm-mod.ko



?????????????

Anyone know what could be wrong ?

Concidering I have reinstalled the kernel and the dm-mod.ko IS installed. I guess it must be ME that is the problem. I must me doing some little stupid thing wrong.

What could it be?

Last edited by hunterthomson (2009-11-23 00:43:53)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#2 2009-11-23 02:16:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

what exactly happens when you modprobe dm-mod as root?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-11-23 06:38:40

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

Mr.Elendig wrote:

what exactly happens when you modprobe dm-mod as root?

nothing. As if it loaded the module.


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#4 2009-11-23 12:21:33

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

So did it load correctly? (lsmod | grep dm-mod)

Offline

#5 2009-11-23 13:40:14

uwinkelvos
Member
Registered: 2009-06-07
Posts: 129

Re: Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

did you try to run cryptsetup as root?

Offline

#6 2009-11-28 00:55:10

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Cryptsetup Not Working i.e. "Is the dm_mod module loaded?"

uwinkelvos wrote:

did you try to run cryptsetup as root?

Owe I am so stupid. tongue that did it.

I knew it had to be some dumb thing I was doing.


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

Board footer

Powered by FluxBB