> How to > File Recovery > Recover Files from a Virus Infected Hard Drive, Memory Card and USB Drive

Recover Files from a Virus Infected Hard Drive, Memory Card and USB Drive

Updated on Mar 09, 2018 by Abby Haines to File Recovery

Summary

Here we will share with you two possible virus file recovery solutions: recover virus infected files using CMD or a professional data recovery software. Note that EaseUS Data Recovery Wizard is capable of retrieving files only when they were deleted or hidden by virus. You can have a try.

Have you ever attacked by one or more unknown virus? If you have such an experience, you may know that a virus attack can result in unexpected data loss on a hard drive, a memory card or a USB drive. For users who have no idea on how to recover virus infected files, it can be a real disaster! But it doesn't matter! On this page, we will introduce to you two possible solutions for virus infected file recovery: recover virus infected files using CMD and recover virus infected files with a professional data recovery software.  

Solution 1. Use CMD to recover files from a virus infected storage media 

When your data is lost or inaccessible due to a virus attack, you can try CMD first to recover virus infected files. Since it is free and easy, this would definitely be your first choice. Now let's see how this works. (I will be using Windows 7 for this demonstration)

1. Plug in your hard drive, memory card or USB drive to your computer

2. Go to the start menu, type in "cmd" in a search bar, hit enter and then you can see something named "cmd.exe" under a list of programs.

Use CMD to recover files from virus infected storage media step 1

3. Right-click "cmd. exe" and then you will receive a Windows command that allows you to recover virus infected files.

Type: chkdsk E: /f and hit Enter. (Replace E: with the drive letter of your device where you lost or deleted files.)
Type: Y and hit Enter.
Type E: again and hit Enter. (Replace E: with the drive letter of your device where you lost or deleted files.)
Type: attrib -h -r -s /s /d *.* and hit Enter.  

After all these steps, Windows will start to repair the virus infected hard drive, memory card or USB drive. It usually needs one or two more minutes. Please wait patiently. After the repairing process is finished, you can go to your drive or card to check if you can see all of the virus infected files. If you successfully recover data from USB, memory card or hard drive which is infected with virus, congratulations! But if not, please don't despair. You have another option. Just try a third-party data recovery software!

Solution 2. Use EaseUS data recovery software to recover virus infected files

When you failing to manage virus file recovery using CMD, EaseUS hard drive data recovery software becomes another nice alternative solution. The program is a professional recovery software for all storage devices. With its powerful file recovery capacity, it can effectively recover deleted, corrupted or hidden files from virus infected hard drives, memory cards or USB drives. This virus file recovery process is extremely easy! You just need to answer these two questions and the program will do the rest for you. For a step-by-step tutorial, please refer to EaseUS data recovery software user guide.

Use EaseUS data recovery software to recover virus infected files