LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-28-2003, 12:00 PM   #1
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
help upgrading kernel for RH 9.0


hi everyone,

I decided to upgrade my kernel and see whether things work better or faster. I know I should be browsing through this forum or search on google for a while to try helping myself first (that's the best way to learn things maybe anyways), however, I would just have several questions here that you gurus could answer me please without any detailed info or step-by-step guidance or whatsoever:

I'm currently on RH 9.0 kernel 2.4.20-8

Code:
 
$ uname -a
Linux DigiFX 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
1) Which kernel should I upgrade to?

2) which files do I need to download

3) where can I get that file / these files from

4) is there anything I need to backup before applying the kernel upgrade?

5) will I lose any information? any settings?

5) Do I need to reinstall things after the kernel has been upgraded such as video card drivers (nvidia), or fluxbox, etc..?

6) does the kernel upgrade take long? (system specs: intel p4 1.3Gbz, 512 RDRAM, Nvidia Geforce 2 MX 400)

7) I've read somewhere that Grub allows you to choose which kernel you want to boot from once it's upgraded - is this correct?

8) once I choose the newer kernel from the grub bootloader, what surprises can I expect or which applications/settings will still work?

9) a lot of questions I know, but I again thank you for your time for reading and helping me out in any way!



LINUX RULES!!! over WINBLOZE
 
Old 08-28-2003, 12:52 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
ok well go here and read my guide you will not be able to screw up if you follow this....
i would recommend you upgrade to a 2.4 based kernel as of right now, and you will find the site where you get the kernel source in my guide...as of backing up....well you should just backup everyhting you don't want to lose....you have to have the train of thought that something wrong might happen, especially when your doing something like this...so backup everything you have thats hard to get or important data, or whatever it may be.... the only settings you will lose are the ones that you don't compile into the kernel, so this question is up to you when your recompiling on what you lose or save....and now that i actually think of it, the only thing i can think of that you will have to re-install is the nvidia drivers...that is a no brainer...the upgrade will take as long as you make it, i will throw a very rough estimate your way, and say you will lose about 45 mins to an hour of your life.....again very rough estimate....well when you add the new kernel to the grub.conf file then yes you will have both the new and old kernel to boot from...so again something that is totally up to you when you are editing the file....
so i think i covered everything, so good luck in your kernel recompile
 
Old 08-28-2003, 01:03 PM   #3
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
thanks a lot DrOzz, I knew there is always someone I can count on for help hehe

I'll check that all out in a bit and let you know how it ended. I don't really wanna save everything tho, it's like 180GB of data. I believe that if I upgrade the kernel it will only affect my /dev/hda I assume as this is where I have my linux partitions. Am I right?

So I should not worry about /dev/hdb and /dev/hdd, then it's all good and I can go ahead and do th upgrading maybe in an hour...and see what comes out

thanks again DrOzz
 
Old 08-28-2003, 02:38 PM   #4
Mr. Firewall
Red Hat Ambassador
 
Registered: Aug 2003
Location: United States
Distribution: RedHat, SuSE, YellowDog, OpenBSD
Posts: 2

Rep: Reputation: 0
Re: help upgrading kernel for RH 9.0

[QUOTE]Originally posted by retiredsoldier

1) Which kernel should I upgrade to?


The latest one for the i686 architecture.

2) which files do I need to download

3) where can I get that file / these files from


Go to Redhat's web site, click "downloads", click "mirror sites", find one near you and click the "Updates" link. From there you shouldn't have any trouble figuring out which file to download.

4) is there anything I need to backup before applying the kernel upgrade?

5) will I lose any information? any settings?

5) Do I need to reinstall things after the kernel has been upgraded such as video card drivers (nvidia), or fluxbox, etc..?

6) does the kernel upgrade take long? (system specs: intel p4 1.3Gbz, 512 RDRAM, Nvidia Geforce 2 MX 400)


No, no, no, no and no.

7) I've read somewhere that Grub allows you to choose which kernel you want to boot from once it's upgraded - is this correct?

Use rpm -ivh to install your new kernel, and both the new and the old kernels will appear in Grub; the old kernel will be the default.

8) once I choose the newer kernel from the grub bootloader, what surprises can I expect or which applications/settings will still work?

No surprises; it just works.
 
Old 08-28-2003, 02:54 PM   #5
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
hehe, thanks a lot Mr. Firewall!

