You are not logged in.

#1 2013-09-01 21:08:53

oscarcp
Member
Registered: 2013-09-01
Posts: 5

[SOLVED] Problem loading dm_crypt

Hi,

I've been using a USB dongle with a cyphered partition for a while with cryptofs + LUKS without any problem in Arch, but today I've tried to access the partition and I received this message:

oscarcp-> sudo sh mount_priv.sh 
[sudo] password for oscarcp: 
Enter passphrase: 
Cannot initialize device-mapper. Is dm_mod kernel module loaded?
mount: special device /dev/mapper/priv does not exist

Im using this kernel: Linux urbanus 3.10.9-1-ARCH #1 SMP PREEMPT Wed Aug 21 13:49:35 CEST 2013 x86_64 GNU/Linux

The mount_priv script is just a script doing some checks and running:

/usr/sbin/cryptsetup create priv /dev/sdb2
mount /dev/mapper/priv /home/oscarcp/priv

I wonder if there was any change recently in the kernel dm_mod module, since I'm not able to load it:

oscarcp-> sudo modprobe dm_mod
oscarcp-> lsmod | grep dm_mod
oscarcp-> 

Is there any way that I can solve this?

Last edited by oscarcp (2013-09-01 21:50:07)


Desktop: Intel Xeon X5650 6-core / 24GB RAM DDR3 / 1TB SSD / nVidia 750Ti
Laptop: Asus N550JK - Intel i7 4700HQ / 16GB RAM DDR3 / 1TB SSD / nVidia GTX850M

Offline

#2 2013-09-01 21:49:45

oscarcp
Member
Registered: 2013-09-01
Posts: 5

Re: [SOLVED] Problem loading dm_crypt

Solved, I don't know exactly what was the problem, but I did these two things:

Edit /etc/mkinitcpio.conf and add the tags encrypt, lvm2 and usb to the HOOKS variable, resulting in:

HOOKS="base udev usb autodetect modconf block lvm2 encrypt filesystems keyboard fsck"

And rebooted the system. Apparently I had a kernel update pending, from 3.10.9 to 3.10.10.

After rebooting I tried to mount the encrypted filesystem and it worked perfectly.


Desktop: Intel Xeon X5650 6-core / 24GB RAM DDR3 / 1TB SSD / nVidia 750Ti
Laptop: Asus N550JK - Intel i7 4700HQ / 16GB RAM DDR3 / 1TB SSD / nVidia GTX850M

Offline

Board footer

Powered by FluxBB