LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2004, 08:46 AM   #1
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Rep: Reputation: 35
Can Kernel be removed?


Hey Guys I have a question,

My Mandrake 10.0 Official had a kernel of 2.6.3.7mdk and I was updating to a 2.6.3.15-1-1mdk586 kernel, my question is can I uninstall the 2.6.3.7mdk kernel or should I leave it?

Well I removed it using the MD RPM CC and it also had to remove my NVIDIA driver that matched that specific kernel.

My question is, can I reboot my pc or will it crash on me because I removed the 2.6.3.7mdk kernel?

I was not sure if I had to remove it or not or if I should reinstall.

Please let me know, A.S.A.P.

d-1
 
Old 08-20-2004, 08:53 AM   #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
It's usually a good idea to leave the old kernel in place for awhile... If something in the new kernel is incompatible with your box, then you could reboot to the old kernel.

Most distro kernels are pretty broad in their support, so you *shouldn't* have any trouble. Be sure to check your [GRUB,LILO] conf to make sure the old kernel isn't still listed.
 
Old 08-20-2004, 08:58 AM   #3
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
Is there anyway I can check in console to see what kernel is running?

Should I install the other kernel back?

d-1





Quote:
Originally posted by ranger_nemo
It's usually a good idea to leave the old kernel in place for awhile... If something in the new kernel is incompatible with your box, then you could reboot to the old kernel.

Most distro kernels are pretty broad in their support, so you *shouldn't* have any trouble. Be sure to check your [GRUB,LILO] conf to make sure the old kernel isn't still listed.
 
Old 08-20-2004, 09:22 AM   #4
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
I have not rebooted yet and this is what my boot-loader shows in exact order:

linux-nonfb(/boot/mlinuz)
failsafe
windows(/dev/hda1)
floppy(/dev/fd0)
263-15mdk (/boot/mlinuz-2.6.3-15mdk)

Is there anything I need to delete or move around before I reboot?

d-1



Quote:
Originally posted by dolphans1
Is there anyway I can check in console to see what kernel is running?

Should I install the other kernel back?

d-1
 
Old 08-20-2004, 09:34 AM   #5
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
as was mentioned earlier, old kernels can be removed, but it is a good idea to keep for a bit to make sure the new kernel is performing like you want it to.

the easiest way (IMHO) to remove old kernels (or any software, for that matter) is use Mandrake Control Center->software management->remove software. type kernel in the search, then remove the one you want.

also, you might want to go to install software & type kernel in the search to install the newer kernel (2.6.3-15). the source can be different from the kernel version & if you got this kernel via an update, my guess is you have the source but not the actual kernel. or if that isn't the case, then you have the kernel but not the source. just use the software installer to check & install which ever you are lacking.

to see what your currently running kernel version is, in terminal as root type...........

Code:
uname -a
or

Code:
uname -r
both will give you kernel info.

if you want to remove old kernel entries from lilo, open lilo as root with a text editor of your choice, remove the section that you don't want, save it, then in terminal as root type..........

Code:
lilo -v
reboot for changes to take effect.

otis
 
Old 08-20-2004, 09:52 AM   #6
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
Thanks for your help otish;

Here is what I got when I typed uname -a and uname -r inside my console-

[stan@localhost stan]$ uname -a
Linux localhost 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux
[stan@localhost stan]$ uname -r
2.6.3-7mdk


I believe I have both the 2.6.3-15mdk kernel and kernel source. I did a urpmi kernel and it mentioned 2 kernels:

1- kernel-2.6.3-15-1-1mdk586
2- kernel-2.6.3-7-1-1mdk586

I selected option 1 and it said already installed. So I assume I have it. To make sure I went to MD CC RPM software remove and did a search and it shows the 2.6.3-15 kernel-source, but not the 2.6.3-15mdk kernel, so I am not sure if the 2.6.3-15mdk kernel is installed.

Also for removing old kernel entries from lilo could I not remove it from my bootloader settings inside MD CC?

Again thanks for your help.

d-1



Quote:
Originally posted by otish1000c









as was mentioned earlier, old kernels can be removed, but it is a good idea to keep for a bit to make sure the new kernel is performing like you want it to.

the easiest way (IMHO) to remove old kernels (or any software, for that matter) is use Mandrake Control Center->software management->remove software. type kernel in the search, then remove the one you want.

also, you might want to go to install software & type kernel in the search to install the newer kernel (2.6.3-15). the source can be different from the kernel version & if you got this kernel via an update, my guess is you have the source but not the actual kernel. or if that isn't the case, then you have the kernel but not the source. just use the software installer to check & install which ever you are lacking.

to see what your currently running kernel version is, in terminal as root type...........

Code:
uname -a
or

Code:
uname -r
both will give you kernel info.

if you want to remove old kernel entries from lilo, open lilo as root with a text editor of your choice, remove the section that you don't want, save it, then in terminal as root type..........

Code:
lilo -v
reboot for changes to take effect.

otis
 
Old 08-20-2004, 10:02 AM   #7
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
Quote:
ere is what I got when I typed uname -a and uname -r inside my console-

[stan@localhost stan]$ uname -a
Linux localhost 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux
[stan@localhost stan]$ uname -r
2.6.3-7mdk
that means you are running kernel 2.6.3-7, not 2.6.3-15.

Quote:
I believe I have both the 2.6.3-15mdk kernel and kernel source. I did a urpmi kernel and it mentioned 2 kernels:

1- kernel-2.6.3-15-1-1mdk586
2- kernel-2.6.3-7-1-1mdk586

I selected option 1 and it said already installed. So I assume I have it. To make sure I went to MD CC RPM software remove and did a search and it shows the 2.6.3-15 kernel-source, but not the 2.6.3-15mdk kernel, so I am not sure if the 2.6.3-15mdk kernel is installed.
urpmi is finicky about installing kernels. it won't overwrite an old kernel with a new one, that is why i suggested using MCC software installer & remover. do the following.........

go to MCC software removal & type kernel. if you see in the search results.......... kernel-2.6.3-15 AND kernel-source-2.6.3-15, you're good to go & you can remove the 2.6.3-7 kernel if it's still there. if it doesn't show the MATCHING kernel AND the kernel-source, then go to the software installer, type kernel in the search & install whichever your are missing (the kernel or the kernel-source).

Quote:
Also for removing old kernel entries from lilo could I not remove it from my bootloader settings inside MD CC?
you could, but i like editing it manually. once you get the kernel straigthened out, reboot, then type the uname -r stuff to check the kernel. you need to reboot before you can use the new kernel. and, if you want, post your lilo.conf file here & i can tell you want entries to add/remove if neccessary.

gotta run some errands now. i'll check back later.

otis

Last edited by otish1000c; 08-20-2004 at 10:03 AM.
 
Old 08-20-2004, 10:29 AM   #8
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
Otish:

When I go to MCC RPM software remove and I do a search for kernel all that comes up is is the kernel source.

When I go to the MCC add software and I type kernel, the only kernel's 2.6.3.-15 that seem to come up are:

Kernel-enterprise-2.6.3-15-1-1mdk
kernel-i686-up4GB-2.6.3-15-1-1md
kernel-secure-2.6.3.15mdk-1-1mdk
kernel-smp-2.6.3.15mdk-1-1mdk (I know this is for a PC with 2 CPU's and is not it.)

I am running an AMD Athlon 1400 XP-M machine, 630MB RAM

Am I safe to go?

d-1




Quote:
Originally posted by otish1000c
that means you are running kernel 2.6.3-7, not 2.6.3-15.



urpmi is finicky about installing kernels. it won't overwrite an old kernel with a new one, that is why i suggested using MCC software installer & remover. do the following.........

go to MCC software removal & type kernel. if you see in the search results.......... kernel-2.6.3-15 AND kernel-source-2.6.3-15, you're good to go & you can remove the 2.6.3-7 kernel if it's still there. if it doesn't show the MATCHING kernel AND the kernel-source, then go to the software installer, type kernel in the search & install whichever your are missing (the kernel or the kernel-source).



you could, but i like editing it manually. once you get the kernel straigthened out, reboot, then type the uname -r stuff to check the kernel. you need to reboot before you can use the new kernel. and, if you want, post your lilo.conf file here & i can tell you want entries to add/remove if neccessary.

gotta run some errands now. i'll check back later.

otis
 
Old 08-20-2004, 11:11 AM   #9
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
after rebooting, what is the output of uname -r? if it shows kernel-2.6.3-15, you are good to go. if not, please post back.

otis
 
Old 08-21-2004, 12:48 AM   #10
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
Otish when I rebooted it booted into the kernel-2.6.3-15 kernel and I had no problem, after removing the 2.6.3-7mdk kernel.

OOh but then I messed around with kopete as mentioned in another post and I removed it along with some KDE art stuff and I lost all my icons and could not boot into Mandrake 10.0.

Should have left well enough alone.....

d-1



Quote:
Originally posted by otish1000c
after rebooting, what is the output of uname -r? if it shows kernel-2.6.3-15, you are good to go. if not, please post back.

otis
 
  


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
devfs removed from kernel JimBass Linux - Newbie 7 09-28-2005 09:38 AM
Kernel files removed Zi5 Red Hat 44 05-06-2004 09:56 PM
kernel files removed cbarbot Linux - Newbie 1 04-14-2004 01:05 PM
How do I removed the compiled kernel? jeeva Linux - General 6 01-24-2004 08:40 PM
Kernel Modules Removed...New ones created GAVollink Slackware 9 12-13-2003 09:26 AM

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

All times are GMT -5. The time now is 11: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