LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-15-2013, 04:15 PM   #1
furryspider
Member
 
Registered: Feb 2004
Location: by the Bavarian Sea
Distribution: Devuan 3 Beowulf
Posts: 74

Rep: Reputation: 18
Slackware 14.1: LUKS encrypted volumes + mkinitrd => missing dmsetup and can't unlock


Hello good folks of LQ,

just stopping by to describe an issue I ran into, in case the same should happen to others. My apologies if this is a duplicate; I did a search, but this might show up under all kinds of descriptions.

I'm in the process of moving my machines to Slackware 14.1, not by upgrading, but by doing fresh installations. All my partitions (except /boot) are LUKS encrypted volumes. My mkinitrd line contains the appropriate -C parameter.

The problem: During the boot process, I'm asked for the password of my root partition, as expected. Instead of unlocking it though, I'm getting a message saying we're missing /sbin/dmsetup. And that's it, the process can't go on.

Long story short: After some searching, I messed with my mkinitrd.gz using the method described in here (German), booting from the installation disc and placing the system's /sbin/dmsetup manually into the initrd.gz

This seems to work. Has anyone else experienced this? Am I doing something obviously wrong? Perhaps this might be a bug in mkinitrd?

Anyway, thought I would post this here, and hope it helps someone.
Cheers!
 
Old 11-15-2013, 04:33 PM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello,

There is no reason that you should tinker manually with initrd.gz image file.

I think it would be helpful if you could post the exact mkinitrd command that you used (including the parameters) and explain the layout of your partitions (ex: /dev/sda1 = /boot, ...).

Last edited by gegechris99; 11-15-2013 at 04:33 PM. Reason: typo
 
Old 11-15-2013, 05:47 PM   #3
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 204

Rep: Reputation: 44
Could your problem be what is described here, or maybe here ?
 
1 members found this post helpful.
Old 11-16-2013, 09:51 AM   #4
furryspider
Member
 
Registered: Feb 2004
Location: by the Bavarian Sea
Distribution: Devuan 3 Beowulf
Posts: 74

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by metageek View Post
Could your problem be what is described here, [...]
Yes sir, it could! Thanks, metageek. What morr is describing in post #7 (adding the -L switch to mkinitrd) would have achieved with much greater comfort what I did manually.

I have to say, though, that the description in the man page didn't exactly point me that way, as I'm not using LVM and had no clue what tools they might be talking about: "-L This option adds LVM support to the initrd, if the tools are available on the system."
 
Old 11-16-2013, 09:58 AM   #5
furryspider
Member
 
Registered: Feb 2004
Location: by the Bavarian Sea
Distribution: Devuan 3 Beowulf
Posts: 74

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by gegechris99 View Post
There is no reason that you should tinker manually with initrd.gz image file.
That's what I thought, too.
Nonetheless, I couldn't find any other sensible way to boot my system, and the tinkering resolved the problem.
Apart from the abovementioned -L switch, the mkinitrd call was fine.

Anyway, I learned something along the way, and with metageek's linked thread above, I now know how to solve the issue next time without manual interference. Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unlock LUKS encrypted partition with USB drive yenn Slackware 4 02-26-2013 04:39 PM
[SOLVED] How to unlock (Luks) encrypted root, during boot, when key-file is on USB?? pizzar0 Slackware 2 10-22-2011 07:14 AM
[SOLVED] Kernel update on LUKS and LVM encrypted Slackware, mount fails KMBS Slackware 15 02-08-2010 01:23 PM
Slackware 12.2 + RAID-1 + LVM + LUKS encrypted root gargamel Slackware 35 12-17-2009 11:25 AM
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration