LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-31-2022, 01:28 PM   #1
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Rep: Reputation: 2
Slackware (current) does not work properly after update


Hi.
I use Slackware current with KDE Plasma as graphic interface, and I did an update. After that, Slackware stopped work properly. At the initial screen (terminal, before use starx command) the keyboard of the notebook works normal, but the USB keyboard don't. After I enter the graphical interface (using startx command) the KDE Plasma loads and show the desktop, but the keyboard (now, the notebook keyboard) and the mouse do not work.
The O.S. seems to continue working, because after a time the screen locks automatically.
I've tried to upgrade again the Slackware at the terminal, but a error appears. That's when I saw that the network card was not being recognized.
I used the ifconfig -a but it did not show my network card, only shows lo result.
The commands that I used to upgrade the Slackware before the errors was:
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
 
Old 01-31-2022, 01:32 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by paulomatheus View Post
Hi.
I use Slackware current with KDE Plasma as graphic interface, and I did an update. After that, Slackware stopped work properly. At the initial screen (terminal, before use starx command) the keyboard of the notebook works normal, but the USB keyboard don't. After I enter the graphical interface (using startx command) the KDE Plasma loads and show the desktop, but the keyboard (now, the notebook keyboard) and the mouse do not work.
The O.S. seems to continue working, because after a time the screen locks automatically.
I've tried to upgrade again the Slackware at the terminal, but a error appears. That's when I saw that the network card was not being recognized.
I used the ifconfig -a but it did not show my network card, only shows lo result.
The commands that I used to upgrade the Slackware before the errors was:
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
Looks like you forgot to update your bootloader(s) for the latest installed kernel, so you use an older kernel without its associated modules.
 
Old 01-31-2022, 01:32 PM   #3
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Looks like you forgot to update your bootloader(s) for the latest installed kernel, so you use an older kernel without its associated modules.
How can I fix it?
 
Old 01-31-2022, 01:34 PM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by paulomatheus View Post
How can I fix it?
Depends on how you have configured the bootloader and what bootloader you use.

Anyway, you are still lucky that you can boot the system, and you can inspect it.
 
Old 01-31-2022, 01:40 PM   #5
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Depends on how you have configured the bootloader and what bootloader you use.

Anyway, you are still lucky that you can boot the system, and you can inspect it.
I'm using LILO and I used the automatic configuration for it in the the Slackware installer
 
Old 01-31-2022, 01:42 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Show your /etc/lilo.conf

And, did you observed a kernel update when you did the last update?

As principle, after a kernel update you should run "lilo" to update your bootloader. BUT, usually you should also update your initrd, too.

Last edited by LuckyCyborg; 01-31-2022 at 01:45 PM.
 
Old 01-31-2022, 01:46 PM   #7
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Show your /etc/lilo.conf

And, did you observed a kernel update when you did the last update?

As principle, after a kernel update you should run "lilo" to update your bootloader. BUT, usually you should also update your initrd, too.
Yes, there was a kernel update
 
Old 01-31-2022, 01:51 PM   #8
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Show your /etc/lilo.conf

And, did you observed a kernel update when you did the last update?

As principle, after a kernel update you should run "lilo" to update your bootloader. BUT, usually you should also update your initrd, too.
To update my initrd do I need to know the kernel version and edit the file?
 
Old 01-31-2022, 01:56 PM   #9
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by paulomatheus View Post
To update my initrd do I need to know the kernel version and edit the file?
The current kernel version is simple to find, looking in the /boot directory - I suspect that you have 5.15.18 and to generate a new initrd you can use "/usr/sbin/geninitrd"

BTW, what architecture you use? i586 or x86_64?

Last edited by LuckyCyborg; 01-31-2022 at 01:57 PM.
 
Old 01-31-2022, 01:58 PM   #10
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
It happened some times to me and what I do in these cases is a chroot using the installation media (USB drive in my case).

You can follow this great guide here
https://docs.slackware.com/howtos:sl...oot_from_media.

Once you are inside the chroot, just run /shin/lilo and it should be good to go after a reboot, provided that you didn't switch to the generic kernel after the installation.

EDIT: sorry after a better read i see that you are indeed running a generic kernel, better follow the luckycyborg advice

Last edited by giomat; 01-31-2022 at 02:00 PM.
 
Old 01-31-2022, 02:01 PM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by giomat View Post
It happened some times to me and what I do in these cases is a chroot using the installation media (USB drive in my case).

You can follow this great guide here
https://docs.slackware.com/howtos:sl...oot_from_media.

Once you are inside the chroot, just run /shin/lilo and it should be good to go after a reboot, provided that you didn't switch to the generic kernel after the installation.

EDIT: sorry after a better read i see that you are indeed running a generic kernel, better follow the luckycyborg advice
The OP still can boot and enter in the system, I do not think that s/he needs to chroot.
 
Old 01-31-2022, 02:02 PM   #12
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
The current kernel version is simple to find, looking in the /boot directory - I suspect that you have 5.15.18 and to generate a new initrd you can use "/usr/sbin/geninitrd"

BTW, what architecture you use? i586 or x86_64?
I'm using x86_64
And the Kernel's version: that's exactly what you said
5.15.18

Last edited by paulomatheus; 01-31-2022 at 02:05 PM.
 
Old 01-31-2022, 02:03 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by paulomatheus View Post
I'm using x86_64
Again, please show your /etc/lilo.conf file content.
 
Old 01-31-2022, 02:18 PM   #14
paulomatheus
LQ Newbie
 
Registered: Jan 2022
Location: Imperatriz-MA, Brazil
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Again, please show your /etc/lilo.conf file content.
I took photos because I couldn't copy them, here are the photos from my Lilo.conf file in PDF
Attached Files
File Type: pdf IMG_20220131_171108.pdf (412.9 KB, 41 views)
 
Old 01-31-2022, 02:31 PM   #15
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by paulomatheus View Post
I took photos because I couldn't copy them, here are the photos from my Lilo.conf file in PDF
So, you do not use initrd. It's enough to execute "lilo" as root, and to reboot.
 
1 members found this post helpful.
  


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
Mount error - works with Slackware 14.2, does not work with Slackware -current Ook Slackware 7 02-13-2021 06:16 AM
kmail does not work after latest update or two to slackware64-current jkh2cpu Slackware 17 06-28-2019 08:44 PM
Wireless connections doesn't work properly after kernel update on OpenSuse 10.3 flik Linux - Wireless Networking 0 03-11-2008 04:22 AM
after online update my SUSE 9.1 doesn't work properly cccc Linux - Distributions 0 01-30-2005 04:47 PM

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

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