Find the answer to your Linux question:
Page 6 of 7 FirstFirst ... 2 3 4 5 6 7 LastLast
Results 51 to 60 of 61
ohh haha trust me im at my distro hopping stage!! My IT friend sort of convinced me to start doing it. I'm just waiting to find a good deal on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #51
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60

    ohh haha trust me im at my distro hopping stage!! My IT friend sort of convinced me to start doing it. I'm just waiting to find a good deal on a really cheap computer to try them out on. The first one i'm gonna try is tiny core.

  2. #52
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    Quote Originally Posted by jayd512 View Post
    Not a bad method. And there is really nothing wrong with doing it that way.



    I use a newer disk for my scans.
    PartedMagic has native support for NTFS systems, so there is no need to mount them in any specific way.
    I should have thought about that last night.
    So here is a possible fix for that.
    Code:
    mkdir mnt
    mkdir /tmp/virus
    sudo mount -t ntfs-3g /dev/sda1 mnt
    sudo clamscan -v -r --move /tmp/virus /mnt
    That way, you're still mounting the NTFS drive properly. But you'll be able to move the files to inspect them afterward.
    you sure it is /mnt at the end and not just mnt? also could you now show me how to locate the file from the live boot disc and then delete it after looking at it? I assume it is ls /tmp/virus but then what?

  3. #53
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    I'm bad with typos sometimes.
    If mkdir mnt is the command, then it would be
    Code:
    sudo clamscan -v -r --move /tmp/virus mnt
    My bad...
    I assume it is ls /tmp/virus but then what?
    That would list the files.
    You can cd into the directory.
    Code:
    cd /tmp/virus
    Then do ls from there.
    Let's say the contents are file1.txt, file2.avi and file3.exe.
    You can do rm to remove them.
    Code:
    rm file1.txt
    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.

  4. $spacer_open
    $spacer_close
  5. #54
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    btw i thought -i was the command to get infected files and i dont see it in that code
    Last edited by linuxuser1232; 07-10-2012 at 05:39 AM.

  6. #55
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by linuxuser1232 View Post
    also i thought -i was the command to get infected files and i dont see it in that code
    -i simply displays the infected file. No moving or deleting. Just shows it to you.
    My opinion is this... I don't wanna just see it. I would rather move it to a place where I can decide what to do with it.


    Since we are in this deep.
    Code:
    man clamscan
    These links might help you out:
    Linux man pages
    LinuxCommand.org: Learn the Linux command line. Write shell scripts.
    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. #56
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    Quote Originally Posted by jayd512 View Post
    -i simply displays the infected file. No moving or deleting. Just shows it to you.
    My opinion is this... I don't wanna just see it. I would rather move it to a place where I can decide what to do with it.


    Since we are in this deep.
    Code:
    man clamscan
    These links might help you out:
    Linux man pages
    LinuxCommand.org: Learn the Linux command line. Write shell scripts.
    Hm ok. We'll I'll try the command that you gave me some time when I have 3-4 hours to spare. haha. Can't wait to see if it works!

  8. #57
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by linuxuser1232 View Post
    Can't wait to see if it works!
    Provided you have the correct mount options (or a newer LiveCD, with native mount properties), it will work a treat.
    It does take time, though, for the full scan. No way around that part of it.
    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. #58
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    Quote Originally Posted by jayd512 View Post
    Provided you have the correct mount options (or a newer LiveCD, with native mount properties), it will work a treat.
    It does take time, though, for the full scan. No way around that part of it.
    Well I actually plan on just using the old cd I got. Also after I complete the scan will the prompt return to its regular screen to allow me to type the last bit of code that moves the infected file?

  10. #59
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    After the scan completes, you will be dropped back to a normal prompt.
    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.

  11. #60
    Just Joined!
    Join Date
    Jun 2012
    Posts
    60
    Quote Originally Posted by jayd512 View Post
    After the scan completes, you will be dropped back to a normal prompt.
    oh ok. Ya i'm running the scan now. I'll tell you how it goes when i'm finished

Page 6 of 7 FirstFirst ... 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
  •