clamav-users August 2007 archive
Main Archive Page > Month Archives  > clamav-users archives
clamav-users: Re: [Clamav-users] clamscan crashes server

Re: [Clamav-users] clamscan crashes server

From: Christoph Cordes <ib_at_nospam>
Date: Sat Aug 11 2007 - 00:29:10 GMT
To: ClamAV users ML <>

Am 10.08.2007 um 23:16 schrieb Marshall Dudley:

> I was running clamscan, and the var partition of the drive filled up.
> This partition had 300 Meg free on it, and clamscan created a huge
> number of files like mixedtextportion05GJ4k in the
> /tmp/clamav-ec6d3e4e4e253eaf directory and filled it up. To make

Could it be that you scanned some large .mbox file?

> matters worse, I had a difficult time deleting them to get the system
> back up because when I tried to do a "rm *" it reported that the file
> list was too long, so I had to delete them a few at a time.

Why not "rm -rf /tmp/clamav-ec6d3e4e4e253eaf" ?

> How can I prevent clamscan from doing this?

If you scan a file in mbox format - with, let's say 500 mails, Clam extracts every mail out of it and also every attachment and - if the attachment is a zipfile, or rarfile or some other container, the files are extracted as well and creates a file for it. This way it's easy to create tons of files that of course use a lot of space. So you could provide more temp space, tell clamscan to use an alternate directory for the temp files - on a disk with more space - or avoid to scan mbox files. If it was an mbox file that caused the problem. -- Best regards, Christoph _______________________________________________ Help us build a comprehensive ClamAV guide: visit