LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-16-2018, 12:24 PM   #1
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
Failed to load 4.19.8 modules after upgrading kernel to 4.19.9 on -current


I've done an upgrade on my -current installation and got the new 4.19.9 kernel.
During boot, some errors popped up stating that modules could not be load for kernel 4.19.8, and as a result my wireless keyboard does not work and i'm unable to debug much more. I also get the welcome message "Welcome to Linux 4.19.8", which is weird.
What could be going wrong here? I haven't switched to the generic version, i ran lilo after the upgrade, tried also repairing from a chroot from the installation media, but no luck.
I see some users here reporting issues with the new kernel but seem unrelated to mine (mostly for newer amd gpu).
Lesson learned: blacklist the working kernel packages
 
Old 12-16-2018, 12:52 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339
You do not updated properly your bootloader, and was loaded the previous 4.19.8 kernel.

Probably you use LILO, because something like that can happen because LILO read the kernel directly from hard drive, in a sectors base.

You are still lucky, because the deleted kernel file was not overridden yet by another file written and you managed still to boot with whatever success.

My suggestion is to boot from a live system and to fix your bootloader.

Last edited by LuckyCyborg; 12-16-2018 at 12:57 PM.
 
Old 12-16-2018, 01:05 PM   #3
giomat
Member
 
Registered: Jul 2017
Posts: 339

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
Thanks for the reply, but i'm not sure where to go from here.
I already tried to fix my bootloader from the live cd with no luck, if i look in /boot i see that vmlinuz is indeed pointing to the huge kernel 4.19.9, shouldnt it be enough?
 
Old 12-16-2018, 01:07 PM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339
What bootloader you use? LILO?

You are kind then to show me your /etc/lilo.conf ?

I had a similar adventure in the past, so I will try to help you.

Last edited by LuckyCyborg; 12-16-2018 at 01:10 PM.
 
Old 12-16-2018, 01:10 PM   #5
giomat
Member
 
Registered: Jul 2017
Posts: 339

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
yes i'm using lilo, here's my config

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" "

boot = /dev/sda
#compact # faster, but won't work on all systems.

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255


# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
# Linux bootable partition config ends
 
Old 12-16-2018, 01:22 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339Reputation: 3339
Assuming that /boot/vmlinuz points to the proper kernel and you booted from one of live systems made by AlienBOB, as root from that live you should run
Code:
# Mount the filesystems
mount /dev/sda2 /mnt/tmp
mount --bind /proc /mnt/tmp/proc

# Update the LILO
lilo -r /mnt/tmp

# Umount the filesystems
umount /mnt/tmp/proc
umount /mnt/tmp
Then you should reboot the system.

Please note that with "#" I made some comments about steps, they aren't commands.

Last edited by LuckyCyborg; 12-16-2018 at 01:24 PM.
 
2 members found this post helpful.
Old 12-16-2018, 01:36 PM   #7
giomat
Member
 
Registered: Jul 2017
Posts: 339

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
okay solved for the moment! that didnt't do trick, i already tried it before. What did the trick was to unplug the hard-drive. I recently got an ssd and moved my installation there, formatting the hard disk for storage usage.
Could be that lilo was still somehow looking in there for something?
Thanks luckycyborg for the help!
 
Old 12-16-2018, 01:40 PM   #8
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by giomat View Post
Could be that lilo was still somehow looking in there for something?
Probably the (hard drive) devices order was changed after adding your SSD. E.g. /dev/sda was renamed as /dev/sdb or whatever.
 
  


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] Firefox is failing to load after upgrading to -current. Slack_Buddha Slackware 4 07-31-2014 08:36 AM
Failed to load kernel modules on arch after "pacman -Syu" imu96 Linux - Kernel 6 04-03-2013 10:54 PM
[SOLVED] After upgrading 64-current to 2.6.33, still boots 2.6.32.7 and loads no modules Abraxel Slackware 10 03-25-2010 03:00 PM
High CPU load after upgrading to xorg 1.6.3 (-current) Poetics Slackware 5 08-27-2009 12:46 AM
after compiling kernel: failed to load /etc/modules.autoload.d jay73 Linux - Software 1 04-18-2007 09:51 AM

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

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