Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I think I might have a virus on my windows partition and I want to scan it from Ubuntu. Is this possible? I would like a program that is free.

clamAV
I tried clamAV but I couldn't find a setting for scaning my other partition that I have windows on, it scaned my Ubuntu disk and that was fine.

Antivirus Within Windows
I can't use my Windows partition since the virus make my laptop freeze every time I log in. And I don't want it to spread or make more damage than it might have done already.

share|improve this question

7 Answers 7

up vote 12 down vote accepted

It is possible to scan your windows partition. I recommend you do it off a live CD (32 bit).

Download and install Avast! Linux Home Edition.

Launch Avast and update its Database.

Now mount your Windows Partition.

Click on Selected folders and browse to your partition.

enter image description here

Click start scan.

enter image description here

share|improve this answer
    
This is the way to go if you want to use Ubuntu; use something like Avast, or AVG Free, etc. instead of ClamAV to scan desktop systems. –  izx Jul 24 '12 at 15:46
    
I'm scaning the windows partition now, it didn't show up in the list so I just had to put in the address manually. Thanks, hope it works now! :) –  Alvar Jul 24 '12 at 17:50
    
It found a virus in an winRAR folder so I guess that's good new, thanks! :) –  Alvar Jul 24 '12 at 20:09
    
I can't seem to find the linux version. Is it no longer available? –  ford Mar 15 '13 at 15:40
1  
You can find the Avast .deb file here: link –  itnet7 Jun 30 '13 at 23:39

There is lots of bootable anti virus disks you can use, I would recommend AVG Free. AVG has over 110 million user. It provides antivirus protection for Linux/FreeBSD for free.

AVG Free is a version of the AVG antivirus which is free for private and non-commercial use. There is no graphical interface available for the current Linux versions of AVG.1

To download Click here.

Once you install, reboot the PC to initialize AVG. Alternatively you could run

sudo /etc/init.d/avgd start  

To start using AVG, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below

sudo avgupdate

Read more

However I would suggest that you run an up to date anti-virus scanner from within your windows partition. Or you can use Bitdefender. Boot CD available here

For the top 5 Anti virus for ubuntu. See here

1Source:Ubuntu Documentations

share|improve this answer
    
updated my question –  Alvar Jul 24 '12 at 17:40
    
I Wish that you've update sooner :) –  Mitch Jul 24 '12 at 21:35
    
well I only wanted an anitvirus to scan my windows from within Ubuntu, why didn't you give me that as an answer? –  Alvar Jul 24 '12 at 22:47
    
@Alvar I appreciate your courtesy, and I thank you. –  Mitch Jul 25 '12 at 7:16
    
well I didn't want to run a program form within windows since the virus was active and it froze my laptop on every boot. So using a antivirus program form within Windows was inpossible. didn't you read my question? –  Alvar Jul 25 '12 at 16:40

Did you already try ClamavInstall Clamav?

sudo apt-get install clamav
share|improve this answer

Install ClamTk - that is a graphical frontend for ClamAV, the command line antivirus mentioned here.

share|improve this answer

You said you didn't find a setting within clamAV to scan other partitions. What about:

sudo clamscan -r --move=/tmp/virus /mnt/windows-partition

to show only infected files add the -iswitch Perhaps you should do a sudo freshclam before scanning to update your virus definitions.

share|improve this answer
3  
How did you find this very long and complicated command? And why isn't there a GUI on the application, it's just bad for a Desktop application. –  Alvar Sep 28 '12 at 15:38

Avast now supports Linux based servers only. I had a response from Avast support to similar query. The only commercial package available at http://www.avast.com/linux-server-antivirus

share|improve this answer
    
Hi and welcome to Ask Ubuntu. Recommendations of proprietary/closed source/non-free/commercial solutions are treated as spam/advertisements unless there is a free (as in beer) version also available. Please take a few moments to visit the help center and review the information there to get acquainted to the basic rules. –  hmayag Jun 3 at 6:50

clamscan works for Ubuntu home as default. It can be made to scan other partitions, including windows partitions, provided you define the path properly.

I tried in the terminal:

sudo clamscan -r --move=/tmp/virus /mnt/windows-partition

The first error was about /tmp/virus. There was no such directory in my system. So I had to create it.

Then again there was an error for /mnt/windows-partition:

/mnt/windows-partition: No such file or directory
WARNING: /mnt/windows-partition: Can't access file

Workaround

The path can be found by double right clicking on the Windows partition on the left menu. Then, on the left pane, if you hover the cursor the path details are shown. Else right click on the Windows partition, left click on "Properties", then you will find in the Basic Menu "Location: /media/"volume_name" (without quotes. This will be after Name, Type, Contents) and add the "Name" of the partition on top, such as:

/media/"volume_name"/2ABC123903A129B4A

("Name_of_partition". 16 digits in my case)

I tried the following clamscan command and it worked:

sudo clamscan -r --move=/tmp/virus /media/"volume_name"/2ABC123903A129B4A

I had "Flash Pro" malware, which was choking my internet browsing both in Windows 8.1 and Ubuntu 14.04 LTS 64 bit version.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.