- Step-01. Make empty directories
# mkdir /virdefs /mnt/testpart
# chmod 777 /virdefs
- Step-02. Copy the current virus definitions
# cp /usr/share/clamav/* /virdefs/
- Step-03. Download the latest virus definitions
# freshclam --datadir /virdefs
- Step-04. Mount the partition to be scanned
# mount /dev/hda1 /mnt/testpart
- Step-05. Perform the scan on the files.
# clamscan -r -d /virdefs /mnt/testpart
If you really don't have any internet connexion, you can scan for virus without
updaing virus definitions. Of course, it's less safe, and only old virus can be detected.
Here are the steps: