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.
I've noticed there's a lot of stuff in the kernel that I don't particular need, like any architecture other than x86/i386. Could I safely delete these directories from the kernel source and compile a new kernel, or would this be considered a bad idea?
If it's safe, where else could I possibly save some space?
If it's disk space, the 2.6.7 kernel that ships with Slack 10.0 is 1.4 MB on disk. The kernel source tree is unecessary as long as you don't need to comple anything, so you could remove the kernel source package. You can clean things up a bit by running `make mrproper` from /usr/src/linux, but that won't save enough space to make it worth the time to even type the command, especially considering that it removes all your kernel config files.
You could save a little RAM by removing support for hardware you don't need. Just use `make menuconfig` and remove the stuff you think you don't need. However, if you don't absolutely know what you're doing, you can remove too much and end up with a kernel that doesn't work as well as the supplied kernel. Again, not worth is IMO given the small amount of RAM the kernel occupies and the relatively huge amounts of RAM in modern systems. Also, most hardware support is in modules that are not loaded into RAM until they are needed.
Recompiling the kernel can speed up your system a bit, but it's always been a marginal improvement for me, so I stopped doing it. I only compile new kernels now when I want to use newer versions that aren't with slack-current. For instance, 2.6.10 isn't part of slack-current, but I decided to run it anyway.
Give us a bit more information on what you're trying to accomplish, please.
My Kernel sourse is around 150 MB, because I never clean it.. cuz I do a lot of kernel mods here 'n there
But you can delete packages that you don't use!
If you're on KDE, run: Package Manager (KPackage), under the System menu.
If you're a sheller, fire your shell and type pkgtool
Make sure you read the description of each package before removing it! and even if you removed a package by mistake, you'll find it in the installation CDs.
If you want to reduce the kernel size (the compiled one), go to your source directory :
/usr/src/linux
make xconfig
and remove all the options you don't need, like AppleTalk, if you're not on a network with Mac computers, you don't need that protocol, and so on.
Recompile your kernel, and as suggested above, clean it. I wouldn't clean it untill I reboot and test everything to make sure I havn't removed something needed in the kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.