Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Encrypted Drive Unable to Mount. dm_mod missing
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Encrypted Drive Unable to Mount. dm_mod missing
30th Dec, 2012, 08:05 AM
Post: #1
jsmith Offline
Registered
Posts: 5
Joined: Dec 2012
Reputation: 0
Encrypted Drive Unable to Mount. dm_mod missing
Whenever I try to mount a LUKS encrypted external HD, I get the following error message:

***
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Cannot initialize device-mapper. Is dm_mod kernel module loaded?
***

From what I understand this means that the dm_mod kernel isn't installed. Is there any fix for this? I've installed package updates, but have been unable to fix the problem.

Any help is appreciated.
Find all posts by this user
Quote this message in a reply
30th Dec, 2012, 08:15 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
Somehow it wasn't included in all kernel versions, while it should have. I will fix it when i get back from vacation. In the meanwhile try kernel version 3.2.27 or 3.6.7, those versions did include the module:

Code:
sudo apt-get install xbian-package-kernel3.2.27
or
Code:
sudo apt-get install xbian-package-kernel3.6.7

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 07:12 AM
Post: #3
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
I have readded these missing modules. Just update the kernel:
Code:
sudo apt-get install xbian-package-kernel3.6.11
sudo modprobe dm_crypt

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
15th Jan, 2013, 05:40 PM
Post: #4
jsmith Offline
Registered
Posts: 5
Joined: Dec 2012
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
I get fatal errors even after doing the above:

FATAL: Module dm_crypt not found.
and
FATAL: Module dm_mod not found.
Find all posts by this user
Quote this message in a reply
15th Jan, 2013, 07:57 PM
Post: #5
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
Dan you did not install the right kernel.

Can you check with:
Code:
dpkg-query -W -f='${Version}\n' "xbian-package-kernel3.6.11"

It should say 1.1

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Jan, 2013, 04:53 PM
Post: #6
jsmith Offline
Registered
Posts: 5
Joined: Dec 2012
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
I installed the right one. It says 1.1 when i query that.
Find all posts by this user
Quote this message in a reply
16th Jan, 2013, 07:59 PM
Post: #7
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
and did you do:
Code:
depmod -a

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
17th Jan, 2013, 04:20 PM
Post: #8
jsmith Offline
Registered
Posts: 5
Joined: Dec 2012
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
yep, i also did that. I also restarted the system, and double checked my installs and packages.

I still get fatal errors.
Find all posts by this user
Quote this message in a reply
17th Jan, 2013, 08:06 PM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
The modules should be there as you can see on this page: https://github.com/xbianonpi/xbian/tree/xbian-alpha5/lib/modules/3.6.11%2B/kernel/drivers/md

Can you try following this guide: http://forum.xbian.org/thread-211.html
And then try again.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
20th Jan, 2013, 12:54 PM
Post: #10
jsmith Offline
Registered
Posts: 5
Joined: Dec 2012
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
The above worked. Thanks a lot for all of the help CurlyMo!

I also found that for mounting truecrypt drives I had to disable kernel cryptographic services when mounting altogether by using the command: truecrypt -m=nokernelcrypto [volume] [mountpoint].

LUKS drives work with the regular mounting commands.

Thanks again
Find all posts by this user
Quote this message in a reply
20th Jan, 2013, 07:53 PM
Post: #11
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Encrypted Drive Unable to Mount. dm_mod missing
And i got the Splash + initramfs working already so no need to look into that.

Can you share your init file with us so we can implement these features by default:
- Mounting NFS root
- Mounting TrueCrypt drives

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
18th Oct, 2013, 10:42 AM
Post: #12
cell Offline
Registered
Posts: 3
Joined: Oct 2013
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
hello... so I found this thread after almost a year and just wanted to ask if the truecrypt package is somewhere handy or to be installed?
i can't find it in default repos, but maybe it's because my apt-get update is partially failing to update the index.

i'd truly appreciate any note if mounting truecrypt volumes is supported.
thanks.
Find all posts by this user
Quote this message in a reply
19th Oct, 2013, 02:43 AM
Post: #13
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Encrypted Drive Unable to Mount. dm_mod missing
@cell

I'm not really sure true crypt is available from the distro repositories anymore on linux, but last time I was working with it I followed many guides which are around, like this for instance:

https://wiki.archlinux.org/index.php/TrueCrypt

if still remember correctly, true crypt has to be installed/downloaded from true crypt repos / web.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
19th Oct, 2013, 04:48 AM
Post: #14
cell Offline
Registered
Posts: 3
Joined: Oct 2013
Reputation: 0
RE: Encrypted Drive Unable to Mount. dm_mod missing
I'll follow the guide. thanks a lot.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 07:16 PM Powered By MyBB, © 2002-2025 MyBB Group.