I have the following problem. When I work on my box for a long period e.g. (3 days) my /tmp directory gets full. The result of this is that kmail does not receive mail, but it gets a message which looks like:
X-Bogosity: Unsure, tests=bogofilter, spamicity=0.520000, version=0.96.2 X-UID: Status: R X-Status: NC X-KMail-EncryptionState: X-KMail-SignatureState: X-KMail-MDN-Sent:
and deletes the real message from the server. What should I do? Should I put
rm -fr /tmp/*
into cron? Any suggestions?
Thanks in advance,
Removing everything from /tmp may cause problems.
I'd suggest a cron job that either identifies some large files there that are safe to delete and/or deletes tmp files not listed by lsof.
you could comment the tmpfs line in fstab. That will use temp as a regular directory on your hard drive. The problem with that is it reduces speed because /tmp is no longer using ram.
You may want to run something like htop and find what is eating it all up. How much RAM and swap do you have? If you have little ram you should make swap big enough to compensate.
I have 512 MB of ram and my swap partition is 216MB, but it is rather rarely used. I'd prefer not to slow my computer down. /tmp is eaten up by Kaffeine and amaroK. They leave files in /tmp even after being closed.