LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 05-06-2009, 09:50 PM   #1
zpr
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Rep: Reputation: 0
Deleted critical system folder


Hey all

A couple weeks ago, I recently rm -rf'd some system folder on accident. Nothing happened for a while, but lately some things have been troubling. Certain things wouldn't compile, and programs that used to run fine would cease to run. I'm not sure, but it may have been /lib/modules/2.6.27-gentoo-r8

Is there anything I can do besides reinstalling the whole OS?

Thanks,
zpr
 
Old 05-07-2009, 03:48 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
If it really was a /lib/modules folder, then it contained (surprise) the modules that that kernel loads. So yes, it would be important, but perhaps it wouldn't be immediately noticeable because you'd have the modules you needed already loaded in memory (assuming you're currently running that kernel).

You can try to reinstall that kernel, or switch to a different kernel version. Perhaps it's about time to update anyway, since 2.6.29 is now out.

Last edited by David the H.; 05-07-2009 at 03:50 PM.
 
Old 05-10-2009, 02:38 PM   #3
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
zpr,

To recreate the /lib/modules folder for your current kernel (the one pointed to by /usr/src/linux) its sufficient to do
Code:
cd /usr/src/linux
make modules_install
This reinstalls the modules from the places where they were built.
 
Old 06-13-2009, 12:42 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
Thread moved as requested.
 
  


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
How do I recover a rm deleted folder? CrownAmbassador Linux - Desktop 13 02-16-2009 03:54 AM
folder deleted in writter astridnielsen Linux - Kernel 2 10-30-2008 05:54 AM
Boot folder deleted !!! jujose Linux - General 18 10-22-2008 10:39 AM
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 10:39 AM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 12:03 AM

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

All times are GMT -5. The time now is 06:36 PM.

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