View previous topic :: View next topic |
Author |
Message |
Thomas2010 n00b

Joined: 27 May 2010 Posts: 40 Location: Waynesboro, PA, USA
|
Posted: Wed Oct 05, 2011 4:57 pm Post subject: [Solved] Accessing .config from /proc/config.gz |
|
|
I renamed my .config file to .config.old so I could run giving me a "clean slate" to build an updated kernel, but it got deleted. I should have used a different suffix. Anyways, I am sure I included the kernel options to save the .config file in the kernel but I do not know how to extract it. I tried Code: | /proc/config.gz /boot/kernel-2.6.39-r3 | and I got the message Code: | -bash: /proc/config.gz :No such file or directory |
Does the error I got mean I did not include the option in my kernel? Is there a way for me to find out if I did include the options? What is the actual syntax and where would my .config file get extracted to if I can get it?
Last edited by Thomas2010 on Wed Oct 05, 2011 5:57 pm; edited 1 time in total |
|
Back to top |
|
 |
DirtyHairy l33t


Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Wed Oct 05, 2011 5:02 pm Post subject: |
|
|
If you included the configuration into the running kernel, /proc/config.gz exists, if you didn't, it doesn't. If the pseudofile exists, it just looks like a regular, gzipped file, so "gunzip /proc/config.gz" will create a "config" file in your current working directory. |
|
Back to top |
|
 |
Thomas2010 n00b

Joined: 27 May 2010 Posts: 40 Location: Waynesboro, PA, USA
|
Posted: Wed Oct 05, 2011 5:57 pm Post subject: |
|
|
Thank you for your help. /proc/config.gz does not exist so it is back to the drawing board for me. |
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
 |
javeree Guru

Joined: 29 Jan 2006 Posts: 458
|
Posted: Thu Oct 06, 2011 8:19 am Post subject: |
|
|
Possiby you configured the config settings as a module. Then you don't see it until you load the module.
try
modprobe configs
[ -f /proc/config.gz ] && zcat /proc/config.gz > /usr/src/linux/.config |
|
Back to top |
|
 |
Thomas2010 n00b

Joined: 27 May 2010 Posts: 40 Location: Waynesboro, PA, USA
|
Posted: Thu Oct 06, 2011 3:49 pm Post subject: |
|
|
Since I lost everything I just started over and made sure I selected the options to create the config.gz file. My mistake was renaming the file .config.old instead of something else. I have had other copies of the .config file with names starting with .config and they were not deleted when I ran make mrproper. |
|
Back to top |
|
 |
|