LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-30-2012, 01:42 PM   #1
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Rep: Reputation: 15
Manually removed old /lib/modules folders, keyboard and mouse completely unresponsive


So in a stroke of brilliance I decided to get rid of the older folders under /lib/modules this morning, figuring they are just leftovers that dpkg for some reason couldn't delete on its own for whatever reason.

The result, it caused problems with the modules for the keyboard and mouse - both are completely unresponsive now. The system boots properly and I get up to X loading up with KDM expecting credentials but I can't even change to another tty.

I use the Liquorix Kernel, and there were quite a few older version folders lying around... It's very strange that modules built for previous kernels caused this and I'm at a loss on what to try to fix it.


Had anyone ran into something like this? I really don't want to reinstall the whole OS, but I'm starting to fear I will have to. :/

Last edited by havok1977; 04-30-2012 at 02:00 PM.
 
Old 04-30-2012, 03:11 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,138

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
You need to reinstall your kernel modules

ALL kernel modules live in /lib/modules/<kernelvversion>
 
Old 04-30-2012, 04:06 PM   #3
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by business_kid View Post
You need to reinstall your kernel modules

ALL kernel modules live in /lib/modules/<kernelvversion>

Thing is I left the current version of the modules intact, I only deleted the folders for previous / uninstalled versions.

Last edited by havok1977; 04-30-2012 at 04:09 PM.
 
Old 04-30-2012, 06:00 PM   #4
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 949

Rep: Reputation: 275Reputation: 275Reputation: 275
If you have some liveCD around (or maybe even better, another linux install on this machine), you could try booting it, chrooting your Debian install and reinstalling the kernel image from there. Something like this:

Code:
mkdir /mnt/debian
mount /dev/debian_partition /mnt/debian
cp /etc/resolv.conf /mnt/debian/etc
chroot /mnt/debian /bin/bash
apt-get install --reinstall linux-image-<your_current_kernel_version>
Should work.

EDIT: Didn't read your last comment. It's strange it doesn't work when it's only the older modules the ones which you deleted, but you could try reinstalling your current kernel all the same (or maybe the older ones, in case it doesn't work).

Last edited by odiseo77; 04-30-2012 at 06:04 PM.
 
Old 05-02-2012, 03:39 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,138

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
Originally Posted by havok1977 View Post
Thing is I left the current version of the modules intact, I only deleted the folders for previous / uninstalled versions.
I don't think so, otherwise you wouldn't be having the problems you are experiencing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mouse and Keyboard unresponsive after boot (RHEL 6) griffey Red Hat 2 03-30-2012 09:04 PM
mouse and keyboard unresponsive when X starts (Gentoo) Secant Gentoo 16 09-28-2009 03:29 PM
ACK! Removed /lib/modules/<kernel>/* violagirl23 Linux - General 8 01-13-2008 07:18 PM
Stupidity.. removed /lib/modules/ jorisb Linux - Software 1 02-14-2004 12:51 PM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration