Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] Cannot initialize device-mapper.

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Rainer06
n00b
n00b
Posts: 13
Joined: Sat Mar 25, 2006 12:40 pm
Location: Nuremberg

[SOLVED] Cannot initialize device-mapper.

  • Quote

Post by Rainer06 » Sun Apr 28, 2013 6:50 pm

I have updated my Gentoo installation for the first time after several months, and now I cannot read my encrypted Raid array any more.

When I am trying to access the Raid array with

Code: Select all

cryptsetup luksOpen /dev/md1 raid
I am getting the following error message:

Code: Select all

Cannot initialize device-mapper. Is dm_mod kernel module loaded?
I have tried to downgrade the version of cryptsetup, compiled a new kernel version, downgraded the version of udev, downgraded the version of lvm2,
but nothing was resolving the error. I am getting a little desperate now....

Let me try to provide some more background information:

1) The kernel configuration has not changed, and it was working previously with the kernel that is used.
In particular, device mapper is compiled into the kernel and available.
In /proc/misc, there is an entry "236 device-mapper".

2) The node /dev/md1 is visible.

3) The problem is with the device mapper itself.
Commands such as

Code: Select all

cryptsetup luksDump -v /dev/md1
are successful.

4) dmraid is not installed. Maybe this has been uninstalled with the update?
However, after an emerge of dmraid, the problem persists.

5)

Code: Select all

 dmsetup targets 
returns

Code: Select all

crypt            v1.12.1
striped          v1.5.1
linear           v1.2.1
error            v1.1.0
6) device mapper from lvm2 is started:

Code: Select all

# /etc/init.d/device-mapper status
 * status: started
# /etc/init.d/dmeventd status
 * status: started
Do you have any idea what I could do?
Maybe I could compile a new kernel with a device mapper module dm_mod and load that module.
But I am a little hesitant to do so because I think that this is not the problem, the
device mapper compiled into the kernel was working previously.
Last edited by Rainer06 on Mon Apr 29, 2013 5:07 am, edited 3 times in total.
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Sun Apr 28, 2013 7:40 pm

Rainer06 ...

somewhat of a guess really, but did you perhaps also update udev during this update?

>=udev-197 had a soname change, so perhaps your cryptsetup is linked to an older library:

Code: Select all

# ldd /sbin/cryptsetup
	linux-gate.so.1 (0xb775c000)
	libcryptsetup.so.4 => /usr/lib/libcryptsetup.so.4 (0xb7730000)
	libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb7724000)
	libc.so.6 => /lib/libc.so.6 (0xb759b000)
	libuuid.so.1 => /lib/libuuid.so.1 (0xb7595000)
	libdevmapper.so.1.02 => /lib/libdevmapper.so.1.02 (0xb7556000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb74db000)
	/lib/ld-linux.so.2 (0xb775d000)
	libudev.so.1 => /lib/libudev.so.1 (0xb749e000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7499000)
	librt.so.1 => /lib/librt.so.1 (0xb7490000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb7475000)
A 'revdep-rebuild' should fix this ... and any other packages linked to a libudev.so.{N}.

best ... khay
Top
Rainer06
n00b
n00b
Posts: 13
Joined: Sat Mar 25, 2006 12:40 pm
Location: Nuremberg

  • Quote

Post by Rainer06 » Sun Apr 28, 2013 7:52 pm

Khay,

Thank you for the suggestion.
I have run revdep-rebuild before,
and I have emerged cryptsetup newly.
But that did not solve the problem.

Regards,
Rainer
Top
Rainer06
n00b
n00b
Posts: 13
Joined: Sat Mar 25, 2006 12:40 pm
Location: Nuremberg

  • Quote

Post by Rainer06 » Sun Apr 28, 2013 11:06 pm

I have now compiled the kernel with device mapper as a module.

Code: Select all

modprobe dm_mod
and subsequent

Code: Select all

cryptsetup luksOpen /dev/md1 raid
yields the same error though.

Code: Select all

Cannot initialize device-mapper. Is dm_mod kernel module loaded?
I have no more idea what else I could do to resolve the issue.
Top
ulenrich
Veteran
Veteran
Posts: 1483
Joined: Sun Oct 10, 2010 9:26 pm

  • Quote

Post by ulenrich » Sun Apr 28, 2013 11:07 pm

Newer cryptsetup has wider encryption keys by default. Current~unstable cryptsetup needs a hint to decrypt with older kind of key. Lazily I stabled this ebuild with package.accept_keywords.
Top
jamatik
n00b
n00b
Posts: 39
Joined: Sat Nov 20, 2004 11:47 pm
Location: Berlin/Germany
Contact:
Contact jamatik
Website

  • Quote

Post by jamatik » Sun Apr 28, 2013 11:37 pm

Problem: =dev-libs/libgcrypt-1.5.2

Solution:

Code: Select all

USE="-caps" emerge -av libgcrypt
Top
ulenrich
Veteran
Veteran
Posts: 1483
Joined: Sun Oct 10, 2010 9:26 pm

  • Quote

Post by ulenrich » Sun Apr 28, 2013 11:47 pm

Yeah, but we are just wild guessing, because we know nothing about Rainers system :(
Top
jamatik
n00b
n00b
Posts: 39
Joined: Sat Nov 20, 2004 11:47 pm
Location: Berlin/Germany
Contact:
Contact jamatik
Website

  • Quote

Post by jamatik » Mon Apr 29, 2013 12:06 am

@ulenrich
Maybe u r doing "wild guessing", I do not.
If u don't know the problem and not have a "not confusing answer" to rainer06, then don't post anything in first place;-).
Top
Rainer06
n00b
n00b
Posts: 13
Joined: Sat Mar 25, 2006 12:40 pm
Location: Nuremberg

  • Quote

Post by Rainer06 » Mon Apr 29, 2013 5:04 am

Thank you very much!

Code: Select all

USE="-caps" emerge -av libgcrypt
is resolving the problem!

There should be a big warning about this for everybody updating libgcrypt.
I just checked the emerge logs, but there is no info about this.
Please add this information for the benefit of everybody else
using encryption.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic