linuxnewbie.org.gif
Tuesday, 12-Dec-2000 10:38:07 EST
Newbized Help Files articles discussion board bookshelf sensei's log advertising info

How I Updated My Kernel
by: rpmilius

I had RedHat 6.1 with the 2.2.12-20 kernel installed.

For various reasons, I wanted to update the kernel to 2.2.13.

I did the following which seems to have worked. downloaded the latest stable kernel from ftp://ftp.kernel.org/pub/linux/kernel/v2.2/linux-2.2.13.tar.gz into my home directory (~bob).

I ran the following commands (comments are indicated with a "#")


su -
cd /usr/src
ls -l

# showed that /usr/src/linux was a link to /usr/src/linux-2.2.12-20
#
rm /usr/src/linux
tar xzvf ~bob/linux-2.2.13.tar.gz

# last command created a new "linux" directory containing new kernel
# source files
#
mv /usr/src/linux /usr/src/linux-2.2.13
ln -s /usr/src/linux-2.2.13 /usr/src/linux

# did that just for consistancy
#
cd /usr/src/linux
#
# read through the README which explains the make commands
#
make mrproper
#
# preserve my previous configuration options
cp /usr/src/linux-2.2.12-20/.config /usr/src/linux
#
make oldconfig
# when prompted, entered "m" to make a module for new options
#
make dep
make bzImage
make modules
make modules_install
cd /boot
ls -l

# showed that old System.map is a link to System.map-2.2.12-20
# and that the old vmlinuz is a link to linuz-2.2.12.20
#
rm /boot/System.map
rm /boot/vmlinuz

#
# copy newly created kernel and system.map to /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.13
ln -s /boot/vmlinuz-2.2.13 /boot/vmlinuz
cp /usr/src/linux/System.map /boot/System.map-2.2.13
ln -s /boot/System.map-2.2.13 /boot/System.map

#
# create /boot/initrd.2.2.13.img
/sbin/mkinitrd /boot/initrd-2.2.13.img 2.2.13
#
# edited my /etc/lilo.conf by copying the linux section and
# giving it a new label and updating the image and intitrd files.
------my /etc/lilo.conf starts after this line---------
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=win98

image=/boot/vmlinuz-2.2.12-20
label=linux
initrd=/boot/initrd-2.2.12-20.img
read-only
root=/dev/hda5

image=/boot/vmlinuz-2.2.13
label=newlinux
initrd=/boot/initrd-2.2.13.img
read-only
root=/dev/hda5

other=/dev/hda2
label=win98

------/etc/lilo.conf ends before this line------------------------
#
/sbin/lilo
#
# Win98 is my default (so kids can run their games). To run the new
# kernel, I enter "newlinux" at lilo prompt. If I have problems, I can
# go back and run "linux" to get original kernel.
# Once I'm satisfied it works okay, I'll update /etc/lilo.conf so that
# new linux is labeled "linux" and orig linux is labeled "oldlinux"
# and then I'll rerun /sbin/lilo

 

 
We would like to hear your feedback.  
[-NHF Control Panel-]
The Linux Channel at internet.com
Linux Planet
Linux Today
Linux Central
Linuxnewbie.org
PHPBuilder
Just Linux
Linux Programming
Linux Start
BSD Today
Apache Today
Enterprise Linux Today
BSD Central
All Linux Devices
SITE DESCRIPTIONS
[-What's New-]
Order a Linuxnewbie T-Shirt
Easy Webcam NHF
Directory Navigation NHF
Installing Snort 1.6.3 on SuSE 6.x-7.x
Customizing vim
The SysVinit NHF
Installing ALSA for the VT82C686 integrated sound
USB Creative Video Blaster II for Linux
Configuring the Intellimouse Explorer in XFree86 V4+
The beginnings of a distro NHF
Getting Past Carnivore?
Getting and Installing PGP
Getting your ATI Rage 128 Working
How to create a multiple partition system
Using Fdisk
Introduction to Programming in C/C++ with Vim
Adding a Hard drive in Linux -- In five steps
Installing ALSA for the Yamaha DS-XG Sound Card
Getting your Diamond Rio Mp3 Player to work with Linux
Bash Programming Cheat Sheet
Installing NVIDIA Drivers for Mandrake
Setting up Portsentry
Hard Drive Speed Tweak for Linux
Sensei's Log
Chat room
Join: Linuxnewbie.org SETI Black Belts!
Send in your news
Click the image to add Linuxnewbie.org to your MyNetscape Page
[-LNO Newsletter-]

[-Archive-]
The beginnings of a distro NHF
Connecting to the Internet using KPPP
Getting your SBLive to work
Unreal Tournament NHF
LWE Day 2 Pictures
LWE Day 1 Pictures
The LNO FAQ!
WoW (Words of Wisdom)
Other sites news
What is Linux?
What is Linux? part deux (ups & downs)
Search newsgroups
The List
ALS Report
Feedback Form
jobs.linuxtoday.com.gif
Match: Format: Sort by:
Search:
Copyright © 1999 All Rights Reserved
[-Quick Links-]

Copyright 2000 internet.com Corp. All Rights Reserved. Legal Notices Privacy Policy

internet.com.gif