LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-18-2022, 06:26 PM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
No kernel modules found


I have installed 15 on my laptop (a Tuxedo BM15), and all is well. However, after upgrading, all is not well at all.

Right after starting eudev, the error comes:

Code:
No kernel modules found for Linux 5.15.27.
mount: mounting /dev/nvme0n1p4 on /mnt failed: no such device
Error No /sbin/init found on rootdev (or not mounted). Trouble ahead.
Right after upgrading, I ran eliloconfig, and had it replace the entry.

I have brought the computer up with a boot USB stick. But then I have no network among other things. Right now, it's basically a brick.

It is reluctant to boot on its own. I need to go into the BIOS to chose the disk to boot (before upgrading). It has quirks, but otherwise fine.

Any help is greatly appreciated.
 
Old 03-18-2022, 06:36 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,467

Rep: Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226
Did you run the mkinitrd script after the update ?
 
Old 03-19-2022, 01:22 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,704
Blog Entries: 19

Rep: Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503
And did you upgrade the kernel modules as well as the kernel itself?
 
Old 03-19-2022, 03:04 AM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I have same problem on an old 32bits archos 10 netbook. Tried to increase the wait in the initrd but perhaps not enough. Still it boots with huge kernel.
 
Old 03-19-2022, 04:49 AM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 599

Rep: Reputation: Disabled
Is this a 32bit Slackware OS? Perhaps you installed a non-SMP kernel together with a SMP kernel-modules package (or vice versa).
Also, eliloconfig may not be the best tool to use after upgrades since it makes some assumptions that may be correct for the initial installation but not for upgrades, and worse: it only configures one kernel for you.
You may want to learn how to edit /boot/efi/EFI/Slackware/elilo.conf and add your new kernel(s) manually so that you can always keep a known working kernel in your boot selection menu.
 
1 members found this post helpful.
Old 03-19-2022, 08:29 AM   #6
Roger Krowiak
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 38

Rep: Reputation: 18
I'm having the same problem. I guess the reason is I didn't run the mkinitrd script. I've got two questions:
- is there a way to salvage current installation?
- should I run mkinitrd manually after kernel upgrade, or is there other way?


Thank you for your help.
 
Old 03-19-2022, 08:40 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,704
Blog Entries: 19

Rep: Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503
Quote:
Originally Posted by Roger Krowiak View Post
I'm having the same problem. I guess the reason is I didn't run the mkinitrd script. I've got two questions:
- is there a way to salvage current installation?
Almost certainly. But exactly how you do it will depend on a lot of info that you haven't given us yet. For example, which bootloader are you using, GRUB2 or elilo? Do you still have the old kernel and modules around anywhere? Can you boot from another system?
Quote:
- should I run mkinitrd manually after kernel upgrade, or is there other way?
Yes you should. Run Patrick's /usr/share/mkinitrd/mkinitrd_command_generator.sh script first so that you know what modules to provide. And remember that you'll have to add a -k option if you're creating it for a new kernel, not the one that's currently running.

Last edited by hazel; 03-19-2022 at 08:41 AM.
 
Old 03-19-2022, 08:58 AM   #8
Roger Krowiak
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 38

Rep: Reputation: 18
Quote:
Originally Posted by hazel View Post
Almost certainly. But exactly how you do it will depend on a lot of info that you haven't given us yet. For example, which bootloader are you using, GRUB2 or elilo? Do you still have the old kernel and modules around anywhere? Can you boot from another system?
Thank you for your reply. It's elilo. Old modules are gone, just the new ones. I'm able to boot the system, but USB keyboard doesn't work, also no network. I have bootable USB Slackware instalation key, I'm able to mount partitions, which are:
/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /
/dev/sda4 /home

Can I make it with this stuff?
 
Old 03-19-2022, 09:19 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,704
Blog Entries: 19

Rep: Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503
Quote:
Originally Posted by Roger Krowiak View Post
Thank you for your reply. It's elilo. Old modules are gone, just the new ones. I'm able to boot the system, but USB keyboard doesn't work, also no network. I have bootable USB Slackware instalation key, I'm able to mount partitions, which are:
/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /
/dev/sda4 /home

Can I make it with this stuff?
Not sure. You say you have the new modules. What about the new kernel that goes with them? And the initrd to go with the kernel? You need a full matching set somewhere on your system.

Here are a couple of things to check:
1) Which kernel(s) do you currently have installed modules for? Look in /lib/modules.
2) If you have any installed modules at all, do you have a kernel image to go with them? Look in /boot as well as on your ESP. You can also find a list of what's currently installed in /var/lib/pkgtools/packages.

I gather you have a keyboard when you boot from your installation image so you should be able to check up on that. If you can find a matching set of kernel plus modules, you just need to make (or find) an initrd for the kernel and copy everything to the right places for a working boot.

If not, you will need to boot from something that gives you a network connection, like systemRescueCD, so that you can download what you need from a Slackware mirror.

Last edited by hazel; 03-19-2022 at 09:27 AM.
 
Old 03-19-2022, 09:51 AM   #10
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by marav View Post
Did you run the mkinitrd script after the update ?
I have only done what I have ever done:
Quote:
slackpkg update
slackpkg upgrade-all
After that, I ran eliloconfig. Previousy, I merely ran lilo, no longer valid on the modern 64-bit hardware.
 
Old 03-19-2022, 09:58 AM   #11
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by hazel View Post
And did you upgrade the kernel modules as well as the kernel itself?
Among the packages to upgrade was the kernel modules. That said, I have always used the huge kernel and never had to bother about modules or mkinitrd.
 
Old 03-19-2022, 10:05 AM   #12
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I would go with
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k $kernel_version
where $kernel_version is the last you installed with according modules.

If it's ok this will create the initrd.gz
Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k $kernel_version)
Then edit elilo.conf

If you have multiple kernel and initrds add
Code:
-o /boot/initrd-$version.gz
at the previous command
 
Old 03-19-2022, 10:08 AM   #13
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Windu View Post
Is this a 32bit Slackware OS? Perhaps you installed a non-SMP kernel together with a SMP kernel-modules package (or vice versa).
I got myself a brand spanking new computer just for the release of 15. It's a 64 bit machine. I chose the huge option as far as I know.

Quote:
Also, eliloconfig may not be the best tool to use after upgrades since it makes some assumptions that may be correct for the initial installation but not for upgrades, and worse: it only configures one kernel for you.
You may want to learn how to edit /boot/efi/EFI/Slackware/elilo.conf and add your new kernel(s) manually so that you can always keep a known working kernel in your boot selection menu.
Yes, I made the assumption that all was back to the good old ways. Apparently I have to learn new tricks to keep the system going.
 
Old 03-19-2022, 10:37 AM   #14
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I'm not sure this will be useful, but want to mention it, just in case. I have a System76 Pangolin that for whatever reason, doesn't like to boot with elilo. I've come to find out that tuxedo and system76 share a lot in common. Anyway, based on your posts in this thread I doubt the issue is with elilo, but just wanted to mention it.
 
Old 03-19-2022, 11:01 AM   #15
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,735

Rep: Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400Reputation: 1400
You can use the Slackware 15.0 install disc as a rescue. With a UEFI system, boot the installation medium and there is an option called "Detect/boot any installed operating system". Assuming you did install all the 5.15.27 patches, modules, huge, generic, etc. Then it should find them and you should be able to select the huge kernel from there and boot the system. Once booted then you can make a new initrd the way Tonus mentioned.
 
  


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] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 12:40 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

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

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