Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-06-2004, 09:03 AM   #1
Registered: Oct 2003
Location: Pakistan
Posts: 59

Rep: Reputation: 15
recompiling the kernel

Hello everyone

I have Red Hat 9....It's Shrike...dun remember the kernel version

My question

I'm a newbie 2 kernel how 2 go about it from scratch...will appreciate all the help i can get...


Old 10-06-2004, 09:29 AM   #2
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45

these days its pretty simple.
'make menuconfig' (pick your options and display the help for anything you don't understand)

'make bzimage'
'make modules'
'make modules_install'

word of advice though, keep your old and currently working kernel around and installed in Lilo or grub so that if the new kernel doesn't work, you can still boot your system.

hope that helps,
Old 10-06-2004, 09:33 AM   #3
Registered: Sep 2004
Location: Switzerland
Distribution: Fedora Core 2
Posts: 48

Rep: Reputation: 16
Hi Fahad,

I'm also a newbie, but recompiled my kernel a couple of times by now. Don't kow if this is the best wa, but it worked for me - the general way to go is:

install the kernel sources if you don't have already. This is a package called something like "kernel-sources.....rpm" or "kernel-sources....tar.gz" The sources should then be in a directory similar to
/usr/src/linux/ (in SuSE, this is a link to the real place where the directory is, don't know about red hat - will know soon, I'll install it soon in my PC)

Now go to that directory. At first, look at your options for compiling. Type:

make help
You should get a screen full of options. One of them should be "old config", this is to compile with your present configuration. Type

make oldconfig
It takes a while spitting stuff out, you have to wait. IMPORTANT: DO NOT TURN OFF YOUR COMPUTER WHEN THIS IS FINISHED (That's the reason I will be installing red hat... I smashed my SuSE by doing that)

Now recompile the kernel. In the help it should have shown you what it does when you type "make", it should include the "make make_modules".
Take a coffee, some tea, a beer, watch "The Simpsons" on TV, takes quite a while.

So, Now you have to install the services. Type:

make install
You should be done now. (think so) Any gurus to help further?


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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 09:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 12:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 10:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 10:24 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:05 PM.

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