Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
New Linux Newbie here! I am a technician by trade and problems and solving them are what drive me. I have read every kernel compiling section on the Linuxnewbie.org website and followed almost all of them to the letter but I have not been 100% successful as of yet.
I installed RH8 fresh and clean, updated all files except for the kernel. I downloaded the most current kernel (2.4.20) from kernel.org and gave compiling a shot. I followed the "20 steps for compiling for Grub" instructions step-by-step. It has me to pull the i686.config file from the configs folder and drop it into the new source directory to begin the make config. I tried that and everything seemed to compile correctly but upon reboot there were all kinds of errors about detecting things that arent in my PC and not detecting things that are, ie USB keyboard and mouse.
Other guides have shown to use the .config file from your current working kernel source directory. I looked in the linux-2.4.18-14 directory (I did change the option to view hidden .xxxx files ) and I didnt see one in there at all. Thats why I went ahead and used the i686 config that the instructions told me to. I also used make oldconfig since I'm still very new to this and I didnt want to leave out anything that my system should have already detected.
So my question is this: Where does a fresh install of RH8 store the .config file that was used to compile the stock kernel when I installed? Also, the stock RH8 install has an initrd-Linux-2.4.18-14.img referenced in Grub and its present in the /boot partition but the compiling instructions make no reference to this file when making from a new source. Is this a needed file to function correctly?
Well I am sure someone will let me know if I am wrong, but there is no config file from a fresh install. Redhat is a binary installation, including the kernel. Redhat puts 'everything' in the kernel, in the form of modules, thusly ensuring that it will work on the vast majority of computers and hardware. So the config file is on the computer at Redhat inc that was used to build this kernel in question....
Compiling a kernel from scratch does not create a initrd.img file. It is not neccesary.
I think what happened...when you used this method you did a "make oldconfig" right, and what it did was just use the defaults. I think you may have to do the "make config" or "make xconfig" or "make menuconfig" manually. By the way, the .config file will be in the top level directory of the source tree.
Again though, I might be wrong, and I am sure someone will point that out...
Just kidding I once came upon a .config file in my /lib/modules/<kernelversion> subdirectory, I was in no need to see if it would serve as a .config for my kernel so I never gave it a try. However, it might be something to look at if you are interested.
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Originally posted by bulliver Well I am sure someone will let me know if I am wrong, but there is no config file from a fresh install. Redhat is a binary installation, including the kernel.
Try looking in ``/usr/src/linux-x.x/configs'' on your RH system. There's a set of config files, one of which should correspond to the kernel that was installed on the system from the CDs. Find the appropriate one and copy it to ``/usr/src/linux-x.x/.config''. (Pity, though, that RH didn't make it more obvious which one of these belongs to which kernel image on the CD.)
Or you could just rebuild the kernel using the instructions in the customization guide and be done with it. Then you /know/ you've got the correct .config.