SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.