SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a system based upon Slackware64-current. I have been running this a while and periodically performed upgrades. It is on a multi-booted laptop with separate home and / partitions. The / partition has filled up to where it is reporting 100% utilization and I don't have a lot of room left on the drive to allocate more to it. BTW, it is an older PATA notebook drive and while I can get a 320 GB drive, I am not sure I want to invest ~$100 into this laptop, at least anytime soon.
I am looking for things that I can safely delete from the system and my question is for recommendations. It looks like a lot of space is being taken up in the package cache, under /var/cache and if I delete this I can recover almost 20% of the drive space, but I loose the ability to update the system or install or remove packages. Other options include removing the Linux Kernel Sources, and removing applications. Previously I tried uninstalling applications, but apparently removed a critical library and couldn't start KDE anymore. This has left me hesitant to go down this road, at least so aggressively anymore.
As it stands, I have had to re-image the drive with DD after killing the system a few times. At one point, I formatted this partition and reinstalled, with the new system taking up less than 40% of the space, which tells me that it is file creep-age. Unfortunately, the upgrade to -current bombed and I reverted the system back via the backup.
So, this leaves me wondering what things would be safe to remove to gain some space while not killing the system?
You can remove your package cache with the package manager utility, with yum the command is yum clean all. Won't do any damage. You can also remove any old log files in /var/log that you do not need and if /tmp/ is on that same partition basically anything in there can be removed without worry.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Have a look at ~/.thumbnails I always remove this folder before doing a backup as it can hold a LOT of files.
Also have a look at what you can thwow a way from the ~/.mozilla folder ( the variaous cache files ) at the moment my .mozilla folder stands at over 120M - while I'm at it might as clean out my own one!
Last edited by Keith Hedger; 06-13-2012 at 03:36 PM.
Slax had a script called prepare-crippled-kernel-sources.sh that would remove a lot of the kernel source but leave enough to allow building of extra kernel modules.
# remove a lot of stuff
rm -Rf Documentation drivers fs net sound firmware
ls -1d arch/* | grep -v x86 | xargs rm -Rf
ls -1d include/* | grep asm- | grep -v x86 | grep -v generic | xargs rm -Rf
You will have to reinstall the kernel source package if you want to recompile your kernel though.
A warm thank you to everybody for their suggestions.
I cleared out the tmp directory. I thought, though it goes back well over a year, that I followed the suggestion by Genek in his Adventures in Slackware to add the command to clear out this folder. That reduced the usage down to 86%. The thumbnails folders did have some space on it. I cleared out the one under /root. For right now, I have decided to leave the /doc folders, but this is a good suggestion. I did remove a couple of packages that I manually installed and don't need and removed an older linux kernel that I had both a bz2 of and the directory. This one is my recovery boot, so I don't mess with it much but don't develop on it. I ran the crippled kernel clean up and that gained a few more percentage. All told, I reduced the utilization down to 70%, which I can likely improve upon by removing a few packages, e.g. calligra which was installed in a recent update.
A suggestion, if you feel the size of your / is little at this moment, you can safely resize it with something like http://www.sysresccd.org, it's a live cd with the GParted program. Lets say you want to give some space from /home to /. It has some other programs/features so i would recommend it for those situations when you need to rescue a linux/windows system.