View previous topic :: View next topic |
Author |
Message |
PranksterO n00b
Joined: 25 Sep 2003 Posts: 27
|
Posted: Wed Mar 24, 2004 5:01 am Post subject: Recover current kernel config? |
|
|
Is there anyway to generate a .config file that shows my current kerenel config? |
|
Back to top |
|
|
thagame Apprentice
Joined: 07 Mar 2004 Posts: 210 Location: Windsor, Ontario, Canada
|
Posted: Wed Mar 24, 2004 5:09 am Post subject: |
|
|
are you talking before you compile the kernel or after? if your talking about before then i dont think so, you have to set the options for the .config to know what you want. you can always try using genkernel. |
|
Back to top |
|
|
ToddWest n00b
Joined: 11 Nov 2003 Posts: 59 Location: Oregon
|
Posted: Wed Mar 24, 2004 5:11 am Post subject: |
|
|
If you have a current kernel config that you want to save you can:
Scroll all the way to the bottom to where it says
Code: | Save Configuration to an Alternate File |
Then you can save it to wherever you want and load it in another kernel config. |
|
Back to top |
|
|
thagame Apprentice
Joined: 07 Mar 2004 Posts: 210 Location: Windsor, Ontario, Canada
|
Posted: Wed Mar 24, 2004 5:14 am Post subject: |
|
|
Todd, the way his question sounds is he wants a .config generated with his specs so he can use it to build a kernel cause he doesnt know what hes supposed to use and remove. |
|
Back to top |
|
|
PranksterO n00b
Joined: 25 Sep 2003 Posts: 27
|
Posted: Wed Mar 24, 2004 5:19 am Post subject: |
|
|
Yes thagame thats is what I want to do.
I tried compiling a kernel with my own settings but its kinda messed up so I want to use the config for my current kernel that I know works when I compile the new one. |
|
Back to top |
|
|
thagame Apprentice
Joined: 07 Mar 2004 Posts: 210 Location: Windsor, Ontario, Canada
|
Posted: Wed Mar 24, 2004 5:23 am Post subject: |
|
|
ok so if you have a working kernel right now then copy the .config over to the new kernel you want to config and run make menuconfig and it should read the other .config file and your good to go. rememeber if your installing another kernel to change the symlink /usr/src/linux to point to the new kernel folder. |
|
Back to top |
|
|
PranksterO n00b
Joined: 25 Sep 2003 Posts: 27
|
Posted: Wed Mar 24, 2004 5:31 am Post subject: |
|
|
Well, the problem is that i do not have a .config file for my current working kernel. Correct me if i am wrong but wasnt it replaced when I compiled the last kernel ( the one that failed)? |
|
Back to top |
|
|
thagame Apprentice
Joined: 07 Mar 2004 Posts: 210 Location: Windsor, Ontario, Canada
|
Posted: Wed Mar 24, 2004 5:35 am Post subject: |
|
|
so you dont have a working kernel on your system at all?
Quote: | I want to use the config for my current kernel that I know works when I compile the new one |
i assumed that meant you have a good one right now and want to install a newer kernel |
|
Back to top |
|
|
PranksterO n00b
Joined: 25 Sep 2003 Posts: 27
|
Posted: Wed Mar 24, 2004 5:39 am Post subject: |
|
|
yes i have a working 2.4.20 kernel......ok i found it! I was looking in the wrong directory! I was looking for my old config in the directory of my new kernel. Thanks for the help! |
|
Back to top |
|
|
skunkworx Guru
Joined: 02 Feb 2003 Posts: 420 Location: Planet Houston
|
Posted: Wed Apr 21, 2004 9:11 pm Post subject: |
|
|
Reviving an old thread...
Anybody know how to recover a kernel config file that has been accidentally deleted? Thanks to my fat fingers, the entire kernel source tree for my current kernel went bye-bye. I still have the kernel file itself, and obviously I can recover the rest of the source tree, but that still leaves .config missing. If by any chance someone knows of a way to recover the configuration used to create the running kernel, I'd be appreciative. _________________ Proud to be a... eh, forget it.
"Everyday is just one day." -- not the Traveling Wilburys |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20588
|
Posted: Wed Apr 21, 2004 9:40 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
stservers n00b
Joined: 21 Apr 2004 Posts: 4
|
Posted: Wed Apr 21, 2004 9:46 pm Post subject: |
|
|
Don't remember if this is new in 2.6 or was in 2.4 as well, but if you enabled
[*] Enable access to .config through /proc/config.gz
it shouldn't be a problem. |
|
Back to top |
|
|
|