NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
viperhansa
Jul 29, 2020Virtuoso
ClamAv
Hi everyone, Is it possible to store the daily.cld and main.cld from clamav somewhere else? They are using up 25-35% of the os partition wich is as we all know not good it it goes full. A...
- Jul 29, 2020
viperhansa wrote:
Thanks for the reply,
On my system it looks like this:
root@HOA-NAS-PRO:~# du -h /var/lib/clamav
575M /var/lib/clamavStill about 15%, not 25%
I suggest moving everything but mirrors.dat to the data volume temporarily, and then re-running freshclam. I suspect that will reduce the space.
viperhansa wrote:
Any special reason why its on the OS partition and not together with the other apps
You'd have to ask Netgear. One consideration is that the AV can also protect the OS partition itself, so it should be available even if the data volume can't be mounted.
But you can move it yourself easily enough, just shift it to /data/.apps/clamav, and create a soft link in /var/lib.
StephenB
Jul 30, 2020Guru - Experienced User
viperhansa wrote:The only thing that s not working is that daily.cld is recreated in the original folder and the soft link is removed.
I tried moving it on my own system, and the update worked correctly. As you can see the soft link is still present. The virus definitions were updated by the NAS software, and placed in the relocated folder. (I'm not experiencing the update failures that others are having).
root@RN202:~# cd /var/lib root@RN202:/var/lib# ls -al clamav lrwxrwxrwx 1 root root 18 Jul 30 05:53 clamav -> /data/.apps/clamav
root@RN202:/var/lib# cd /data/.apps/clamav root@RN202:/data/.apps/clamav# ls -al total 403844 drwxr-xr-x 1 root root 102 Jul 30 07:28 . drwxrwxr-x 1 root root 242 Jul 30 05:51 .. -rw-r--r-- 1 root root 48 Jul 30 07:28 antivir.ini -rw-r--r-- 1 root root 296388 Jul 26 08:47 bytecode.cvd -rw-r--r-- 1 root root 295365632 Jul 30 07:26 daily.cld -rw-r--r-- 1 root root 117859675 Jul 26 08:45 main.cvd -rw------- 1 root root 156 Jul 30 07:28 mirrors.dat root@RN202:/data/.apps/clamav#
viperhansa
Jul 30, 2020Virtuoso
Ok, looks like mine is different.
1 question more, have you a softlink for the clamav folder or each file?
i did a softlink per file.
if so, how do you create a softlink for a folder?
regards
// Hans
- StephenBJul 30, 2020Guru - Experienced User
viperhansa wrote:
i did a softlink per file.
That won't work. freshclam isn't updating the file, it's downloading a new file and deleting the old. In your case, that deletes the softlink.
viperhansa wrote:
i did a softlink per file.
if so, how do you create a softlink for a folder?
As you can see from the above, I made a softlink for the folder. It's no different from creating a softlink for a file.
# cd /var/lib # ln -s /data/.apps/clamav clamav
- viperhansaJul 30, 2020Virtuoso
Thanks!
That worked!
I'm back to 39% used space on OS partition... :-)
// Hans
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!