LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-02-2003, 07:48 PM   #1
sparky8023
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Question Can you create a config file from a running kernel?


Can anyone tell me if it is possible to create a config file from your running kernel? I recompiled the kernel to include LVM and I was under the assumption that all other existing kernel parameters would remain the same as the running kernel. The system keeps hanging when I boot from the new kernel. I have resolved a couple of issues such as reconfiguring serial ports from the Bios in order to get past the system hanging with MANY_PORTS displayed on the screen. I got a little further but now is hanging when detecting the CDROM and floppy drive. I figure my best bet is to try and create a config file from a good working kernel and make a few changes from there instead of starting from scratch. If this is even possible. I have configured the kernel without issues. It is upon boot that I have these problems. Any help would be appreciated.
 
Old 12-02-2003, 08:40 PM   #2
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
#it really depends on which system are u running.
i assume that your running kernel is in /usr/src/kernel
go $cd to /usr/src/kernel
do $ls .config
it there is one, that's the file you want.
If there is not.
Just do $make menuconfig
in a terminal and a blue windows will appears. then go far down and there is an option says save configuration file. in order to do that, you just need to hit enter. then Exit. But don't do any changes in that kernel!!!
 
Old 12-02-2003, 09:58 PM   #3
sparky8023
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply. I am running RH AS 2.1 on an PIII 550MHz machine.
When I initially install linux, I do not see a .config file under /usr/src/linux-2.4.9-e.3/ What I was trying to do is install the LVM module so I could use LVM. So I performed the following steps make mrproper, make xconfig, make dep, make clean, make bzImage, make modules, make modules_install, mkinitrd (tried with & without), make install, vi grub.conf.
All I did was change the LVM & RAID modules. I also tried what you suggested and ran xconfig without making any changes at all. I performed the same steps and the system still gets hung up in the middle of booting. When I boot off of the original kernel I have no issues. I know I am probably missing a simple step, I just don't know what it is.
 
Old 12-03-2003, 11:42 AM   #4
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
what i would do was to copy the original configuration and compile with that configuration. they usually store in /usr/src/`uname-r`/kernel/ . then just go to every folder see if that is like *i386*.
then copy it to your new kernel and change it's name to .config. then do "make oldconfig" .....you know
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create file "kernel-source-version.rpm xinix Linux - Software 2 09-10-2005 02:45 AM
Need good ACPI config for Dell Inspirion 4100 running FC3, kernel 2.6.10 mmeckes Linux - Laptop and Netbook 0 04-17-2005 02:30 PM
Running Firestarter: Missing config file ! Biased turkey Mandriva 4 01-20-2005 09:42 AM
.config file for new kernel plan9 Slackware 2 06-04-2004 08:02 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 08:54 PM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration