Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The diskspace on my server is pretty filled up right now.. I'd need about 3GB more space. Upgrading is of course an option, but maybe someone knows some other tricks? Delete some unimportant log-files or something?

Thanks in advance!

share|improve this question
add comment

3 Answers

This is impossible to answer since we don't know how much disk space you have to begin with, how many and which packages you have installed, how much user data you have etc.etc.

share|improve this answer
add comment

did you check out /var/backups, /var/log and /tmp? Most of the stuff there can be safely removed. As far as I know the stuff in /var/cache/apt can also be safely be removed. You might also want to remove packages you do not need (documentation? compilers? redundant java versions in /usr/lib/jvm...) What about the home directories? Any stuff there that can be removed? (Old users?)

share|improve this answer
add comment

The command apt-get clean will safely remove any cached package downloads. This may free up a lot of space. Review the installed packages and remove any you don't need. /tmp is often a mounted from tmpfs so won't use any disk space.

Using the command du -xs /* | sort -n may point out where your space has gone. Also use the root of any mounted filesystems such as /usr, /var, or /home in place of / to check those filesystems. You can walk the directory tree by adding using the desired directory before the /* in the command.

The df command will tell you what filesystems are mounted and how full they are.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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