If your Windows computer is infected with virus, then you can use Ubuntu Live USB to clean it and recover Windows again.
Supposedly, your computer running Windows became infected and doesn't even start up. If you have an Ubuntu Live USB or CD, you can clean it from the virus and recover Windows.
Generally in this situation you will need one live CD or live USB to bring your computer to life again. The logic of live CD is to provide you with a small bootable operating system that contains an antivirus, with which you will clean your machine.
Obviously you can also use ready-made antivirus CDs with various functionalities like Antivirus live CD based on 4Mlinux or Rescatux based on Debian.
In this guide, we will show you how to clean your computer from infected viruses using a live CD or USB running Ubuntu and using it ClamAV antivirus program.
And of course you can even clean Windows computers, whether or not Ubuntu Live USB uses linux. Let's see how you can clean a Windows computer with such a Cd or USB already in your hands.
Before you begin, make sure you've changed the BIOS settings on your computer to boot from USB or CD first. Now, start by entering the unit Ubuntu Live (USB or CD) drive on the computer and then turning on the power.
Step 1: When the Ubuntu Setup window appears, select 'Try Ubuntu (Try Ubuntu).
Step 2: When Ubuntu runs, open a terminal and use the following command to update the Ubuntu repository.
sudo apt update
Step 3: To install ClamAV antivirus software on Ubuntu, you can use the following command:
sudo apt install clamav
Step 4: After the ClamAV protection software is successfully installed, you need to know the location of your Windows drive to run the scan. You can find the location of your Windows drive by opening Ubuntu File Explore and looking for her.
Step 5: After locating the Windows drive, right-click the Windows drive tab at the top of the table in the Explorer folder and select Properties.
Step 6: When the Properties window opens, take the drive path and letter from here, as you can see in the picture below.
Step 7: Now return to the terminal, look for the Windows drive path, as shown in the following image.
Step 8: You can then start scanning your Windows drive with the following command:
clamscan -r --bell -i WIN_DRIVE_PATH
The previous ClamAV scan command means searching for all infected files and alerting when detected.
After successfully completing the ClamAV scan command, you will receive a summary of the scan process, as you can see in the screenshot above.
Here are some options for scanning ClamAV:
-r - Optionally perform retro scans.
-Exclude = .avi - The option to block a certain type of file, or to skip things like videos or music files.
-Scan-mail = yes / no - Option to include mail files found during system scan.
-remove = yes / no - Option to delete all scanned files or not. Be careful when using this option!
Step 9: To learn more about ClamAV scanning options, use the following command.
clamscan --help
Good luck!!.