Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I clean up my harddrive?

Every 5 months I start running out of space on my root partition... I scramble to erase documentation, remove log files, and keep only a single kernel so as to keep enough space. And then every time I run a distribution upgrade (cdromupgrade) I end up with about a gig more space even though it keeps all the same programs installed.

Anyone know where the kruft is?

share|improve this question

marked as duplicate by Marco Ceppi Jun 5 '11 at 19:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'll try the recommendations in the link but I won't have an answer for a while since I just installed 11.4. – krumpelstiltskin Apr 22 '11 at 2:11

You may want to run sudo du -x --max-depth=1 / | sort -n to see where your space is going. You can walk the directories to get a better idea where the space is going. I generally find the space ends up being in few directories.

You may want to try running sudo apt-get clean to remove all the debs from the cache directory. The directory /var/cache/apt/archives can grow quite large if you don't clean it out. Once the packages are installed, you don't need the .deb archived. They are helpful if you need to reinstall the package, or find the original version of a file that was installed.

share|improve this answer

You can try running sudo apt-get autoremove and sudo apt-get autoclean which may free up some space. Normally the update manager should do this for you but perhaps cdromupgrade doesn't.

share|improve this answer
i do this regularly in order to keep enough breathing space. – krumpelstiltskin Apr 21 '11 at 22:26
the problem is not with cdromupgrade. the upgrade is what frees the space. the problem is with the updates and the normal running of the system over the 5 months. – krumpelstiltskin Apr 21 '11 at 22:27

KDirStat is a fairly direct way of finding where all your space is going.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.