Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Gentoo This forum is for the discussion of Gentoo Linux.


  Search this Thread
Old 05-06-2009, 09:50 PM   #1
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?

Old 05-07-2009, 03:48 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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
Gentoo support team
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40

To recreate the /lib/modules folder for your current kernel (the one pointed to by /usr/src/linux) its sufficient to do
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
Registered: Aug 2002
Posts: 14,659

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


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
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

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration