Removing the Virus from a Windows PC with a Ubuntu Live USB drive

Is your Windows PC infected with the virus, and you are not even able to boot it? If you have an Ubuntu Live USB or CD drive lying around, you can use it to clean your Windows PC and try recovering Windows.

Every Microsoft Windows user knows how vulnerable is the operating system for malware and virus. If your Windows PC is infected with a virus, there are a couple of ways to clean up the PC.

If Windows is bootable, you at least got a chance to launch your favorite Antivirus program and start cleaning it. But, what if the virus infection is so severe that Windows is not able to boot? Indeed, it doesn’t sound right as your complete private data is at stake.

In this tutorial, we are going to show you how to clean your Windows machine from infected viruses using an Ubuntu live USB or CD and the ClamAV antivirus. The ClamAV is a free, open-source antivirus that can be used on Ubuntu.

If you have an Ubuntu Live USB or CD drive lying around, you can use it to clean your Windows PC. In case you don’t have it, you can create one using the link How to create a Ubuntu Live USB drive.

Removing Virus from Windows PC using Ubuntu Live USB drive

Before starting, you have to make sure that you have changed your machine BIOS settings to boot from USB or CD first. Now let’s begin by inserting your Ubuntu Live drive (USB or CD) in your computer then power it on.

Step 1. When the Ubuntu Install window appears, choose the “Try Ubuntu” option.

Try Ubuntu From The Live Ubuntu USB
Try Ubuntu From The Live Ubuntu USB

Step 2. When the live Ubuntu session starts successfully, open the terminal and use the following command to update the Ubuntu repository.

sudo apt update

First Update Ubuntu Repository
First Update Ubuntu Repository

Step 3. To install the ClamAV antivirus on Ubuntu, you can use the following command.

Install ClamAv Antivirus Package
Install ClamAV Antivirus Package

Step 4. After the ClamAV antivirus installed successfully, you need to know the location of the Windows drive you intend to perform the scan on. You can find the location of your Windows drive by opening the Ubuntu file explorer and search for your Windows drive.

Open Ubuntu File Explorer
Open Ubuntu File Explorer

Step 5. After locating your Windows drive, right-click on the Windows drive tab from the top panel in the file explorer and choose the Properties option.

Open Windows Partition Properties
Open Windows Partition Properties

Step 6. When the properties window opens successfully, get the path and the name of your Windows drive, as you can see in the below screenshot.

Get The Path And Name Of Windows Partition
Get The Path And Name Of Windows Partition

Step 7. Now get back to your terminal, search for the Windows drive path, as shown in the below screenshot.

Locate The Windows Partition In Your Terminal
Locate The Windows Partition In Your Terminal

Step 8. Next, you can start scanning your Windows drive using the ClamAV scan command.

clamscan -r --bell -i WIN_DRIVE_PATH

The previous ClamAV scan command means to search for all the infected files and ring a bell once found.

Scan Downloads Directory In The Windows Partition
Scan Downloads Directory In The Windows Partition

After the ClamAV scan command finishes successfully, you will get a scan summary, as you can see in the above screenshot.

Here are some ClamAV scan command options:

  • -r –> option is to perform a recursive scan.
  • –exclude=.avi –> option is to exclude a set pattern to skip things like videos or music files.
  • –scan-mail=yes/no –> option is to include mail files which are found in system scan.
  • –remove=yes/no — > option is to delete all the infected scanned files, yes or no. Be careful using this option.

Step 9. To know more about the ClamAV scan options, use the next command.

clamscan --help

The ClamAV Help Command
The ClamAV Help Command

I hope you enjoyed cleaning your Windows system with the Ubuntu Live USB drive.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,520FansLike
366FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to setup FTP Server on CentOS

You are allowed to use any one of the FTP servers as you like. However, in this tutorial, we will be installing and using vsftpd, short for Very Secure FTP Daemon. It is a fast, stable, and secure FTP server that will help you transfer files to and from a remote system in a jiffy.

CentOS Vs. Ubuntu Server : Everything You Need to Know

Choosing the perfect Linux distribution to set up your server can be confusing since Linux provides a limitless number of options. The main reason behind these many distributions is because Linux is an opensource platform. Anybody with the required skills can contribute to the development or build and release their distribution. Currently, there are more than 600 Linux Desktop and Server distributions in the market.

Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

10+ Best Python IDEs for Linux

Python programming language is applied in so many areas of computer technology, i.e., Scripting, GUI development, Website development, Artificial Intelligence (AI), Machine Learning, Data Science, Computer Networking, and Network Automation, and Cyber Security.

15 Tar command in Linux uses with examples

Tar is a famous utility that is basically used for collecting multiple files in a single archive. This file is often called a 'tarball'. Today, we are going to tell you about the different things you can do with tarballs using the tar command, with practical examples.

Ubuntu 19.10 (Eoan Ermine) Beta Installation and Overview

It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.

Best Laptops for Linux and Apps Development [2020]

Apart from your programming skills, there are a few other things that can also influence the way you code, and one of them is your computer system for sure. Even though it isn't like you can't code on a regular PC or laptop, speaking from personal experience, you can make the most out of your programming skillset by going for a computer with high specs and one that's been specially designed for such tasks.