LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-12-2012, 10:53 AM   #1
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Rep: Reputation: 0
Question LUKS / LVM2: Root partition unable to boot, initrd errors


For a new minimalist install of Slackware, I've encrypted and assigned for the root partition a 100GB logical volume following the "Combining LUKS and LVM" section of this guide: http://slackware.osuosl.org/slackware/README_CRYPT.TXT. So far, boot attempts have yielded kernel panics. Here are the preceding errors:

Code:
/boot/initrd.gz: Loading kernel modules from initrd image: No volumes found
LUKS device: /dev/sda6 is unavailable for unlocking!
mount: mounting /dev/swcrypt/root on /mnt failed: no such file or directory
Error: No /sbin/init found on rootdev (or not mounted)
The /boot partition is separate and encrypted.

Last edited by ADX; 01-12-2012 at 10:55 AM.
 
Old 01-12-2012, 11:44 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,503

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
Quote:
Originally Posted by ADX View Post
The /boot partition is separate and encrypted.
/boot (or to be more accurate the copy of the kernel and initrd you're using) must be on a non-encrypted partition.
 
Old 01-12-2012, 12:48 PM   #3
Panther_
LQ Newbie
 
Registered: Jan 2012
Location: Podlasie [Pl]
Distribution: Slackware-current
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by ADX View Post
For a new minimalist install of Slackware,[cut]
Hi,
install the packages from folder /slackware/n
libgcrypt, libgpg-error
By the way, who put them in a folder /n (network)?
 
Old 01-12-2012, 07:31 PM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,629

Rep: Reputation: 142Reputation: 142
For creating an "Initial RAM disk", an initrd, I highly recommend Alien Bob's generator script. It's called mkinitrd_command-generator.sh, and you can download it from here: http://connie.slackware.com/~alien/tools/.

gargamel

Last edited by gargamel; 01-13-2012 at 11:44 AM. Reason: Corrected typo.
 
Old 01-13-2012, 06:53 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,384

Rep: Reputation: Disabled
Quote:
Originally Posted by gargamel View Post
For creating an "Initial RAM disk", an initrd, I highly recommend Alien Bob's generator script. It's calle mkinitrd_command-generator.sh, and you can download it from here: http://connie.slackware.com/~alien/tools/.

gargamel
That script is also part of a Slackware full installation. It can be started as
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
Just run it to see what it can do for you. It is purely informative and will not change anything on your computer.

I run the following two commands usually to create an initrd.gz file and update my lilo.conf but you may want to be a bit more careful and first check what it does (also, check if your "generic kernel" is "/boot/vmlinuz-generic-2.6.37.6", if not change the second commandline accordingly):
Code:
$( /usr/share/mkinitrd/mkinitrd_command_generator.sh )

/usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-2.6.37.6 >> /etc/lilo.conf
Eric
 
Old 01-13-2012, 05:57 PM   #6
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GazL View Post
/boot (or to be more accurate the copy of the kernel and initrd you're using) must be on a non-encrypted partition.
Oops, that was a typo - it's unencrypted.

Quote:
Originally Posted by Panther_ View Post
Hi,
install the packages from folder /slackware/n
libgcrypt, libgpg-error
By the way, who put them in a folder /n (network)?
That did the trick! And it does seem strange that these libraries are under network.


Quote:
Originally Posted by gargamel View Post
For creating an "Initial RAM disk", an initrd, I highly recommend Alien Bob's generator script. It's called mkinitrd_command-generator.sh, and you can download it from here: http://connie.slackware.com/~alien/tools/.

gargamel
Quote:
Originally Posted by Alien Bob View Post
That script is also part of a Slackware full installation. It can be started as
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
Just run it to see what it can do for you. It is purely informative and will not change anything on your computer.

I run the following two commands usually to create an initrd.gz file and update my lilo.conf but you may want to be a bit more careful and first check what it does (also, check if your "generic kernel" is "/boot/vmlinuz-generic-2.6.37.6", if not change the second commandline accordingly):
Code:
$( /usr/share/mkinitrd/mkinitrd_command_generator.sh )

/usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-2.6.37.6 >> /etc/lilo.conf
Eric
Nice script.

Everything seems to be working now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Initramfs with decrypting a luks root partition questions dman777 Linux - Software 3 05-18-2011 10:58 AM
Luks Root Partition on Laptop dman777 Linux - Security 1 05-10-2011 09:13 AM
gentoo luks encrypted root partition - lots of trouble (with initramfs) Meson Gentoo 10 10-15-2009 05:15 PM
Initrd boot phase errors reading bogus partition on raid drive. charlweed Linux - Hardware 0 10-26-2006 02:36 PM
.xsession-errors filled my root partition now i cant boot suse10.0 64bit ianio Linux - Hardware 1 03-23-2006 05:40 AM


All times are GMT -5. The time now is 11:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration