Open Terminal: You can do this by pressing Ctrl + Alt + T
.
Update Your Repositories: It’s always a good idea to make sure your package list is up-to-date.
sudo apt update
Install ClamAV:
sudo apt install clamav clamav-daemon -y
Stop the ClamAV Daemon: If the daemon is running, you’ll need to stop it before updating.
sudo systemctl stop clamav-freshclam
Update Virus Definitions:
sudo freshclam
Restart the ClamAV Daemon (optional):
sudo systemctl start clamav-freshclam
List All Partitions:
sudo fdisk -l
If your Windows partition is not automatically mounted, you’ll need to mount it manually. Replace /dev/sdXn
with the actual device identifier for your Windows partition.
sudo mount -t ntfs-3g /dev/sdXn /mnt
Scan the Entire Partition:
sudo clamscan -r /mnt
If you want ClamAV to automatically remove or quarantine infected files, you can add additional flags:
--remove
to automatically delete infected files.--move=/path/to/quarantine
to move infected files to a quarantine directory.
After the scan is complete, ClamAV will provide a summary of the results, including the number of files scanned, the number of infected files, and the action taken.
- If no infected files were found, you can be confident that your Windows 11 partition is clean.
- If infected files were found and removed or quarantined, you may want to investigate further to ensure that your system is secure.