Clamav can not use

clamav can not use

when

clamscan -r /

it said, can not open file.

i switch into other directory, failed again.

what can i do next?

2 Likes

work fine

2 Likes

I think clamscan will only handle writable folders. It doesn’t understand the way Haiku mounts .hpkg files, so it gives up when it gets to /boot/system. Try clamscan -r ~ instead.

1 Like

~> uname -a
Haiku shredder 1 hrev57752 May 30 2024 06:21:50 x86_64 x86_64 Haiku
~> clamscan -r /Haiku/home/
LibClamAV Error: cl_load(): No such file or directory: /packages/clamav-1.2.0-1/.self/settings/clamav/db
ERROR: Can’t get file status

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 1.2.0
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.043 sec (0 m 0 s)
Start Date: 2024:06:07 18:54:22
End Date: 2024:06:07 18:54:22
~> clamscan -r /
LibClamAV Error: cl_load(): No such file or directory: /packages/clamav-1.2.0-1/.self/settings/clamav/db
ERROR: Can’t get file status

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 1.2.0
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.043 sec (0 m 0 s)
Start Date: 2024:06:07 18:54:32
End Date: 2024:06:07 18:54:32

what’s the meaning?

My guess is that you didn’t update the db yet. So, no db loaded, nothing to scan.

well, “freshclam” is ok.
but " clamscan -r / " failed.
is the problem about ext2?
or the other thing?

when i umount the other disk, it all be ok.

----------- SCAN SUMMARY -----------
Known viruses: 8694528
Engine version: 1.2.0
Scanned directories: 3958
Scanned files: 66670
Infected files: 0
Data scanned: 9916.83 MB
Data read: 8585.61 MB (ratio 1.16:1)
Time: 3352.801 sec (55 m 52 s)
Start Date: 2024:06:07 21:05:07
End Date: 2024:06:07 22:01:00
~/Desktop> uname -a
Haiku shredder 1 hrev57754 Jun 7 2024 06:02:24 x86_64 x86_64 Haiku

2 Likes