How can you do a full system scan with ClamAV on Ubuntu only?
11,803
Easily you have to exclude the windows partition
clamscan -rv --exclude=/path-to-mounting-point-of-windows-files
Or just unmount the windows disk
Details
Determine the windows disk/partition
sudo fdisk -l | grep NTFS
for example you'll get result such as
/dev/sdc1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
Thus the disk/partition for windows is /dev/sdc1.
Now you should determine what is the mounting point of this partition
mount | grep /dev/sdc1
The output would be like
/dev/sdc1 on /media/Windows type ext4 (rw)
Then the mounting point is /media/Windows
Now you can run the command again
clamscan -rv --exclude=/media/Windows
Related videos on Youtube
Author by
BigHippo
Updated on September 18, 2022Comments
-
BigHippo almost 2 years
I have both Ubuntu and Windows on my computer and when I do a full system scan, it scans Windows files too (and first). Is there a way to scan all the files only on Ubuntu?
-
Ron about 9 yearshave you tried
clamscan -r /home
orclamscan -r /
? -
Rinzwind about 9 years@ron Windows is probably mounted in /media/ or /mnt/. Umounting the windows disk would be my 1st option though
-
Ron about 9 years@Rinzwind yes, first I thought that. Then thought this will be a bit easier to scan only Ubuntu
-
-
BigHippo about 9 yearsThanks, I found the Windows folder and it worked, but I tried unmounting the Windows disk too and the second command wouldn't work.