Table of Content
    Windows Data Recovery- Professional

    How to Perform File Recovery on Virus-Infected Hard Drive? [Updated]


    Table of Content

      Summary: Virus-infected hard drives and other storage media could seem like a lost cause. However, there are ways to recover data from them and make the drives usable again. In this post, we will discuss methods for recovering files missing or lost from a virus infected hard drive. We will also be using a professional data recovery software for performing swift data recovery in such a case.

      Free Download Windows Free Download100% secure

      Computer virus is a broad term that could fit in a variety of virus-types ranging from worms to Trojans to ransomware, and more. Viruses are one of the biggest reasons behind data loss. Since the early days of computers and networking, viruses are known for infecting the host device and corrupting the data on it. We all have encountered virus-infected hard drives and USB drives that made us lose our files and data. However, affected users should not worry as they can still recover their files from a virus-infected storage drive. There are many methods which you can employ to perform file recovery on a virus-infected storage drive. Let’s read further to know more.

      How do Viruses Infect Storage Devices?

      Before moving onto the methods of file recovery from a virus-infected hard drive, let’s understand how do viruses make their way onto your hard drive or USB sticks? Listed below are some of the common reasons –

      • Browsing and visiting unsafe websites
      • Downloading files from unknown sources
      • Opening email attachments from unreliable sources
      • Connecting your system to an unreliable network

      NoteIf you notice that your hard drive or USB drive is not showing any data or there are shortcuts instead of files, stop using the drive immediately to avoid data overwriting.

      How to Recover Files from a Virus-Infected Hard Drive?

      Now that we have a basic understanding of how these viruses infect storage devices and infect files on them, let’s look at two ways to recover files from a virus-infected hard drive. We would be using these methods in the order as mentioned ahead.

      Method 1 – Use CMD to Recover Files from a Virus Infected Hard Drive

      In this method, we would be using CMD to recover files from our virus infected hard drive or USB drive. Using the attrib command in Command Prompt (admin) can help you recover the hidden files from your virus-infected drive. This command makes all the read-only, archived, system and hidden files to display in the Command Prompt. Plug in the infected hard drive or USB drive into your computer and follow the aforementioned steps –

      • Search for CMD in the Search Bar and click on Run as administrator.
      • Type the following command in the terminal – attrib -h -r -s /s /d *.*
      • Press Enter.

      Wait for the command to run and allow Windows to repair the virus-infected drive. After the repair process is complete, navigate to your drive and check if all of the files are visible and back to normal state.

      Method 2 – Use a Professional Data Recovery Software

      If you were unable to recover data from virus-infected hard drive using CMD, you can use a professional data recovery software like Stellar Data Recovery Professional. This professional data recovery software can recover data from various virus-infected storage media. It can also recover lost data in various data loss scenarios like deletion, formation, drive crash, data corruption, and more.

      If your virus-infected storage drive is either unrecognized by Windows, it could have become a RAW drive. Stellar Data Recovery Professional can easily perform RAW drive recovery and restore files and data from virus-infected storage drives. The software can also recover inaccessible data from a RAW drive (i.e. a drive with unrecognized, damaged, or no file system).

      Follow the below-mentioned steps to perform RAW drive recovery using Stellar Data Recovery Professional –

      • Connect your virus infected storage media with your computer.
      • Download, install, and Launch Stellar Data recovery professional.
      • Choose the type of data you wish to recover and click Next.
      recover files from a virus infected hard drive using WDR professional
      • On the next screen, select Can’t Find Drive listed under Connected Drives and click Scan.
      Select the virus infected hard drive to recover data
      • Select the RAW hard drive from the Select Drive list and click on Search.
      select RAW hard drive
      • The software will scan the physical drive and will show the partitions in it. Select the partition from where you wish to recover data and click on Scan.

      NoteYou can also perform an Extensive Partition Search if you are not able to see the desired drive partition/volume.

      Select hard drive partition to recover data
      • The software will show a preview all the files that can be recovered. You can preview them by clicking on the Preview button.
      Recover your files from virus infected hard drive
      • If satisfied with the results, click on Recover and restore the data onto an another external drive.

      NoteIf you were unable to find the required files using the normal Scan functionality, you can perform Deep Scan. During this, the software does a thorough check of each sector of the drive and tries to find every possible byte of data that can be recovered.

      Once you recover all the data from your virus-infected storage drive, run an anti-malware scan using Windows Defender. Once done with the virus scan, format the drive to remove any traces of virus.

      Conclusion

      It is quite common for a drive to become virus-infected. In order to avoid loss of data from a virus-infected hard drive, you need to act immediately. If you have a virus-infected hard drive or any storage media with data in it, you can employ the methods mentioned in the post and recover your files safely. We hope this guide will help you get your precious data back from a virus-infected hard drive or any other storage media.

      FAQs

      How do I recover files from a virus-infected external hard drive?

      You can use the attrib command and a reliable data recovery software like Stellar Data Recovery Professional for recovering data from a virus-infected hard drive.

      Can a virus cause hard drive failure?

      While a virus alone cannot damage the hard drive, it can for sure corrupt the data present on it and make it inaccessible or even render it useless.

      Can virus delete files from hard drive?

      Yes, some advanced viruses can destroy data present on a hard drive.

      Was this article helpful?

      No NO

      About The Author

      Keshav Katyal

      A passionate writer, driven by his interest in everything tech, Keshav Katyal has always been captivated by the latest gadgets since childhood. His interest in gadgets grew when he got his first gaming console, the Nintendo Game Boy Advanced. Hours and days of tinkering with gadgets encouraged the inner geek in him who now loves writing about the latest technologies.

      6 comments

      1. I have windows 8 and most of my files turned into shortcuts. I am not able to fix it. I applied the command you mentioned in this blog but did not work in my case. Now what to do next?

        1. If this command did not work in your case, try a stellar data recovery professional and perform the RAW drive recovery operation. The software helps recover inaccessible data from a RAW drive i.e. a drive with unrecognized, damaged, or no file system.

      2. Hello, I have my USB drive which got infected by the virus. I would like to use stellar data recovery. Is it paid or free?

        1. Hello James,
          If you want to recover data up to one GB so you can try our Stellar Data Recovery Free edition. But if the volume of your data exceeds one GB so you need to buy our paid version. Thanks

      3. Hello,
        I had my PC infected with the virus, so every Pendrive I plugged into it was being infected with it. I cleaned my PC with antivirus and my pendrive with the steps you showed. Thank you so much!

      Leave a comment

      Your email address will not be published. Required fields are marked *

      Image Captcha
      Refresh Image Captcha

      Enter Captcha Here :

      Related Posts

      WHY STELLAR® IS GLOBAL LEADER

      Why Choose Stellar?

      • 0M+

        Customers

      • 0+

        Years of Excellence

      • 0+

        R&D Engineers

      • 0+

        Countries

      • 0+

        PARTNERS

      • 0+

        Awards Received