LinuxQuestions.org
Review your favorite Linux distribution.
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 02-01-2017, 12:51 PM   #1
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Rep: Reputation: 10
Keyboard / Mouse not working after updating kernel. im booting using a USB boot drive


Hey all, I have been playing with Slackware for years and I am still a complete noob. Anyway, I loaded Slackware 14.2 stable on my laptop and ran

slackpkg update
slackpkg install-new
slackpkg upgrade-all (This updated my kernel)

After rebooting my laptop the keyboard and usb mouse doesn't work. I'm assuming that the 4.4.38 kernel or modules didn't get installed correctly or by using a USB boot drive that i am trying to boot into the old kernel. I have no idea what im doing with the kernel / modules. Im also guessing that if i remade the USB boot drive after upgading the kernel then everything would work. Problem is i do not know how to do that. Any ideas?

Thanks for the help.

Hooks
 
Old 02-01-2017, 01:07 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Im also guessing that if i remade the USB boot drive after upgading the kernel then everything would work. Problem is i do not know how to do that.
Your "guess" about the USB boot drive sounds like the correct approach. When changing the kernel the boot loader needs to be addressed (lilo,grub).
 
Old 02-01-2017, 01:10 PM   #3
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by TracyTiger View Post
Your "guess" about the USB boot drive sounds like the correct approach. When changing the kernel the boot loader needs to be addressed (lilo,grub).
Do you know how to do that on a USB boot drive?

Last edited by Hooks123; 02-01-2017 at 01:12 PM. Reason: missing info
 
Old 02-01-2017, 01:23 PM   #4
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
I don't use USB for /boot or any of the operating system files, nor do I boot the system from a USB connected drive, nor do I have any experience with modern motherboards (elilo, grub, etc).

Others that have experience with these items can probably more efficiently make suggestions. I was just pointing you in a general direction.

If you use lilo to boot you can often get by with an automated kernel upgrade by using slackpkg or installpkg and simply re-running lilo and perhaps remaking initrd. But many (most?) Slackware users prefer to blacklist kernel packages in slackpkg and perform the kernel upgrade manually. This has the added advantage of being able to keep the previous kernel available when the new kernel doesn't work, as in your case.
 
Old 02-01-2017, 01:28 PM   #5
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by TracyTiger View Post
I don't use USB for /boot or any of the operating system files, nor do I boot the system from a USB connected drive, nor do I have any experience with modern motherboards (elilo, grub, etc).

Others that have experience with these items can probably more efficiently make suggestions. I was just pointing you in a general direction.

If you use lilo to boot you can often get by with an automated kernel upgrade by using slackpkg or installpkg and simply re-running lilo and perhaps remaking initrd. But many (most?) Slackware users prefer to blacklist kernel packages in slackpkg and perform the kernel upgrade manually. This has the added advantage of being able to keep the previous kernel available when the new kernel doesn't work, as in your case.
Thanks for the info. Im sure that i can update the kernel and modules manually. Whats confusing to me is the whole USB boot drive. I am under the impression that someone booting from a USB boot drive doesn't even need lilo or grub. Is this correct?
 
Old 02-01-2017, 01:31 PM   #6
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
The bootloader (hard drive, flash drive, whatever) needs to know where the kernel/initrd is located, either by file name or block device coordinates. My understanding is that if you change the kernel location you need to tell the bootloader.
 
Old 02-01-2017, 01:32 PM   #7
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by TracyTiger View Post
The bootloader (hard drive, flash drive, whatever) needs to know where the kernel is located, either by file name or block device coordinates. My understanding is that if you change the kernel location you need to tell the bootloader.
Great, Thanks for the help. Now i just need to figure out how to do that. Thanks again.
 
Old 02-01-2017, 02:47 PM   #8
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
So could i just update my kernel and modules and run the /var/log/setup/setup.80.make-bootdisk script to recreate boot disk?
 
Old 02-01-2017, 08:01 PM   #9
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Anyone have any ideas on how i can fix this?
 
Old 02-01-2017, 09:36 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quick thought would be to boot off an installation media, then ensure your HD is plugged in. Mount everything as it would be in normal Slackware, but do it under the /mnt/ folder (so the root partition would be mounted to /mnt/, the /boot/ partition, if you have one, would be mounted under /mnt/boot/, and etc for any other folders).

Then, you want to bind mount the proc, dev, and sys.

Code:
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
Finally, run chroot /mnt to make the system think that /mnt is the root folder.

At this point, you basically have a full Slackware CLI running. Now, just view your /boot/ and see how it's laid out, then check your /etc/lilo.conf to ensure your kernels are pointing the correct location. Once that is done, just run lilo to write the new config to drive, then try rebooting.

But, I've never used a usb boot drive, so this is just speculation on what might need to be done.
 
Old 02-06-2017, 07:17 PM   #11
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
OK, Here is what i done to fix my issue.

I replaced the vmlinuz kernel on my usb stick with the 4.4.38 kernel that i had downloaded.

I then ran

slackpkg update
slackpkg install-new
slackpkg upgrade-all (This updated my kernel)

which updated my kernel on my /boot to 4.4.38.

I rebooted and everything is working perfectly. Luckily for me my son is very good at linux.

Thanks everyone
 
  


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
USB mouse/keyboard not working askmaddog Linux - Laptop and Netbook 8 03-02-2015 10:11 PM
USB keyboard & mouse stop working intermittently on Linux Mint 12 boot macked Linux - Hardware 1 01-17-2012 04:24 AM
[SOLVED] USB mouse and keyboard interference in booting darthpinguim Linux - Newbie 3 01-06-2012 05:53 AM
USB Keyboard & Mouse not working following kernel update ChristianM Linux - Newbie 1 12-30-2011 11:10 AM
Mouse and Keyboard Problems, think it got to do with my external usb-drive madking75 Slackware 13 11-28-2006 10:51 PM

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

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