Find the answer to your Linux question:
Page 4 of 7 FirstFirst 1 2 3 4 5 6 7 LastLast
Results 31 to 40 of 61
ohhh wow. ok thanks! I will use that next time I have 4 hours free! I noticed I had tons of files to scan! The weird thing is I just ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #31
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60

    ohhh wow. ok thanks! I will use that next time I have 4 hours free! I noticed I had tons of files to scan! The weird thing is I just emptied out tons of things in my hard drive for Windows and it is supposed to be only like 50gb.

  2. #32
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    50GB could be 25 or 30 movies.
    Or it could be a million little text files... it's rather subjective.

    The commands that I gave maybe a little more complicated at first, but it does the job all in one shot instead of having to do several different scans.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #33
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    we'll actually the commands I was using ended up to having only one big scan as well. The only problem with the scan you gave me is how do i use it to scan the windows hard drive(sd1) and not the live cd's hard disk or hard drive (don't know which )

  4. #34
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    I see what you mean, and I might be to blame for that confusion.

    Here are 2 examples. First, the main one that I use. It's the one that I showed you, and you would want to use that from your Ubuntu install.
    It will scan your entire Ubuntu system.
    Code:
    clamscan -v -r --move /tmp/virus /
    Second, to use from a LiveCD. A little different, but not much. It will scan the entire hard drive, but nothing on the LiveCD.
    Code:
    clamscan -v -r --move /tmp/virus /dev/sda
    If you happen to know the Windows partition number, like /dev/sda1, use that.
    Last edited by jayd512; 07-09-2012 at 04:40 AM. Reason: typo
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  5. #35
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    yeah that's it. But i forgot would it be
    Code:
     clamscan -v -r --move /tmp/virus /dev//sda1
    ? or just sda?

  6. #36
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by linuxuser1232 View Post
    yeah that's it. But i forgot would it be
    Code:
     clamscan -v -r --move /tmp/virus /dev/sda1
    ? or just sda?
    Either one will work. But with slightly different end results.
    Scanning /dev/sda will scan the whole thing. If you have 4 OSs installed on sda, they are all getting scanned.
    But scanning /dev/sda1 will only scan that partition. If you have other partitions, they won't be scanned.
    Newer versions of Windows usually have multiple partitions setup (Recovery, system tools and the OS itself). If you only want to scan the Windows system, you'll need to know the partition number.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  7. #37
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    oh yeah i need to use sda1. I think almost always sda1 is your default OS. I apparently have 5. My sda2 is something Extended(no idea) then my sda3 is i dont know. and my sda4 is linux i think and sda5 is linux/swapper.

  8. #38
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    When in doubt:
    Code:
    sudo fdisk -l
    If you want to post your output, we'll see what you have.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  9. #39
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    I know that!! It's just so late that I dont really feel like getting on my computer right now. I really need to get some sleep! haha I'll post the output tomorrow.

  10. #40
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    By the way here is the code that I used to scan with ClamAV:
    Code:
    opend <enter>
    sudo fdisk -l
    
    cd
    mkdir mnt
    sudo mount -t ntfs-3g dev/sda1 mnt
    And here is the code that is to remove the infected files (I forgot this step)
    Code:
     sudo clamscan -irv --remove mnt

Page 4 of 7 FirstFirst 1 2 3 4 5 6 7 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •