Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-03-2003, 12:48 PM   #1
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
rebuilding kernel

i am installing an external scsi hard drive bay on a linux server i have. the machine is running RedHat 8.0. the directions for installing the driver tell me to recompile the kernel. I have followed the directions.
I am running kernel version 2.4.18-27.8.0
the directions tell me to copy the bzImage file it creates from recompiling into my boot directory. it tells me to name it following the same naming convention i have been using. when i am finished recompiling it should i name the new image 2.4.18-27.8.1 or just name it 2.4.18-27.8.0 like before?
Old 04-03-2003, 01:38 PM   #2
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
it doesn't matter, just copy the compiled kernel to /boot and add an entry in grub/lilo, search here or google to find much info on how to do that. But if don't want an extra entry in grub/lilo, just rename your new kernel to the old kernel's name.

Last edited by iceman47; 04-03-2003 at 01:40 PM.
Old 04-04-2003, 08:09 PM   #3
LQ Newbie
Registered: Apr 2003
Distribution: RedHat 8.0 - Kernel 2.4.20-8
Posts: 28

Rep: Reputation: 15
Copy your kernel source with a new name like linux-2.4.18-27.8.0custom
go in there
now type :
make mrproper
make dep clean

Now copy the config-2.4.18-27.8.0 file in /boot into your new kernel sources folder. You will need it.

Now type :
make xconfig
in the kernel configuration tool that just appeared, select the change to make after loading the config-2.4.18-27.8.0 file into. Once done, save and exit

Now type :
make dep clean
make bzImage
make modules
make modules_install
make install

Now you can reboot to test your new kernel. The previous one will be available in case of trouble.



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
rebuilding kernel the Fedora way ... bpcw001 Fedora 1 10-29-2004 09:37 AM
Need some insite before rebuilding the kernel. kphume Linux - General 1 05-05-2004 09:22 AM
redhat 7.3 rebuilding kernel granny Linux - Newbie 6 12-20-2002 01:48 PM
Rebuilding kernel troubles Wapocalypse Linux - Newbie 3 12-04-2002 11:41 AM
Rebuilding the kernel decster Linux - General 9 09-23-2002 05:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:44 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
Open Source Consulting | Domain Registration