I accidentally deleted my .config for my kernel configuration on Linux, and seem to remember there was a way to retrieve the kernel configuration via the proc filesystem somehow.

Is this still possible, and if so how would I do it?

link|improve this question

30% accept rate
feedback

1 Answer

  1. /proc/config.gz
  2. /boot/config
  3. /boot/config-$(uname -r)

Depending on your system, you'll find it in any one of those (possibly more) places.

link|improve this answer
On some distros (Fedora/Redhat) it's /boot/config-2.6.18-194.el5 or similar, with the kernel release string appended. – Phil May 23 '11 at 15:50
@Phil I run a distro (Zenwalk) where those filenames are symlinked by the latest kernel package to /boot/config. I'll go ahead and add these to the list - thanks for reminding me. – new123456 May 23 '11 at 20:15
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.