LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-26-2008, 03:51 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Encrypted HD won't open in recompiled kernel


I am running Slackware 12.1 with an encrypted home partition. I am using the stock vmlinuz-huge-smp-2.6.24.5 kernel and everything works except part of my sound system. I think I had to recompile my kernel in Slackware 12 to fix just that, so I am going to try that again.

The kernel boots, but then I am prompted to enter the encrypted partition's password and I get an error message about the key slot not being found.

When I ran 'make xconfig', I removed a lot of stuff. But I thought I had removed only things that I didn't have and/or need. I never touched the cryptography section, I left everything enabled.

So I ran 'make xconfig' again and enabled a couple of things pretty much at random, to say the truth. This second kernel doesn't work either. I still get the same error.

Compiling is boring, takes forever, I don't want to go on with this trial and error forever. I also don't want to enable a lot of junk that I don't need. Does anyone here have a clue what I could have disabled that is causing this problem?

Here is my .config file:
http://pastebin.com/m650304e7

And here is a diff against the previous vmlinuz-huge-smp-2.6.24.5 kernel:
http://pastebin.com/m2e420e8e

Thanks in advance.
 
Old 10-27-2008, 03:30 AM   #2
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Maybe it's trying to unlock a non-encrypted volume. How did you create your initrd image and what is your encrypted partition? If the device name changes with the new kernel then you have you take it into account.
 
Old 10-27-2008, 03:51 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Looks like you removed at least the Device Mapper functionality. The Device Mapper is used for mapping encrypted devices.
Look for "DM_" options, which you removed completely.

If you do not know what you are messing with, stay with the defaults set for you by Slackware, and try to make incremental changes.
With remarks like "enabled a couple of things pretty much at random, to say the truth" and "Compiling is boring, takes forever, I don't want to go on with this trial and error forever" certainly are not encouraging. Lots of the stuff you see as "junk that I don't need" turns out to be important after all - you've proved that point yourself.

Eric
 
Old 10-27-2008, 04:20 AM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by Alien Bob View Post
If you do not know what you are messing with, stay with the defaults
Dude, ONE thing in my kernel config did not work and you think I should stay with the defaults? What's the point of an open system then?

But thanks for the clue about device mapper, it does make sense. I will try it right now.
 
Old 10-27-2008, 05:34 AM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
I don't understand. The config-huge-smp-2.6.24.5-smp file has these lines:

Code:
# CONFIG_DM_DEBUG is not set
CONFIG_DM_CRYPT=y
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_MIRROR=m
CONFIG_DM_ZERO=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m
CONFIG_DM_MULTIPATH_RDAC=m
CONFIG_DM_MULTIPATH_HP=m
# CONFIG_DM_DELAY is not set
# CONFIG_DM_UEVENT is not set
But they are not shown when I run 'make xconfig', only the top, generic option is available, CONFIG_DM_CRYPT=y. I've been messing with config-huge-smp-2.6.24.5-smp and other variations of .config and 'make xconfig' and can't make those lines get included in my resulting .config file.

Then I enabled the hidden options in 'make xconfig' and they are all there indeed, but all grayed out, I can't enable them. Why? How does that stuff work?

The mods should have moved this thread to the "Kernel" section, not Slackware.
 
Old 10-27-2008, 06:59 AM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
The options work in a structured hierarchical fashion. The controlling options when disabled will disable those that rely on them so..

Disabling
Code:
Multiple devices driver support (RAID and LVM) (MD)
will disable
Code:
RAID support (BLK_DEV_MD)
Device mapper support (BLK_DEV_DM)
and all their children. Enabling the parent controlling option will bring in the dependant children. If you switch on Show All Options it will show the options disabled by this process but grey them out.

There is a good reference from O'Reilly available on line The Linux kernel in a nutshell
 
Old 10-27-2008, 07:00 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by lucmove View Post
I don't understand. The config-huge-smp-2.6.24.5-smp file has these lines:

Code:
# CONFIG_DM_DEBUG is not set
CONFIG_DM_CRYPT=y
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_MIRROR=m
CONFIG_DM_ZERO=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m
CONFIG_DM_MULTIPATH_RDAC=m
CONFIG_DM_MULTIPATH_HP=m
# CONFIG_DM_DELAY is not set
# CONFIG_DM_UEVENT is not set
But they are not shown when I run 'make xconfig', only the top, generic option is available, CONFIG_DM_CRYPT=y. I've been messing with config-huge-smp-2.6.24.5-smp and other variations of .config and 'make xconfig' and can't make those lines get included in my resulting .config file.

Then I enabled the hidden options in 'make xconfig' and they are all there indeed, but all grayed out, I can't enable them. Why? How does that stuff work?

The mods should have moved this thread to the "Kernel" section, not Slackware.
In the kernel configuration, look under "Device drivers > Multiple devices driver support (RAID and LVM) --->".
For me running make menuconfig, I can change all these options at will.
Try to start with a Slackware .config file and use that as a working base to change gradually.

The important ones here are:
Code:
CONFIG_DM_CRYPT=y
CONFIG_BLK_DEV_DM=y
Eric
 
Old 10-27-2008, 07:45 AM   #8
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
I enabled "Device drivers > Multiple devices driver support (RAID and LVM) --->". But it isn't helping.

Screenshot 1

Screenshot 2
 
Old 10-27-2008, 08:49 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Quote:
Originally Posted by lucmove View Post
I am using the stock vmlinuz-huge-smp-2.6.24.5 kernel and everything works except part of my sound system. I think I had to recompile my kernel in Slackware 12 to fix just that, so I am going to try that again.
This is interesting.

What is the sound system (lscpi output would work best), and which part does not work?

Which kernel configuration changes, specifically, got it working last time?

Last edited by dugan; 10-27-2008 at 08:59 AM.
 
Old 10-27-2008, 06:16 PM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
My microphone isn't working so I haven't been able to use Skype. I don't remember what I did in Slackware 12, I just recompiled my kernel, and everything worked, including HD encryption. But I removed a lot of stuff in that occasion too, just like I am trying to do now.

So nobody knows why those options are disabled for me when I run make xconfig?
 
Old 11-22-2008, 11:37 PM   #11
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Some kernel include options are dependent on others, as was mentioned in the above message:

Quote:
The options work in a structured hierarchical fashion. The controlling options when disabled will disable those that rely on them so..
You came across a problem that I was looking for an answer to...that there does not seem to be a way to look up options and to find out what you need to include in the kernel. There is no way to find out what to include in your kernel to enable the functions that you want. You have to use a tool like menuconfig or xconfig and try things. That was frustrating for a newbie like me.
 
  


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
using recompiled kernel gruelius Linux - Newbie 2 02-17-2007 05:25 AM
Errors after recompiled Kernel longnam Slackware 1 05-03-2005 12:00 PM
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 12:00 PM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 08:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 01:36 AM

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

All times are GMT -5. The time now is 06:26 AM.

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