LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2006, 09:44 PM   #1
fibster
Member
 
Registered: Feb 2006
Location: Washington State
Distribution: Slackware
Posts: 42

Rep: Reputation: 16
Trimming a installed kernel


Hey All,

Anyone care to explain how to trim my kernel down. I have Pat's 26173 and read i believe on shilo's site you could trim it down. I'm not looking to do another kernel just trim it. Do i go to usr/source and run a command? Appreciate any help.

Todd aka fibster
 
Old 10-31-2006, 11:59 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Fibster,

the general procedure is to go to /usr/src/<kernelversion> and run make menuconfig. Then, you deselect support for anything you don't need. Check on what hardware you have with the command lspci. If you're unsure, leave it in. Continue trimming until you're happy with the size. If for some reason, the trimmed kernel won't boot, boot from the old kernel (add a new entry to lilo instead of just replacing the old kernel).

Just ask if you need more info.

-- Shade
 
Old 11-01-2006, 01:58 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It is also helpful to run "lsmod" while running the stock kernel, and then making sure to include anything that was loaded, as these are almost certainly modules your hardware requires.
 
Old 11-01-2006, 05:47 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
The Linux operating system is unique, in that you can rebuild your kernel. This allows you to add support for hardware (i.e. install a driver in Windows) or remove support for hardware that you don't have. With Pat's kernels, however, hundreds of modules are available, but they're not loaded unless the kernel detects that you have that piece of hardware. Therefore, you're not really going to notice any difference in your kernel just by trimming only a few things you happen to know about or can determine from "lspci" and "lsmod" output. They are both important -- "lspci" is very basic, and "lsmod" with Pat's kernels will show you most of your modules.

Whichever way you go, there isn't a single command to "trim down your kernel." It will take a lot of dilligent work, and learning about your hardware and how you use your Linux system.

A good place to start is Kwan Lowe's Kernel Rebuild Guide.

As for learning about your hardware, <Linux> - Google Search is your friend.
 
  


Reply



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
QCad - trimming lines mjjzf Linux - Software 1 09-15-2006 03:16 AM
Multiple CUPS problems (trimming pages, wrong pagesize) rutgerw Linux - Software 3 09-05-2005 03:12 PM
Trimming down a Suse 9.0 install Bradless Linux - Distributions 0 08-02-2004 04:36 PM
Trimming a file james_cwy Linux - Newbie 4 01-13-2004 10:08 PM
Help with a Script for Trimming last 2 letters of file names eagletech Linux - Newbie 3 11-13-2002 06:04 AM

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

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