Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-19-2003, 01:24 AM   #1
Registered: Jul 2003
Location: Benicia California
Distribution: SUSE
Posts: 120

Rep: Reputation: 15
Post How To Upgrade a Linux Kernel

Im running Suse 8.2 Pro and I would like to know how to upgrade to kernel 2.4.21 from 2.4.20 step by step in the command line logged in as root.
Old 07-19-2003, 01:29 AM   #2
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Welcome to,

There are some instructions for compiling the kernel in /usr/src/linux/README. Usually it's something like this:

cd /usr/src/linux
make xconfig
# edit Makefile (you can add a EXTRAVERSION indentifier)
make dep
make bzImage
make modules
make modules_install
# copy your kernel and set up boot loader
Old 07-19-2003, 04:03 AM   #3
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
zmedico's instructions are pretty good however if you are upgrading kernels make sure /usr/src/linux points to your new kernel source not the old source
# copy your kernel

cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.21

#copy your (optional)

cp /boot/

#you could also link both these to /boot/vmlinuz and /boot/ respectively

#edit bootloader

vim /etc/lilo.conf

#or if you use GRUB

vim /boot/grub/grub.conf

#if you use lilo don't forget to


#after editing lilo.conf
#also if you didn't want to change your kernels configuration you could simply copy your .config file from your old kernel source to your new kernel source and do a

make oldconfig

#instead of having to go thru a make xconfig

good luck


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 upgrade linux kernel book2000 Linux - General 3 05-08-2005 11:54 PM
upgrade linux kernel ust Linux - Software 2 02-06-2005 02:26 PM
Fail to upgrade linux to kernel 2.6.5 hehetnt Linux - Laptop and Netbook 1 05-06-2004 09:21 AM
upgrade linux kernel problem mcalizo Red Hat 9 12-21-2003 11:36 AM
RAID - Linux kernel upgrade 2.2.16 to 2.4.20 dazo Linux - General 0 08-14-2003 11:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 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