Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

yum install clamav

clamscan -r -i --remove -l clamav.log /home/

clamscan -r -i --remove -l clamav.log /run/media/myplex1/Elements/ & #"&" very useful for very large HDD which will take a very long time



https://askubuntu.com/questions/250290/how-do-i-scan-for-viruses-with-clamav


Code Block
titleclamscan command
collapsetrue
[root@batpc1 ~]# clamscan /home/

----------- SCAN SUMMARY -----------
Known viruses: 6636387
Engine version: 0.100.1
Scanned directories: 1
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 47.031 sec (0 m 47 s)



Code Block
titlescan a mounted partition
collapsetrue
[root@batpc1 /]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0 74.5G  0 disk
├─sda1            8:1    0  500M  0 part /boot
└─sda2            8:2    0   74G  0 part
  ├─centos-root 253:0    0 47.7G  0 lvm  /
  ├─centos-swap 253:1    0    3G  0 lvm  [SWAP]
  └─centos-home 253:2    0 23.3G  0 lvm  /home
sdb               8:16   0  1.8T  0 disk
└─sdb1            8:17   0  1.8T  0 part /run/media/myplex1/HD-LBU2
sr0              11:0    1 1024M  0 rom


[root@batpc1 /]# fdisk -l
. . .
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1702dfe0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              64  3907029119  1953514528    7  HPFS/NTFS/exFAT