LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-20-2003, 03:40 PM   #1
emmanuelmathew
Member
 
Registered: Feb 2003
Location: Kottayam, Kerala, India
Distribution: Redhat 7.1 (2.4.2-2)
Posts: 54

Rep: Reputation: 15
Installing One more Kernel


Hai,

I have the linux 7.1 (seawolf) 2.4.2-2 kernel. This is working fine. I put this kernel even though I have RH linux 8.0 kernel because my modem will work only on the 2.4.2-2 kernel. So now I want to add the kernel of RH linux 8.0 too without loosing the old kernel which is very important to me. I have the RH linux 8.0 kernel in the CD Rom of RH linux 8.0 as RPM. So what should I do? Is it complicated? After this, I wanted to upgrade almost all the packages from 7.1 to 8.0. So will these work with the old as well as the new kernel? Will I be able to choose the kernel with LILO?

A bunch of thanks in Advance.

please help me as I am stuck.

Bye.
 
Old 02-20-2003, 11:48 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You can copy your current kernel to a safe place, just to be sure you don't lose it. The important files are...

/boot/initrd-kernel_number.img -- if it's there
/boot/System.map-kernel_number
/boot/vmlinuz-kernel_number -- this is the actual kernel
lilo.conf -- I forget... Prob'ly in /boot (I use GRUB.)

As long as you save those, and can boot, either from the new kernel or a floppy, then you should be able to restore them to put your old kernel back if anything happens to it.

When you install the 2.4.18 RPM, then it will set your system up to boot that. When you reboot, you should be able to choose which of the two kernels you want to run. If it clobbers your old kernel, restore the top three files above to /boot, and edit your new lilo.conf to add the lines pointing to your old kernel from your old lilo.conf.

You might want to make a boot-floppy, just in case. Use the command mkbootdisk. Check the man page to see what options you need to pass. You might be able to just run mkbootdisk 2.4.2-2 to get it to work.

As for upgrading the other packages and having them run on the old kernel. I can't tell... Some will work fine, others won't.
 
Old 02-22-2003, 04:59 AM   #3
emmanuelmathew
Member
 
Registered: Feb 2003
Location: Kottayam, Kerala, India
Distribution: Redhat 7.1 (2.4.2-2)
Posts: 54

Original Poster
Rep: Reputation: 15
thanks. But if I just add the new kernal like just adding an RPM pack, will it work for the kernel? ie rpm -i filename ?
 
Old 02-22-2003, 05:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it should work fine, but you'll want to back up your existing /etc/lilo.conf first to make sure it doesn't do anything you don't approve of. check through it and it's normally best to ensure that it's not defaulting to teh new kernle, and so should be safer to boot. if it all goes ok and you want to keep it just change the default in lilo.
 
Old 02-22-2003, 05:18 AM   #5
emmanuelmathew
Member
 
Registered: Feb 2003
Location: Kottayam, Kerala, India
Distribution: Redhat 7.1 (2.4.2-2)
Posts: 54

Original Poster
Rep: Reputation: 15
So are you telling that the only danger is the accidental change of contents in the lilo? nothing else? If it is so, I can backup the old lilo and restore it on the new lilo.conf right?
 
Old 02-22-2003, 05:31 AM   #6
emmanuelmathew
Member
 
Registered: Feb 2003
Location: Kottayam, Kerala, India
Distribution: Redhat 7.1 (2.4.2-2)
Posts: 54

Original Poster
Rep: Reputation: 15
Please tell me whether the only thing I have to take
in the above process is taking the backup of LILO? After that, can I proceed by using the command rpm -i filename ?

A bunch of thanks in advance.
 
  


Reply


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
Installing Kernel 2.6.8.1 - Kernel Panic error shaun85 Linux - Newbie 10 07-16-2007 05:20 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 07:30 AM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 10:48 PM
Kernel panic when installing a new Kernel NeeD_ResT Debian 2 10-16-2004 09:10 PM
installing 2.2.10 kernel on Redhat 8.0 (kernel 2.4.18-20) sumit_nus Linux - Software 5 07-31-2003 04:06 AM


All times are GMT -5. The time now is 07:23 AM.

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