LinuxQuestions.org
Visit Jeremy's Blog.
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 05-29-2018, 08:17 PM   #1
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297
Blog Entries: 2

Rep: Reputation: 37
USB devices not being recognized when booting from Slackware USB flash drive


If I install updates on my Slackware system which require a reconfigure of lilo, typically my boot breaks. This has something to do with the fact that the boot install is on a different hard drive then my OS. But anyway, my fix is to simply boot from the slackware USB boot flash drive I created during the original installation. Running liloconfig from there usually fixes things.

This time, when I did updates (via slackpkg), I got the usual lilo-type errors, booted into my flash drive, but lost keyboard and mouse support. Basically what happens:

* Get the flash drive menu, with the "boot:" option. Hit return (lights on keyboard and mouse, and typing is recognized)

* Do some basic "vmlinuz....." type kernel loading...everything seems fine.

* As soon as the screen refreshes for the rest of the boot process, the lights on the keyboard and mouse go off.

* I get to a login screen, and there is no recognition of my keyboard or mouse.

I've tried passing a few things to the kernel at boot time, like "console=/dev/tty0" and "iommu=soft", but these are just guesses. I've now disconnected all the USB devices but the mouse, keyboard, and flash drive. In addition, live CDs work fine (of Slacklive and also Xubuntu).

Any thoughts or debug approaches?
 
Old 05-29-2018, 10:08 PM   #2
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
Sounds like it can't find drivers for keyboard or mouse... possible causes could be that you upgraded a kernel without upgrading the kernel modules... the vmlinuz is a symbolic link to whatever kernel you point it at... if it's pointed at "huge" all the modules should be there; if it's pointed at "generic" then you'd probably want to create an initial ramdisk. it's still usually recommended to not use slackpkg for upgrading a kernel... have to blacklist the kernel packages... here's what the blacklist file in /etc/slackpkg says:

Quote:
#
# Automated upgrade of kernel packages aren't a good idea (and you need to
# run "lilo" after upgrade). If you think the same, uncomment the lines
# below
#
#kernel-firmware
#kernel-generic
#kernel-generic-smp
#kernel-headers
#kernel-huge
#kernel-huge-smp
#kernel-modules
#kernel-modules-smp
#kernel-source

It's not the end of the world though! One can boot off of slackware install media, such as usb thumbdrive, create a mount point and mount the target file system, chroot into that file system, and either create the missing initrd, or make sure vmlinuz points to the "huge" kernel...
 
1 members found this post helpful.
Old 05-30-2018, 10:12 PM   #3
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by slac-in-the-box View Post
It's not the end of the world though! One can boot off of slackware install media, such as usb thumbdrive, create a mount point and mount the target file system, chroot into that file system, and either create the missing initrd, or make sure vmlinuz points to the "huge" kernel...
Ok so here is how I attempted to implement that suggestion (sorry for my noobly-ness, just never had to do this precise thing). I booted into the slack DVD, then did

Code:
mount /dev/sdc2 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
Then removed the existing vmlinuz and replaced it with a link to vmlinuz-huge.

End result, no difference in behavior. When I try to boot right in (from existing lilo install, which probably has mismatched headers as you clearly articulated), I get a kernel hang ("Booting Slack....." message that never gets any further). When I try to boot from my USB drive, I get to the login screen but again, no support for either keyboard or mouse.

I guess I could do a complete reinstall, which is not the end of the world but I kinda thought I had this system pretty well set up, so that would be disappointing.

Any more suggestions, before I do that?
 
Old 06-04-2018, 08:56 PM   #4
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
Quote:
Then removed the existing vmlinuz and replaced it with a link to vmlinuz-huge.

End result, no difference in behavior.
I don't know if you already re-installed, but I suspect, all that was needed was re-running lilo after you replaced vmlinuz with link to vmlinuz-huge. Perhaps lilo updates the MBR with the image indicated by the link; and though you changed the link, without running lilo, the mbr didn't get updated... If the old kernel is still there, you could also link to old kernel, re-run lilo... If you had to reinstall, well, hopefully you have a backup of crucial files... I keep my home on it's own partition, so If I need to wipe OS and re-install personal files are untouched...
 
Old 06-14-2018, 08:16 PM   #5
bagrossi
LQ Newbie
 
Registered: Jun 2018
Location: Sao Paulo - Brazil
Distribution: slackware
Posts: 2

Rep: Reputation: Disabled
Maybe adding a few modules into your initrd.gz might help, try to run /usr/share/mkinitrd/mkinitrd_command_generator.sh with the root changed to the PC (not in the usb drive), it will idenify your usb modules, then you run the output of this command which will generate a new /boot/initrd.gz
 
  


Reply

Tags
boot loader, keyboard hangs, slackware 14.2, slackware boot



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 3.0 PCI-Express-Card in Slackware 14.2 - Attached devices not being recognized Mankind75 Slackware 3 03-31-2018 09:18 AM
[SOLVED] USB flash drive not being recognized Gregg Bell Linux - Newbie 16 05-23-2016 08:46 PM
USB Flash Drive Not Recognized cdnm Linux - Hardware 1 11-16-2009 09:31 PM
Usb flash drive not recognized americulchie Linux - Newbie 4 10-16-2009 03:45 PM
USB Flash Drive not recognized on Sony with Mandrake 10.2 philosophe Linux - Laptop and Netbook 0 05-13-2005 04:10 PM

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

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