You have left some questions unanswered tho :P hehe
I'm gonna do the kernel upgrade later this evening. Gotta get this "Truth And Lies of 9/11 vid" burning as VCD to show to some friends.

If someone is asking what that is, you should get on irc and download it from there, most servers that I visit offer that video...some cop who seems to know the truths and lies of that dramatic event on 9/11 - I'd recommend it to everyone watching it (but this is totally off-topic now )

Thanks again!
 
Old 08-28-2003, 03:24 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Like DrOzz's mentioned, you can compile a new kernel.
Or like Mr. Firewall's mentioned, you can use the default kernel provided by RedHat.

You can use Up2Date (RedHat Network) in order to download and install the new kernel automatically.

Once that is done, you can remove the old kernel.
The following command will query the RPM database for all instances of kernel:
Code:
rpm -qa | grep kernel
Then take the name you obtain from the output list and use the following syntax to remove the kernel:
Code:
rpm -e kernel
 
Old 08-28-2003, 11:06 PM   #7
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
thanks a lot Mathieu for your advise. I actually kinda followed your suggestion as well as Mr Firewall's and upgraded through rpm.

Nothing against DrOzz, he's still and will be my guru here at LQ :P, but that was some little too much.I haven't maybe really looked at it into details, but it seemed like a lot of steps and some maybe also kinda confusing for a newbie like me.

Anyhow, I want to thank you all for the support and y'all have been great.


Here is what I did:
I downloaded the rpm as well as the source rpm.
Then I installed the i686rpm, made sure it did the RAM Disk as documented through RH's manual . /boot/grub/grub.conf was also changed and had the new entry of the new kernel.

first time i restarted, it failed 2-3 processes (one was regarding a ntfs mount which i had in /etc/fstab) - of course, ntfs support wasn't in yet for the new kernel.

then VMWARE needed to be reconfigured and the NVIDIA drivers weren't there - I had to configure X again but that went without any problems.

So after that I went to nvidia's site, downloaded the drivers again, installed it - it said it couldn't. So I had to install the source rpm for the kernel which then allowed me to install the vid drivers - woohoo

after that I got the kernel-ntfs rpm which installed without any problems, so I restarted again and even changed my /boot/grub/grub.conf before to get the new kernel set as default selection upon bootup.

everything went fine! only last thing i had to do was reconfigure vmware with 'vmware-config.pl' - it even asked me whether i wanted to skip some networking configuration and use the pre-existing settings which was another good things i experienced.

after that I tried quake 3 again because it was the actual reason I wanted to upgrade the kernel in the first place - and guess what WOOHOO...now quake works perfectly without any lags (as i've posted on another quake thread here on LQ) - all issues resolved, all programs are working - at least those that I normally use and it couldn't have gone any easier

thanks for your time reading this hehe

Last edited by slackmagic; 08-28-2003 at 11:09 PM.
 
Old 08-28-2003, 11:16 PM   #8
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well, i say someday you'll get your hands dirty and do it from scratch, and that was the point of me making that tutorial for it will be directed for newbies, and that they wouldn't get confused....i think if you would keep that page into consideration you should try it some time, for the knowledge, and just basically to do it, as rpm is sometime the easy way out, and it keeps you from learning something like recompiling a kernel....
to cut my guide short, all you basically have to keep in mind is download the source and untar it to /usr/src and basically just type whatever i say in the guide...theres nothing tricky about it...and the other good thing about it is that i tell you what the step is doing, so its not like you won't know what the command is at the time of typing it...even if you don't understand it right away, you'll gradually learn about it....so maybe you weren't ready for it as of yet, but give it time and you'll be doing it like anything else :P
 
Old 08-28-2003, 11:23 PM   #9
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
yep
I guess I was just not ready for it, but hey, whenever you posted your reply with that URL in it, I already bookmarked it under my USEFUL INFO (LQ) folder through galeon lol...so it'll stay there forever and I'll definetely look into it later whenever I have more experience with linux. But damn...i love linux more and more every day...

thanks DrOzz
 
Old 08-28-2003, 11:42 PM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
no problem d00d, enjoy the journey
 
  


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
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
upgrading kernel from 2.4.20-8 to 2.6.4 mandelchan Linux - Laptop and Netbook 3 04-21-2004 12:00 AM
Upgrading the kernel TX_metalhead Linux - Software 3 05-06-2002 11:23 AM
Upgrading the kernel goochable Linux - General 1 04-11-2001 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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