DebianThis forum is for the discussion of Debian 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.
I have 11Gb allocated for my / partition, 1Gb /swap and another 20Gb for /home.
I have just noticed that my / has grown to about 10Gb currently. Since this system was originally a standard Sarge desktop install (I think about 5Gb in /) and I have only added a few extra packages such as Amarok and Kmymoney, I don't know why / has grown so large. At this rate I am in danger of running out of space.
Any suggestions as to the cause or what I might do about this?
I didn't know about "aptitude clean".
I ran that command and I now have 5.1Gb free space in / just like that.
Basically, whenever you run an upgrade or dist-upgrade, all the packages that get downloaded are stored on your hard drive until you clean them out. So if you've never run clean, it may have been that all the packages from your Etch update were still on the machine.
Thanks, that'll almost certainly have been the case then.
I've run "df -h" and "du -h --max-depth=1" as suggested and then run "!du" on /var (427M).
The output is:
Is there a proper way to clear out ./log? What about ./run and ./spool?
you don't want to mess with run.
spool contains mails, probably also not something to mess with directly.
(besides both together only amount to less than 1 MB).
- in log, you can remove all of the gzipped files.
- you can also echo "" > some_file to clear any large logs, though that's probably not necessary after removing the gz files.
- to properly manage your log files, you should have logrotate working. I've never put much effort into this, so I can't help you with it.
btw, I didn't know about aptitude clean either. good tip!