LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-27-2003, 07:18 PM   #1
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Rep: Reputation: 0
Kernel upgrade


How can I get the newest kernel for MDK 9.1 without doing a full kernel rebuild..? Could I get it through update, etc?
Thanks
 
Old 10-27-2003, 07:41 PM   #2
mmc
Member
 
Registered: Sep 2003
Location: Macon, GA
Distribution: Mandrake cooker, Fedora Core 3, Linspire, Libranet,Debian, SuSE 9.2, Slack
Posts: 113

Rep: Reputation: 15
do a search in the mandrake forum
 
Old 10-28-2003, 08:39 PM   #3
Gary987
Member
 
Registered: Oct 2003
Distribution: Gentoo, Mint, Ubuntu, Vector
Posts: 174

Rep: Reputation: 17
Try this
as root:

urpmi kernel
this should list rpm kernel packages...

then select the update you want.
and then type urpmi (name of the update)

Best of luck,

Gary
 
Old 10-28-2003, 09:00 PM   #4
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
That did it, thanks Gary.. I never think of using urpmi... I should get used to it, so easy!
 
Old 10-30-2003, 12:05 PM   #5
BobGuy
LQ Newbie
 
Registered: Oct 2003
Location: In A House
Distribution: mandrake slackware
Posts: 24

Rep: Reputation: 15
Re: Kernel upgrade

Quote:
Originally posted by ejupin
How can I get the newest kernel for MDK 9.1 without doing a full kernel rebuild..? Could I get it through update, etc? Thanks
Updating (overwriting) the kernel is a bad idea.
New kernels should be installed along side the original, not by overwriting the original kernel.

I'm not so sure that running urpmi kernel will do that. (install along side of, instead of overwriting)

Do you get a choice of what kernel version number to boot during the boot process?

If the new kernel is bad, or corrupt, how would you fix it after it overwrote the working one?

Please open a terminal, use this command rpm -qa | grep kernel and post the results here.

I'm curious as to what that command output shows after a update by urpmi, because you are the first person that has done it this way that I know of.

The rest of us always download the new kernel rpm and install the new kernel along side of the original working kernel. This way we have a escape route if the new kernel is somehow bad, corrupt, or broken.

Thanks
 
Old 10-30-2003, 03:03 PM   #6
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
This is what mine says:

kernel-doc-2.4.22-0.7mdk
kernel-2.4.21.0.13mdk-1-1mdk
kernel-2.4.22.1mdk-1-1mdk
 
Old 10-30-2003, 07:29 PM   #7
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
Re: Kernel upgrade

Quote:
Originally posted by ejupin
How can I get the newest kernel for MDK 9.1 without doing a full kernel rebuild..? Could I get it through update, etc?
Thanks
Just DL the RPM and install....it takes a whole minute.
 
Old 10-30-2003, 07:36 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
urpmi is smart enough to not upgrade the kernel by relacing it as ejupin's output shows. There is a file /etc/urpmi/inst.list that lists the things that should not be replaced by a new version (so instead, it installs the new version alongside the old one) and kernel is one of those things.

If you use rpm instead of urpmi, it's a different story. You MUST use
rpm -ivh kernel-blah
and NOT
rpm -Uvh kernel-blah (this will replace the old kernel with potential hazards)
 
Old 10-30-2003, 07:40 PM   #9
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
So in my case, how should I upgrade the kernel?
Thanks
 
Old 10-30-2003, 08:10 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Don't worry. you did it all right. As you can see from the output that you provided above, you still have the old kernel around. BTW, there already is an update for 2.4.22mdk available. It contains a few bug fixes and if you have a CD drive made by LG, you should get it before you break your CD drive.
 
Old 10-30-2003, 08:19 PM   #11
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
I am using the new kernel then? Tell me how you see this. I would like to know how to verify a kernel change when I make one.
Thanks for all your help!
 
Old 10-30-2003, 09:13 PM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you can see which kernel you are using by the command
uname -a
or uname -r (for just the kernel version).

basically, the entries in lilo.conf determine which kernel you will be using.

image=/boot/vmlinuz-2.4.22-10mdk

would use the kernel version 2.4.22-10mdk. The stanza's initrd has to match up with this:

initrd=/boot/initrd-2.4.22-10mdk.img

note that the number 2.4.22-10mdk is the same for vmlinuz and initrd.
The default entries in lilo.conf make use of symlinks but I find it easier to get rid of them and give the full path/name of the kernels and initrds (the make install messes up the symlinks).
So you can boot using different kernels - which is useful if you're not a sure a new kernel is going to work.

Hope this was intelligible.
 
Old 10-30-2003, 09:57 PM   #13
ejupin
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake 9.2, RH Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, very helpful!
 
Old 10-30-2003, 10:04 PM   #14
BobGuy
LQ Newbie
 
Registered: Oct 2003
Location: In A House
Distribution: mandrake slackware
Posts: 24

Rep: Reputation: 15
Quote:
Originally posted by quatsch
urpmi is smart enough to not upgrade the kernel by relacing it as ejupin's output shows. There is a file /etc/urpmi/inst.list that lists the things that should not be replaced by a new version (so instead, it installs the new version alongside the old one) and kernel is one of those things.
Thanks quatsch, I learned something new today.
And I can see from ejupin's output that it works like its suppose to.
 
  


Reply



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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
Kernel Upgrade now Kernel Panic saltireboy Slackware 9 01-23-2006 11:44 PM
kernel panic after kernel upgrade flebber Debian 8 04-08-2005 07:26 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM
Kernel upgrade: Unable to handle kernel paging request deviantintegral Debian 4 07-14-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:40 PM.

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