Full Guide: How to Recover Virus Infected Files from USB

On this page, you can know something about how to recover virus infected files from USB effectively and quickly.

Zoey

By Zoey / Updated on April 2, 2024

Share this: instagram reddit

Are you faced with the challenge of recovering lost files from a system afflicted by a malicious virus? This comprehensive tutorial presents 3 viable approaches to recover virus infected files from USB. You have the option to retrieve hidden files from a virus-infected USB flash drive by utilizing Attrib commands or employ the MyRecover software specifically designed for USB recovery from virus attacks.

Can You Recover Files from Virus Infected USB?

Have you ever encountered an onslaught of unknown viruses targeting your system? If you have undergone such an unfortunate experience, you are likely aware of the unexpected data loss that can result on hard drives, external drives, memory cards, and USB pen drives due to virus attacks. For individuals unfamiliar with the recovery process of virus-infected files from USB drives, this situation can be incredibly distressing.

However, there's no need to panic! On this page, we will introduce 3 potential solutions to find lost files on USB.

An Overview of Common Virus Types

What are the reasons behind USB drives falling victim to virus infections? The infection of a pen drive typically occurs when a user connects it to a PC that has already been compromised by a virus. Another possible scenario involves the introduction of virus code to the connected drive. This situation arises when a user visits infected websites and downloads files while the pen drive is still connected.

With the AV-TEST Institute reporting the creation of over 350,000 new malware variants on a daily basis, it is practically impossible to provide an exhaustive description of each and every potential malware that one might encounter. Instead, we will focus our attention on the most significant virus classifications and their potential to induce data loss.

  • File-Infecting Viruses: This category of viruses primarily targets executable files, such as those with .exe or .com extensions. Infected executables can render your operating system unstable, leading to disruptive error messages that hinder your workflow. In severe cases, file-infecting viruses can render the entire storage device inaccessible, preventing any access to previously stored files.
  • Macro Viruses: This type of virus is commonly found in Office documents, particularly those created using Word or Excel. Many Office documents support Visual Basic code, which allows cybercriminals to conceal viruses within them. When an infected document is opened, the hidden virus gains access to other parts of the system.
  • Web Scripting Viruses: Web scripting viruses are directly installed from the internet when a user visits a malicious website or downloads an infected file. Such viruses can upload your data to a remote server and subsequently delete it, causing even greater damage.
  • Boot Sector Viruses: Boot sector viruses are directly written to the boot sector, enabling them to execute each time the infected computer starts up. Due to the nature of this virus class, which often blocks access to the operating system, recovering lost files becomes slightly more complex, though not impossible.

How to Recover Virus Infected Files from USB: 3 Ways Here

How to recover virus infected files from USB flash drive? Basically, there are 3 different options for you to recover deleted files from USB drive that is virus infected.

Way 1. Recover Files from Virus-Infected USB Using Command Prompt

When data becomes hidden, inaccessible, or lost as a result of a virus attack on a USB drive, your best course of action is to initially attempt recovery using the Command Prompt (CMD). Given its widespread familiarity and cost-free availability, cmd proves to be an excellent choice. Let's see how to use Command Prompt on your computer to recover files.

1. Connect your USB drive to your computer.

2. Access the start menu, type "cmd" into the search bar, and press enter. Among the list of programs, you will find an entry named "cmd.exe."

3. Click on "cmd.exe" to open the Windows command line interface, where you can commence the recovery of virus-infected files.

4. Type the command "attrib -h -r -s /s /d G:\*.*" and hit enter. (G means the drive letter of your USB drive)

Attrib CMD

Windows will then initiate the search for virus-infected and hidden files on the external hard drive, memory card, or USB drive. After the process is complete, navigate to your disk or card and check if you can now observe all the previously virus-infected files.

Way 2. Format Your Virus Infected USB

The formatting process will only take a few seconds. Once the drive has been formatted, you can utilize the recovery option to retrieve your files. Ensure that you employ an unaffected drive to store the recovered data when using such a tool. Let’s format USB without losing data then.

1. Connect the USB Drive to your computer. Do not open the drive, and simply connect it via the USB port of your PC.

2. Proceed to the Desktop and click on the This PC icon.

3. Right-click on the USB flash drive and choose the "Format" option.

Format Disk

4. Finally, a confirmation prompt will appear for the formatting process. Click on the "Start" option to initiate the formatting of the drive.

Windows Quick Format

Way 3. Recover Virus Infected Files Via a File Recovery Tool

If the 2 methods above can not help you recover virus infected files from USB, the professional file recovery tool MyRecover comes to solve your problem.

MyRecover supports to recover files from USB at a high speed and success rate. No matter your files are virus infected, corrupted, formatted, or deleted, MyRecover can help you get them back in a few clicks.

Main features of MyRecover

  • In addition to USB, many other types of storage devices are supported like SD card, HDD, SSD, etc.
  • Compatible with all versions of Windows operating systems: Windows 11, 10, 8, 7 and Windows Server 2022, 2019, 2016, 2012, etc.
  • Offers comprehensive scanning methods Quick Scan and Deep Scan to scan your USB completely.
  •  

Refer to the simple guideline here, and you can get to know how to retrieve files from virus infected flash drive via MyRecover easily.

Download Software Windows 11/10/8/7/Server
Secure Download

1. Connect your USB flash drive to your computer and hover the mouse over the drive and click Scan to scan.

External Hard Drive Start Scan

2. MyRecover will scan your USB drive with Quick Scan and Deep Scan. You can see all deleted files and missing files here.

External Hard Drive Scanning

3. Choose your virus infected files from USB, and click on Recover x files. Choose a new safe path for your files.

External Hard Drive Recover Files

Final Words

In this article, we have outlined several recovery methods and an experienced file recovery software to assist you in regaining access to files that have been hidden, deleted, or encrypted as a result of virus attacks. Ideally, this will be your final encounter with a virus—or at least the last occurrence of data loss stemming from a virus.

Zoey
Zoey · Editor
Zoey works as an English editor of AOMEI Technology. She provides tech information about backup and restore, mobile data transfer, and so on for AOMEI. She hopes that her articles will be greatly helpful for users. She is fond of music, film, and photography.