How to Recover Files from a Virus-Infected USB Drive

How to Recover Files from the Virus Infected USB Drive

The USB drive got virus infected and data got lost. On this page, we will show you the best way to recover lost files from the virus infected USB flash drive with Recoverit Data Recovery software.

Wondershare Recoverit Authors

Dec 21, 2020 • Filed to: USB Recovery • Proven solutions


How can I Recover my Deleted Files from viruses?

"My USB flash drive was attacked by a virus last night. Most of the files on the drive, my photos and videos were deleted. I need to get them back but how? Any solution to help me recover deleted files from virus-infected USB flash drive."

The USB flash drive can easily infect by a virus and caused the files to get deleted or corrupted, also the virus will damage the USB flash drive. But don't worry, on the following we will show you the best way to help you recover files from virus attack USB flash drives.

What to Do When the Device got Virus Attacked.

After the virus attack and got files lost, you should not save any new data on the drive. The first important thing is to get anti-virus software to scan the USB flash drive to clean and remove the virus. The anti-virus software such as Norton, Avast, Quick Heal, AVG, McAfee, etc. After removing the virus and follow the guide to get your data back.

Use CMD to Recover Files from Virus Infected USB Drive

On the following solution, you can try to recover deleted files from virus-infected USB without software. When the data lost or inaccessible on the drive due to virus attack, first you can try to use the Command Prompt (cmd) to recover virus-infected files.

  • Step 1. Plug the USB device and wait for the system to detect it.
  • Step 2. Press Win + R to launch the Run window. On the box, type in cmd and hit Enter on your keyboard.
  • Step 3. On the command line, type chkdsk D: /f and press the Enter key. D is the hard drive letter of the drive you want to recover, and you can replace it with the corresponding drive letter of the USB drive that needs recovering.
  • Step 4. Type Y on the next line and press Enter key.
  • Step 5. Type D (or the correct drive letter for the USB drive) and hit Enter again.
  • Step 6. Key in this command: D:\>attrib -h -r -s /s /d*.* and press the Enter key. Again, replace D with the right drive letter of the device.

  • Step 7. Wait for a moment until the system completes the command. Proceed to File Explorer and check if a new folder is created in the USB drive, which could contain the recovered files.

Recover Deleted Files after Virus Attack using Recoverit Data Recovery

If the cmd solution failed to retrieve your deleted files back, or the steps are more complicated for you. You can follow the next solution to recover files from virus-infected USB flash drive with Recoverit Data Recovery software. It is a professional USB flash drive recovery program that can easily help you recover deleted files from infected USB drive.

Steps on How to Recover Deleted Files from Virus Infected USB Flash Drive

Download and install Recoverit Data Recovery on your computer, connect the infected USB flash drive to the PC. Follow the next steps to perform USB drive data recovery on Windows computer.

Step 1. With Recoverit Data Recovery software on the computer, select the "External Devices Recovery" mode to get started.

Step 2. Make sure the drive detected on PC, select it, and click Next to proceed.

Step 3. The USB drive recovery will start scanning the drive to search your files, it will take for a while to scanning the drive.

Step 4. The software supports to preview some recovered photos, select your files, and retrieve back by clicking "Recover" button.

Note: Get a safe storage device to save all recovered files, in case the data files get lost or infected again.

Recoverit Data Recovery software can easily get the virus-infected deleted files back, also it can recover deleted files from SD memory cards, external hard drives, cameras, and mobile phones. Download it as below and get your data back.

Video Tutorial on USB Flash Drive Recovery

Recoverit author

Sue Wayne

staff Editor

(Click to rate this post)

Generally rated4.5(105participated)

Home > Resources > USB Recovery > How to Recover Files from the Virus Infected USB Drive