post #1 of 1
Thread Starter 
Hello again, StupidMonkey back with an update to the old How to remove a virus in Windows using Linux

After going though my old steps using some new Linux OS's, and testing it against some newer Windows OS's, it would seem there needs to be an update to make sure this all keeps working for everyone! So here goes!

The StupidMonkey ain't so smart but he knows even a caveman can remove viruses using this guide, version 2

Since I explained most of everything in the 1st version, I recommend you read that 1st if you've never done this, then before attempting go to this one and follow the steps here!

Download the latest version of Ubuntu, I recommend you get the LTS version for 100% stability though this processes. I use Distrowatch.com to make sure I have the latest link to their site. The OS list is down a ways on the right.

Burn the Ubuntu OS's .ISO you downloaded to a CD or DVD, or for a netbook or something without a CD/DVD/Bluray drive, use the program UNETBOOTIN and make your Thumbdrive the place for your .ISO

Put the disk or usb drive into the virus infected Windows computer and start the computer. As it starts, enter BIOS and set it to boot from the CD or USB drive 1st. Save and boot.

As it starts, you'll get a window that says TRY or INSTALL. Click TRY, as you don't want to remove windows. It takes a minute or two, but it will boot into a desktop that is completely from that CD or USB that you used. Nothing has been installed or changed on your computer.

It will respond kind of laggy as it has to keep reading info from the cd or usb for everything, but when the desktop is all loaded, click on the top left options until you find "TERMINAL", then click that, then do the same and find "80 GB Filesystem" (which is your windows drive, yours may be bigger...) then click that (now there should be an icon for it on the desktop and a window should be open showing the files).

Then at the top right, make sure you've connected to the internet. Wireless usually works right away with Ubuntu.

Once terminal is open, type the following codes I've posted up for you here:
Code:
sudo passwd root
It asks for a password and reentering a password, make it short and easy as you'll only need it once here shortly then not again.
Code:
su root
type password you just made
Code:
apt-get update
If Y or N comes up at any point from here on, press Y then ENTER
Code:
apt-get install clamav
Code:
freshclam
It might say it's outdated, but it does not matter, moving on.
Code:
cd /media

For Windows XP, 7, 8. DO NOT USE ON VISTA... because on Vista it kills your wireless drivers and thats a lot more steps to get it back later.
Code:
clamscan -r --remove -l /var/log/clam

But if you have the dreaded Vista, use this, then later you have to check the log and remove viruses individually as to not kill your wireless drivers.
Code:
clamscan -r -l /var/log/clam

^^on both versions of this, all the letters are lowercase of CLAMSCAN -R -L and so on.

Now its scanning. if you want, you can turn off the screen saver 1st before starting any of this, or do it now while its scanning. The default power options make this stop scanning when the screen saver comes on or it turns the screen off. If you don't mind sitting there, then just touch the mouse every now and then.

When its done, it will tell you how many viruses it found and if you used the XP,7,8 version it will also tell you how many it removed.

That wasn't so hard was it? You're welcome biggrin.gif

Now, click the top right i/O button, restart. It will tell you to remove the disk then hit enter. Now you'll reboot into your virus free Windows! Enjoy!
Edited by StupidMonkey - 2/28/13 at 1:44pm
    
CPUMotherboardGraphicsRAM
AVC PENTIUM 4 DUAL CORE HSF Z9H741K011 EVGA 680i SLI 2x NVIDIA GEFORCE 8800GT 512MB PCI-E REV 1 (SLI) 4x WM552/XG691 HYNIX 1GB DDR2 PC2-6400 JEDEC STD 
Hard DriveOptical DriveOSMonitor
2x SEAGATE HDD 250GB SATA 7200RPM 16MB (Raid0) LG 20X DUAL-LAYER DVD RE-WRITER NON-LIG XP-MCE/Mint 11 KDE 50 inch Samsung DLP HDTV 
KeyboardPowerCaseMouse
MS Wireless BT 7000 1 KILOWATT OEM ATX PSU FULL-TOWER BLUE CASE 2.0B MS Wireless Laser BT 8000 
Mouse Pad
Alienware Big Head 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AVC PENTIUM 4 DUAL CORE HSF Z9H741K011 EVGA 680i SLI 2x NVIDIA GEFORCE 8800GT 512MB PCI-E REV 1 (SLI) 4x WM552/XG691 HYNIX 1GB DDR2 PC2-6400 JEDEC STD 
Hard DriveOptical DriveOSMonitor
2x SEAGATE HDD 250GB SATA 7200RPM 16MB (Raid0) LG 20X DUAL-LAYER DVD RE-WRITER NON-LIG XP-MCE/Mint 11 KDE 50 inch Samsung DLP HDTV 
KeyboardPowerCaseMouse
MS Wireless BT 7000 1 KILOWATT OEM ATX PSU FULL-TOWER BLUE CASE 2.0B MS Wireless Laser BT 8000 
Mouse Pad
Alienware Big Head 
  hide details  
Reply