Hello,

I'm resending this because I seem to have made a mistake.

In the Message; 

  Subject    : Re: [clamav-users] Seeking newbie level help with setting up and 
using ClamAV
  Message-ID : <87r0bnf2la.wl-nom...@lake.dti.ne.jp>
  Date & Time: Sun, 21 Jul 2024 19:42:41 +0900

[MN] == Masaru Nomiya via clamav-users <clamav-users@lists.clamav.net> has 
written:

MN> In the Message; 

MN>   Subject    : [clamav-users] Seeking newbie level help with setting up and 
using ClamAV
MN>   Message-ID : <ab80e9ce-8ff8-4c1a-90fd-8fd1701a7...@orcon.net.nz>
MN>   Date & Time: Sun, 21 Jul 2024 16:08:30 +1200

MN> [SA] == "Ayre, Sarah via clamav-users" <clamav-users@lists.clamav.net> has 
written:

MN> [...]
SA>  Then, to *achieve number 1* in my list of uses of ClamAV above, I
SA> propose to run the command:

SA>  $ sudo clamscan --recursive --infected /home/sarah

SA>  to scan and detect infections in the whole of the Home Directory
SA>  including all its subdirectories on my main internal drive.

There is no need to use the sudo command.

      $ clamscan --recursive --infected /home/sarah

SA> Myextra internal drive named SecondaryDrive is mounted in the Home
SA>  Directory even though it is a physically separate drive. I am
SA>  imagining that if I wished to only scan the extra drive I would
SA>  run

SA>  $ sudo clamscan --recursive --infected /home/sarah/SecondaryDrive

SA>  but that otherwise it would be scanned as part of scanning the
SA>  whole of the Home Directory (is this correct? I am the only
SA>  person using the computer).

MN> This is because SecondDrive is not mounted.

This seems to be a mistake, and you are talking about after doing
mount.

But, why do you use /home/sarah as your mount point?

At the same time, I wonder if /home and SecondDrive have different
file systems.  Then it makes sense that the clamscan command ignores
SecondDrive.

Perhaps the SecondDrive contains the previous /home/sarah data, so you
set /home/sarah as a mount point.

This should not be done even if the file systems of /home and
SecondDrive are the same. Your system should have a mount point named
/media (or /mnt), which you should use;

  $ mkdir /home/sarah/virus

  # mount SecondDrive /media

  # clamscan -r --infected --move=/home/sarah/virus /media

Best Regards.

---
┏━━┓彡  Masaru Nomiya                      mail-to: nomiya @ lake.dti.ne.jp
┃\/彡
┗━━┛  "Distinguish between what is meaningful to me and what is meaningless,
          and forget what is meaningless to me. This is where individuality 
comes
          into play. This is a function that computer cannot perform."
          
                                            -- Shigehiko Toyama (in Japanes) --
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to