LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   I lost rmed my kernel config file. Anyway to create one from the kernel? (http://www.linuxquestions.org/questions/linux-software-2/i-lost-rmed-my-kernel-config-file-anyway-to-create-one-from-the-kernel-25637/)

severedhead 07-12-2002 01:08 PM

I lost rmed my kernel config file. Anyway to create one from the kernel?
 
I was cleaning up and accidentally removed my kernel config file. Is there any way to create one from the kernel...?

neo77777 07-12-2002 01:52 PM

Try http://freshmeat.net/projects/biatch...62%2C866%2C253
this is a suit of security tools, there's a tool to recover removed files if it is possible.

manaskb 07-12-2002 07:33 PM

The config of the current running kernel can be found at /proc/config.gz
I believe this is created dynamically when the kernel is loaded.

neo77777 07-12-2002 07:54 PM

Not every distro creates it though, I know SuSE does, but RH, for instance, doesn't. So it is a very distro oriented answer. I guess, severedhead learned a lesson how not to use rm. I saw somewhere among forensic tools (maybe at sourceforge) an app to recover deleted files, it has to do with the fact that when a files is deleted its inode is not reclaimed by the system instantly, so it might be still around. Danm, I think we had a discussion here about different file systems and somebody brought it up to our attention, try search forums for filesystems, ext3 vs reiserfs, gibbirish like "how to defragment linux", it is here, I am sure.


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