Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recover current kernel config?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
PranksterO
n00b
n00b


Joined: 25 Sep 2003
Posts: 27

PostPosted: Wed Mar 24, 2004 5:01 am    Post subject: Recover current kernel config? Reply with quote

Is there anyway to generate a .config file that shows my current kerenel config?
Back to top
View user's profile Send private message
thagame
Apprentice
Apprentice


Joined: 07 Mar 2004
Posts: 210
Location: Windsor, Ontario, Canada

PostPosted: Wed Mar 24, 2004 5:09 am    Post subject: Reply with quote

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
View user's profile Send private message
ToddWest
n00b
n00b


Joined: 11 Nov 2003
Posts: 59
Location: Oregon

PostPosted: Wed Mar 24, 2004 5:11 am    Post subject: Reply with quote

If you have a current kernel config that you want to save you can:

Code:
cd /usr/src/linux


Code:
make menuconfig


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
View user's profile Send private message
thagame
Apprentice
Apprentice


Joined: 07 Mar 2004
Posts: 210
Location: Windsor, Ontario, Canada

PostPosted: Wed Mar 24, 2004 5:14 am    Post subject: Reply with quote

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
View user's profile Send private message
PranksterO
n00b
n00b


Joined: 25 Sep 2003
Posts: 27

PostPosted: Wed Mar 24, 2004 5:19 am    Post subject: Reply with quote

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
View user's profile Send private message
thagame
Apprentice
Apprentice


Joined: 07 Mar 2004
Posts: 210
Location: Windsor, Ontario, Canada

PostPosted: Wed Mar 24, 2004 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message
PranksterO
n00b
n00b


Joined: 25 Sep 2003
Posts: 27

PostPosted: Wed Mar 24, 2004 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
thagame
Apprentice
Apprentice


Joined: 07 Mar 2004
Posts: 210
Location: Windsor, Ontario, Canada

PostPosted: Wed Mar 24, 2004 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
PranksterO
n00b
n00b


Joined: 25 Sep 2003
Posts: 27

PostPosted: Wed Mar 24, 2004 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Wed Apr 21, 2004 9:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Wed Apr 21, 2004 9:40 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
stservers
n00b
n00b


Joined: 21 Apr 2004
Posts: 4

PostPosted: Wed Apr 21, 2004 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum