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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-28-2003, 12:00 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Rep:
|
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
|
|
|
08-28-2003, 12:52 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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
|
|
|
08-28-2003, 01:03 PM
|
#3
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Original Poster
Rep:
|
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
|
|
|
08-28-2003, 02:38 PM
|
#4
|
Red Hat Ambassador
Registered: Aug 2003
Location: United States
Distribution: RedHat, SuSE, YellowDog, OpenBSD
Posts: 2
Rep:
|
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.
|
|
|
08-28-2003, 02:54 PM
|
#5
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Original Poster
Rep:
|
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!
|
|
|
08-28-2003, 03:24 PM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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:
|
|
|
08-28-2003, 11:06 PM
|
#7
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Original Poster
Rep:
|
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.
|
|
|
08-28-2003, 11:16 PM
|
#8
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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
|
|
|
08-28-2003, 11:23 PM
|
#9
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Original Poster
Rep:
|
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
|
|
|
08-28-2003, 11:42 PM
|
#10
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
no problem d00d, enjoy the journey
|
|
|
All times are GMT -5. The time now is 10:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|