LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-22-2013, 01:31 PM   #1
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,497
Blog Entries: 12

Rep: Reputation: 154Reputation: 154
Overwrote my modules on kernel compile, now no keyboard on boot - easiest fix?


So I did a dumb thing; I compiled a new kernel and modules (for Xen support) and *thought* I gave them a unique name, but clearly not. I didn't remove any modules but did add some in-kernel options as opposed to modules, though none of them were keyboard related.

Now my system boots to the command line but the keyboard is nonresponsive and the network is down so that I can't ssh in either. Of course I can boot my install disk and decrypt, mount and chroot into the system.

First thing I thought was, well, I'll just recompile using the old config and reinstall the old modules. For some reason the system complained about Clock skew and some of the files having time marks in the future. I guess I can try again in a few days when I catch up or try to change the date and time, but... Is there an easy way to restore the normal generic kernel and modules from the install disk without a re-compile... or a re-install? I'm looking for the easiest and fastest solution, not the most elegant or cleanest.
 
Old 11-22-2013, 04:38 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,368

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
The good thing about kernels is you can install more than one. Just give your test kernel a unique version.
 
Old 11-23-2013, 07:41 AM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,324
Blog Entries: 7

Rep: Reputation: 157Reputation: 157
Something awesome about Slackware is that the package managing tools are bash scripts.
If you boot up a different linux partition, or boot up a live cd, you can chroot into Slackware, and because pkgtool is based off scripts, it should still work.
Once chrooted, you can install the default kernel again, including the modules.
 
Old 11-24-2013, 12:59 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,497
Blog Entries: 12

Original Poster
Rep: Reputation: 154Reputation: 154
Thanks, so, used my brand new 14.1 DVD, booted it, did the cryptsetup, did the vg stuff, the mounting and chrooted and then mounted the install disk, went to the /slackware64/a directory and did installpkg kernel*.txz and it seems to have worked.

Now: I used local version to give my new kernel a unique name. If I execute make modules_install, will it install the new modules in a new directory in lib, or will it use the existing /lib and bork up the old system?
 
Old 11-24-2013, 01:06 PM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
Quote:
Originally Posted by mostlyharmless View Post
Now: I used local version to give my new kernel a unique name. If I execute make modules_install, will it install the new modules in a new directory in lib, or will it use the existing /lib and bork up the old system?
It will create a new /lib/modules/local_version directory. No borking.
 
Old 11-24-2013, 07:07 PM   #6
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,497
Blog Entries: 12

Original Poster
Rep: Reputation: 154Reputation: 154
Yeah, I just tried it anyway and it worked. Thanks SOLVED
 
  


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
Can't compile kernel modules hoangcuong2011 Programming 2 09-07-2009 02:13 PM
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
no modules after kernel compile glorsplitz Slackware 7 09-20-2005 10:26 AM
When I compile a kernel do I need to list which modules to boot.. HGeneAnthony Linux - General 5 02-13-2005 03:27 AM
modules after re-compile kernel skarim Linux - Software 3 10-15-2003 01:48 AM


All times are GMT -5. The time now is 03:08 AM.

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