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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-10-2003, 05:40 PM
|
#1
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195
Rep:
|
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?
|
|
|
07-10-2003, 05:52 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
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.
|
|
|
07-10-2003, 05:53 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
07-10-2003, 06:04 PM
|
#4
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
Doh! I totally forgot the modules aren't stored in the kernel directory. Good catch Tink..
|
|
|
07-10-2003, 06:43 PM
|
#5
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195
Original Poster
Rep:
|
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?
|
|
|
07-10-2003, 06:56 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
07-10-2003, 07:03 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
07-11-2003, 05:40 AM
|
#8
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 12:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|