LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2003, 05:40 PM   #1
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Rep: Reputation: 30
Scrapping a kernel


So while trying to understand the kernel building process I have created an abomination that must be totally erased. Is there a command like "make remove-kernel"?

I suppose its easy enough to delete the kernel image itself , system.map and initrd - but what about any other config files, and all the modules?

Does a kernel build scatter files all over the place? Is anything shared with previous kernel versions?
 
Old 07-10-2003, 05:52 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
All the modules and configs are stored in /usr/src/linux-x.x.x
Once you remove that directory and the vmlinuz and initrd files, you have effectivly deleted the kernel. Be careful.
 
Old 07-10-2003, 05:53 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If you didn't change the version-number
(Extraversion) in the makefile the newly
compiled kernel uses the same module-
directory ...
/lib/modules/<version>.<patchlevel>.<sublevel>.<extraversion>
Other than that, the installation should
only include the bzImage and the System.map.

Cheers,
Tink
 
Old 07-10-2003, 06:04 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Doh! I totally forgot the modules aren't stored in the kernel directory. Good catch Tink..
 
Old 07-10-2003, 06:43 PM   #5
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
Thanks!

The reason I was asking is there isn't (afaics) a modules directory for each kernel in /usr/X11R6/lib, just the one /modules dir.

But I am thinking this will not matter - the X modules + drivers will be the same for any kernel, just as long as you have the right module loaded for your video card, right?
 
Old 07-10-2003, 06:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Pcghost
Doh! I totally forgot the modules aren't stored in the kernel directory. Good catch Tink..
Heh ... not really a catch ;) We more or less
posted at the same time, 36 seconds apart :}

Cheers,
Tink
 
Old 07-10-2003, 07:03 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by MadCactus
Thanks!

The reason I was asking is there isn't (afaics) a modules directory for each kernel in /usr/X11R6/lib, just the one /modules dir.

But I am thinking this will not matter - the X modules + drivers will be the same for any kernel, just as long as you have the right module loaded for your video card, right?
Well, let's say that in terms of AGP
and DRI there is interaction between
Kernel & X, and some cards use DRI
quite excessively...

Cheers,
Tink
 
Old 07-11-2003, 05:40 AM   #8
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Well, let's say that in terms of AGP
and DRI there is interaction between
Kernel & X, and some cards use DRI
quite excessively...
Mine being a PCI nVidia card does not use DRI according to the status list, so (hopefully) that means I don't have to touch any X modules, right?
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
kernel memory + slabinfo.. + possible reasons for kernel space allocation failures!! premenjit Linux - Software 1 09-28-2004 04:13 AM
Scrapping Windows Mojojo Linux - General 4 06-07-2003 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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