Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
    
(an ideal answer would give instructions on how to run/install an AV, and also show benchmarks as to its quality as an AV) – josinalvo Mar 23 at 19:46
    
As your title mentions only Ubuntu, I decided to post my answer as a comment. You can scan and clean your Windows partition with Kaspersky antivirus. There exists absolutely free Rescue Disk in ISO format. It is some Linux-based distribution with KDE. Burn it to DVD, boot from it, start the program from the shortcut, update the bases, select the desired partition and run. It is powerful and fully functional. Here's the link. There you can also find some detailed info. If it will do, I'll write a separate answer. – whtyger Mar 27 at 15:50
    
@whtyger add it as an answer since it's solves the same problem only with a different approach than what I thought of. btw, you actually still use DVD? why not a USB? – Alvar Mar 27 at 21:43
    
@whtyger best answer so far. Make it an answer! It will get upvotes, and might get the bounty – josinalvo Mar 27 at 22:15
    
Because DVDs aren't as easy to lose, nor are thy as expensive. – Daniel Mar 30 at 15:06

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

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
1  
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
2  
You can find the Avast .deb file here: link – itnet7 Jun 30 '13 at 23:39
5  
Link is dead now – Ludenticus Aug 25 '15 at 4:24

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

share|improve this answer

Did you already try ClamavInstall Clamav?

sudo apt-get install clamav
share|improve this answer
    
he is asking about how to scan ?, You told about installation what the problem ?. I can't. – mahendra Mar 30 at 7:32

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 '14 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

Though my way of solving such problems isn't related to Ubuntu, it still may be valuable.
One of the best antiviruses - Kaspersky Anti-Virus - provides a method to cure severely infected installations of Windows. They provide Rescue Disk in ISO format and it is absolutely free. It is powerful and fully functional. It is based on Gentoo distribution with KDE. You can burn it to DVD or make a bootable USB.

Boot from it (it can be run in grahical and text modes). There are several shortcuts on the desktop. Run "Kaspersky Rescue Disk", update the virus definitions, because they are old (you will need to setup Internet connection). Select the objects you wish to scan (boot sector, start-up objects, partitions) and press "Start Objects Scan" button.

This ISO can be downloaded here: https://support.kaspersky.com/viruses/rescuedisk.
On the same page you will find several guides: how to burn disk, how to use the product. These guides are detailed and pretty explanatory so I decided not to duplicate them here. Also there you can find some info regarding UEFI.

share|improve this answer

Avira also offers a rescue cd, which can be downloaded here: http://www.avira.com/en/download/product/avira-rescue-system. It is a standalone live CD. Just boot it, update the signature files, and run it. You can also install clamAV and scan your windows partitions with it if you can mount them under Ubuntu. This should be relatively safe, as it is very unlikely that you have a cross-platform virus on your windows partitions. However, it is not entirely impossible, so using a live cd is the safer option here!

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.