LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-19-2004, 01:03 PM   #1
sueno
Member
 
Registered: Feb 2004
Location: Reykjavík Iceland
Distribution: Fedora Core 3. also testing mandrake
Posts: 54

Rep: Reputation: 15
Question Uninstalling Old kernel


Hi
I need to get rid of a Kernel which doesn really work to good so I can try again without having to worry about conflicts because I will have to compile the same version again.

Is just as simple as removing some files from boot or is more necessary to complete the job.

Thanks

anything useful will be appreciated
 
Old 09-19-2004, 01:07 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

remove kernel image(vmlinuz file from /boot)
required System.map from /boot
delete required directory from /lib/modules

remove entry from /etc/grub.conf or /etc/lilo.conf


and what conflicts are u talking about

regards
 
Old 09-19-2004, 01:12 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well...instead of removing , it's better to rename them and keep them until
the new thing works. ( that's what i do .....)

egag
 
Old 09-19-2004, 01:17 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

well to keep them ,,,let them be in the list

i ahve many in mine,try out the older one untill i get the newer one working fine
and we can have around 12-15 options in lilo/grub

regards
 
Old 09-19-2004, 02:11 PM   #5
sueno
Member
 
Registered: Feb 2004
Location: Reykjavík Iceland
Distribution: Fedora Core 3. also testing mandrake
Posts: 54

Original Poster
Rep: Reputation: 15
Tanks for the help I will try renaming the kernel which is already installed and try recompiling another one
 
Old 09-19-2004, 02:13 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

why rename the files with the kernel

instead make the new kernel with a differnet name and let the old one be there

regards
 
Old 09-19-2004, 02:49 PM   #7
sueno
Member
 
Registered: Feb 2004
Location: Reykjavík Iceland
Distribution: Fedora Core 3. also testing mandrake
Posts: 54

Original Poster
Rep: Reputation: 15
Make the new kernel with a new name haw is that done???????
 
Old 09-19-2004, 03:02 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

when u compile a kernel

edit Makefile in the kernel source

like

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION = .rc2gm55


then after u r done then these

from /usr/src/linux-2.6.9..... directory

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.9r2gm55

cp System.map /boot/System.map-2.6.9rc2gm55

then

mkinitrd /boot/initrd-2.6.9.rc2gm55.img 2.6.9.rc2gm55

so make an emtry for these in the grub.conf or lilo.conf

the name in the Makefile and the others should match so that u do not face any problems

regards
 
  


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
Uninstalling... the_sLiDe Linux - Software 1 10-02-2004 07:50 PM
uninstalling help tradnbillies Linux - Newbie 2 02-27-2004 03:15 PM
Uninstalling a kernel th3_d0c Linux - Software 2 11-30-2003 08:49 PM
uninstalling!! there is no god Linux - Newbie 3 08-23-2003 12:56 PM
uninstalling kernel upgrade on RH 8 juanb Linux - General 1 03-12-2003 08:06 AM


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