LinuxQuestions.org
Help answer threads with 0 replies.
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 06-17-2018, 02:15 PM   #1
laxware
Member
 
Registered: Jun 2018
Posts: 45

Rep: Reputation: Disabled
Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp"


Hello. I am following this guide http://ftp.slackware.com/pub/slackwa...ADME_CRYPT.TXT and am at the point where ive set up my partitions, created an encrypted root partition as /dev/mapper/cryptroot (the original device is /dev/sda1) and finished with the installed and edited the installer and chrooted into /mnt.

When I try to run
Code:
 mkinitrd -c -k 4.4.14-smp -m ext4 -f ext4 -r cryptroot -C /dev/sda1
I get
Code:
ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp"
is it because 4.4.14-smp is just 4.4.14 as I am using the 64bit install? I am afraid to test though so I posted here first. I just tested it and looks like it went through fine so I guess that's it...

Last edited by laxware; 06-17-2018 at 02:17 PM.
 
Old 06-17-2018, 02:19 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Yes, for 64-bit you should use 4.4.14 rather than 4.4.14-smp.
 
Old 06-17-2018, 02:26 PM   #3
laxware
Member
 
Registered: Jun 2018
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
Yes, for 64-bit you should use 4.4.14 rather than 4.4.14-smp.
Hi volkerdi, I should probably make another post...but I plan on writing a doc guide anyway.

I need some help with the instructions if you may. In the same instructions in OP I am at "If you have another OS on your computer" it says to change
Code:
"boot = /dev/mapper/cryptroot"
to
Code:
boot = /dev/sdx4"
with sdx4 corresponding to the boot partition made earlier....is this ONLY if I have another OS on the computer? With "boot = /dev/mapper/cryptroot" in my lilo.conf when I run lilo I get an error about only linear boot devices supported....guess I should change it to the boot partition?

Last edited by laxware; 06-17-2018 at 02:27 PM.
 
Old 06-17-2018, 04:25 PM   #4
laxware
Member
 
Registered: Jun 2018
Posts: 45

Original Poster
Rep: Reputation: Disabled
I had to change boot=/dev/mapper/cryptroot to boot=/dev/sda which is the disk that contains my root and boot partitions in order for lilo to execute. I also added the appropriate line in /etc/crypttab as per instructions. Now when I boot it says
Code:
Unlocking LUKS encrypted device '/dev/sda1' as luks mapped device 'lukssda1'
Is that okay to read lukssda1? During the install I used /dev/mapper/cryptroot. Also, I am unable to enter anything. Not sure if it is ky keyboard not being recognized or what yet.
 
Old 01-04-2019, 12:40 PM   #5
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
luks+lvm

howdy laxware:

Quote:
"when I run lilo I get an error about only linear boot devices supported..."
I assume you got your luks+lvm setup going by now... but if not, that above error is what happens if you run lilo before chrooting into your luks+lvm setup... if you chroot into your mounted luks+lvm setup before running lilo (or mkinitrd for that matter) then the /usr/usr/mkinitrd/mkinitrd-command-generator.sh shell script detects the luks setup and adds the appropriate -C flag to the initrd command; and lilo detects the luks setup and won't complain that only linear boot devices are supported.

In lilo's image configuration, my root entry for my luks+lvm image looks like root=/dev/cryptvg/root (here, I wrote cryptvg, because that is what is used in README_CRYPT.txt instructions)... but on my setups, I use the hostname for cryptvg, because I put luks+lvm on bootable external usb-ssd, and if I used cryptvg as the volume group name on every setup, it would try to make two /dev/cryptvg/root when I mount external ssd... so I started using hostname for cryptvg to avoid that conflict.
 
  


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
no kernel modules found for 2.6.29.6-smp aBiNg Slackware 4 12-19-2011 10:36 AM
[SOLVED] No /lib/modules/2.6.33.4-smp .. for mkinitrd - encrypted installation hua Slackware 5 07-22-2010 09:49 AM
[SOLVED] No kernel modules found for Linux 2.6.33.4-smp pejobe Slackware 3 06-08-2010 12:59 PM
fatal error attempting to install /var/log/mount/slackware/a/kernel-modules-smp-2.6.2 v@ny@ Slackware - Installation 10 05-19-2010 01:40 AM

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

All times are GMT -5. The time now is 04:48 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