LinuxQuestions.org
Register a domain and help support LQ
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 05-12-2004, 07:27 AM   #1
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Rep: Reputation: 15
Proper way to remove old kernel


I have seen many post on how to update your kernel.My up2date did it for me.

However what is the proper way to remove the old kernel.Also will I have to edit grub.If so how do I do that?

My goal is to get my nvidia drivers to recompile properly for my new kernel 2188.Right now they just keep recompiling for the old kernel 2115.
 
Old 05-12-2004, 09:12 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
If you are using the standard kernel RPM, you should be able to remove it with rpm / yum / apt, your choice...

# rpm -e kernel#

# yum remove kernel#

# apt-get remove kernel#

Be sure to add the version number to the end of the command.
 
Old 05-12-2004, 09:14 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Most likely the reason that the drivers compile against the old kernel is that the symlink /usr/src/linux points to the old kernel source directory. Try ls -l /usr/src/linux to see where it points to. Just remove this symlink (rm /usr/src/linux) and create a new one pointing to the new source directory (ln -s /usr/src/whatever-the-new-source-dir-is /usr/src/linux) and try again.


Håkan
 
Old 05-12-2004, 09:47 PM   #4
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Original Poster
Rep: Reputation: 15
O.K. I was a little nervous about deleting my only kernel that could access the web.So I went into a terminal as root.I tried one more time to "make" then "make install" for the drivers.I was booted in my new 2.4.22-1.2188.nptl kernel.The untarred files are on my desktop and this is what I saw.

root@localhost root]# cd Desktop
[root@localhost Desktop]# make
make -C nvnet
make[1]: Entering directory `/root/Desktop/nvnet'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/Desktop/nvnet'
make -C nvaudio
make[1]: Entering directory `/root/Desktop/nvaudio'
make nvaudio.o
make[2]: Entering directory `/root/Desktop/nvaudio'
make[2]: `nvaudio.o' is up to date.
make[2]: Leaving directory `/root/Desktop/nvaudio'
make[1]: Leaving directory `/root/Desktop/nvaudio'
make -C nvgart
make[1]: Entering directory `/root/Desktop/nvgart'
making gart
make[1]: Leaving directory `/root/Desktop/nvgart'
[root@localhost Desktop]# make install
make -C nvnet install
make[1]: Entering directory `/root/Desktop/nvnet'
mkdir -p //lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net
install -b -m 644 -o root nvnet.o //lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o~
make[1]: Leaving directory `/root/Desktop/nvnet'
make -C nvaudio install
make[1]: Entering directory `/root/Desktop/nvaudio'
mkdir -p //lib/modules/2.4.22-1.2188.nptl/kernel/drivers/sound
install -b -m 644 -o root nvaudio.o //lib/modules/2.4.22-1.2188.nptl/kernel/drivers/sound
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o~
make[1]: Leaving directory `/root/Desktop/nvaudio'
make -C nvgart install
make[1]: Entering directory `/root/Desktop/nvgart'
mkdir -p //usr/src/nvidia/nvgart
install -b -m 644 -o root linux-2.4.20-agpgart.diff //usr/src/nvidia/nvgart
install -b -m 644 -o root README //usr/src/nvidia/nvgart
make[1]: Leaving directory `/root/Desktop/nvgart'
[root@localhost Desktop]# modprobe nvnet
/lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o: kernel-module version mismatch
/lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o was compiled for kernel version 2.4.22-1.2115.nptl
while this kernel is version 2.4.22-1.2188.nptl.
/lib/modules/ .nptl/kernel/drivers/net/nvnet.o: insmod /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o failed
/lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o: insmod nvnet failed
[root@localhost Desktop]#



My concern is that I checked the symbolic link and the properties show it pointing to my new 2.4.22-1.2188 kernel.
And the trouble appears to be the line

depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2188.nptl/kernel/drivers/net/nvnet.o~

What are unresolved symbols?
Is there a cure?
 
  


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
the kernel proper slinky2004 Linux - Newbie 4 10-30-2005 10:53 PM
Proper way to remove apache2? stefanlasiewski Debian 3 08-21-2005 05:54 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 12:35 PM
proper kernel config - using an oldconfig Godsmacker777 Linux - General 7 06-05-2005 01:11 AM
Remove a kernel Regulus Linux - Software 6 01-04-2005 12:17 AM


All times are GMT -5. The time now is 01:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration