LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-13-2008, 04:31 PM   #1
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Rep: Reputation: 15
ACK! Removed /lib/modules/<kernel>/*


I accidentally deleted EVERYTHING in that folder (obviously very unintelligent, happened when I was trying to just erase a symbolic link POINTING to it!!!!!!!!!!!!!) and I don't even wanna TRY rebooting my system till I figure out what to do.
Will simply compiling the kernel again remake this folder? And what is it exactly that I would have lost I'll have to put back again?
ACK!!!!!
I'll never type rm -rf again!!!!!!!!!!!!!!!!
(I'm currently in a Live CD environment so I can work with this, because I was having kernel problems anyway)
 
Old 01-13-2008, 04:52 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
You probably don't even need to re-compile - switch to your source tree (highest level as normal) and try a make modules_install.
Presumes a 2.6 kernel.
 
Old 01-13-2008, 05:11 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Moved to Linux-General at OPs request.
 
Old 01-13-2008, 05:43 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
'make modules_install' will put back all modules you built with kernel. However, you'll need also rebuild modules built against kernel source if you have any. Some DRI or wireless driver or whatever you had there.
 
Old 01-13-2008, 05:49 PM   #5
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Original Poster
Rep: Reputation: 15
I noticed that doing this didn't put back modules I had to install myself, such as ndiswrapper. Is there any way to get ndiswrapper back without having to reinstall it? The problem here is that anything else I can get by updating through the internet, but without an internet connection I can't get at ndiswrapper. Heh heh heh. Unless I moved my computer upstairs and attached it to the router with an ethernet cable.
The problem is that I can't just download the tarball upstairs and move it downstairs via USB or something because I use Portage to install things, the package manager with Gentoo. Hm..

Edit: Oh, you answered my question. Hm... I think I'll physically have to move it upstairs then. @_@ Oh well

Last edited by violagirl23; 01-13-2008 at 05:54 PM.
 
Old 01-13-2008, 05:52 PM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Quote:
... but without an internet connection I can't get at ndiswrapper.
If you had it installed then it resides in /usr/portage/distfiles. No need to download it again.
 
Old 01-13-2008, 06:13 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
A corollary of that of course is that it is certainly possible to download on one system and transfer to another.
 
Old 01-13-2008, 07:08 PM   #8
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you. I was lucky enough to still have ndiswrapper in /usr/portage/distfiles. I delete all of its contents often because I am VERY tight on disk space (like 10 gigs total). I'm back up!
AND I fixed my kernel. It was not working before. I'm almost 100% sure it not being about to mount /dev/hda2 as my root device arose from me changing ATA/ATAPI/MFM/RLL support from * to M.
And I finally compiled a kernel without the use of genkernel, which was happy. I never really used genkernel anyway, I just used it with menuconfig, and selected what I wanted, which is practically what a manual install is anyway, I guess.
THANK YOU!!!!!!!!!!
 
Old 01-13-2008, 07:18 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
If you're running gentoo, there is very little reason to run any modules.
Exceptions as noted by Emerson excepted of course ...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Ges Slackware - Installation 2 04-15-2007 08:42 PM
Kernel Modules in /lib/modules kaplan71 Linux - General 1 04-02-2007 11:00 AM
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 07:59 AM
Stupidity.. removed /lib/modules/ jorisb Linux - Software 1 02-14-2004 12:51 PM
Kernel Modules Removed...New ones created GAVollink Slackware 9 12-13-2003 09:26 AM


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