LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Deleted critical system folder (https://www.linuxquestions.org/questions/gentoo-87/deleted-critical-system-folder-724289/)

zpr 05-06-2009 09:50 PM

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

David the H. 05-07-2009 03:48 PM

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. :)

NeddySeagoon 05-10-2009 02:38 PM

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.

michaelk 06-13-2009 12:42 AM

Thread moved as requested.


All times are GMT -5. The time now is 01:45 PM.