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.
I was trying to build my own kernel (just for learning) from source so I downloaded v3.0.4 from kernel.org as I saw in Ubuntu site that ubuntu 11.10 (my running version of linux)is based on it. uname -a shows my running kernel as 3.0.0-12-generic-pae so I copied config-3.0.0-12-generic-pae to my kernel sources folder and renamed it as .config and typed in make oldconfig and then make. It took nearly 2 hours to compile and finally generated a vmlinux image of 168 MB. So I did make clean and did make bzImage. This time also it took 2 hrs and again generated a vmlinux image of 168 MB. So basically my doubt was:
1. Why is the kernel size so huge, my running kernel has a size of only 4.5 MB, even though both of them uses the same .config
2. Why did make bzImage generate the same vmlinux image isn't it supposed to generate a much smaller vmlinuz image.
3. Why is taking so long, the configuration of my PC is pretty decent with i5 2nd gen and 4GB RAM
4. Is there any difference between making a bzImage and stripping a vmlinux image?
Thanks Cedrik and timetraveler for your answers. I dont have /proc/config.gz. I just wanted to build the kernel in the simplest possible way before I started changing any .config option that is why I just copied from /boot. Probably there is something wrong with it. Even if it is a generic kernel I dont think it should take 2 hours to compile. I will try to generate kernel by configuring according to my hardware.