If your USB flash drive is infected with a virus, you can remove the malware safely without losing your files in most cases. This USB virus removal guide from MiniTool Partition Wizard explains how to remove USB viruses and shows you how to recover hidden or missing data caused by malware.

A USB flash drive is widely used for storing, transferring, and backing up data. However, an infected USB drive can put your files at risk by hiding, modifying, or making them inaccessible.

In this guide, MiniTool explains how to identify USB virus symptoms, remove viruses from a USB drive, and recover hidden or lost files caused by malware attacks.

How Do You Know If Your USB Drive Has a Virus

A virus-infected USB drive may show unusual behaviors, such as missing files, shortcut files, or unknown programs. Check the following signs to determine whether your USB drive is infected.

Signs of USB Virus Infection

Possible Cause

Files disappear from the USB drive

Malware hides files or changes file attributes

Files become shortcuts

Shortcut virus replaces original files with fake shortcuts

Unknown .exe files appear

Malware creates malicious executable files

USB drive becomes slow

Background malicious processes are running

Files cannot be opened

Virus damage, file corruption, or encryption

What Happens When a USB Drive Gets Infected

A USB virus usually does not physically damage the USB hardware. Instead, it affects the files stored on the drive or the computer that accesses it. Depending on the type of malware, an infected USB drive may cause the following problems.

What a USB Virus Does

Description

Hide files

Malware hides original files and makes them invisible

Create shortcut files

Shortcut virus replaces files with fake shortcuts

Delete or corrupt files

Viruses may damage, modify, or delete files

Spread malware Infected

USB drives can spread malware to computers

Fix and Avoid Files Copied to a USB Drive Disappear
Fix and Avoid Files Copied to a USB Drive Disappear

How to recover disappeared USB copied files? Here’s a full tutorial for you. Besides, you can avoid this issue occurring again with the guide.

Read More

How to Remove Virus from USB Drive

You can remove viruses from a USB flash drive using Windows built-in security tools, Command Prompt, or third-party antivirus software. This section introduces effective USB virus removal methods.

Method 1: Remove USB Virus via CMD

Command Prompt is an embedded program in Windows 10 that can help you remove viruses from the USB flash drive. It is a free USB virus remover. With Command Prompt, you can delete viruses just with some command lines.

Step 1: Connect the infected USB flash drive to your computer.

Step 2: Run Command Prompt as administrator.

  • Type cmd in the search box.
  • Right-click on Command Prompt under Best match.
  • Click on Run as administrator in the pop-up menu.

run command prompt as administrator

Step 3: In the elevated window, type L and hit Enter. The L stands for the drive letter of your USB flash drive that can be found in the Disk Management or File Explorer.

Step 4: Type dir /w/a and press Enter. By doing so, a list of files inside the USB drive can be opened. You can find any unfamiliar files from the list. Most viruses have names like “svchost.exe”, “Ravmon.exe”, as well as “Autorun.inf” and “Heap41a”.

 
Note: The method to remove different viruses varies. To remove the shortcut virus from USB drive, you can execute the following commands. If the steps below don’t work, replace the autorun.inf with another virus extension or try other methods to remove the USB virus.

Step 5: Type del *.lnk or del autorun.inf and hit Enter.

Step 6: Type attrib -h – r -s  /s /d L:*.* and hit Enter. Likewise, you are also required to replace L with your USB drive letter.

Also read: 2 Ways to Back up Files on USB Drive to Protect Data

Method 2: Run a Virus & Threat Scan

You can run a virus & threat scan via Settings. This is also a Windows-embedded virus cleaner. It is very easy to remove viruses via this tool.

Step 1: Open Settings by pressing Windows and I keys, and then navigate to the Update & Security section.

Step 2: Click on Windows Defender and Open Windows Defender Security Center.

Open Windows Defender Security Center

Step 3: In the next window, click Virus & threat protection.

Virus and threat protection

Step 4: Click the Advanced scan button.

Advanced scan

Step 5: Click on the Custom scan and Scan now options to continue.

Scan now

Step 6: In the prompted window, choose your USB drive and click Select Folder.

Select Folder

Step 7: Then you can view the scan process. You just need to wait patiently until the process ends. After that, follow the on-screen instruction to finish the USB virus removal operation.

view the scan process

Also read: Thumb Drive VS Flash Drive: Compare Them and Make a Choice

Method 3: Run Microsoft Safety Scanner

Microsoft Safety Scanner can also scan USB drive for viruses. It can detect and remove USB viruses including spyware and other potentially unwanted software on your PC. Here’s how to run it.

 
Tip: Microsoft Safety Scanner is SHA-2 signed exclusively since November 2019. To run Safety Scanner, your device must be updated to support SHA-2.

Step 1: Connect USB drive to your PC and then click here to move to the official website of Microsoft Safety Scanner.

Step 2: Click a link based on your computer specs to download Safety Scanner.

download Safety Scanner

Step 3: After the download finishes, open the setup file. Accept the license agreement and click Next.

accep all the terms of the preceding license agreement

Step 4: Click Next.

Click Next

Step 5: In this next window, choose the Customized scan option and click Choose Folder. In the pop-up window, select your USB drive and click Select Folder. Click Next in the Scan type window to begin the process.

choose a Scan type

Step 6: Now, Microsoft Safety Scanner scans your USB drive for the virus.

scan the chosen device

Also read: Get Microsoft Windows USB Troubleshooter to Fix USB Issues

Method 4: Use Third-Party Anti-Virus Software

You can make use of third-party anti-virus software to remove USB virus as well. When you search USB virus removal tool online, you will find a list of programs. Among them, Shortcut Virus Remover, USBFix Free, USB Virus Remover, and Shortcut Virus Fixer are highly recommended.

You can download and install one of these programs on your PC and then scan for USB viruses.

Method 5: Format the Infected USB Flash Drive

Formatting the USB drive can remove all the existing content including personal data, viruses, and malware from the drive. Then you will get a clean and virus-free USB drive. Though the formatting process causes data loss, you can recover files from a formatted hard drive after removing the USB virus.

 
Tip: What does formatting a hard drive do? To obtain more details, please read this post.

MiniTool Partition Wizard can format devices like external hard drive, SD card, and USB flash drive into file systems including FAT32, exFAT, NTFS, EXT2/3/4, or Linux Swap. Download and install MiniTool Partition Wizard, and then follow the steps below to format USB drive.

MiniTool Partition Wizard FreeClick to Download100%Clean & Safe

Step 1: Connect the USB drive to computer.

Step 2: Run MiniTool Partition Wizard to enter its main interface.

Step 3: Right-click on your USB flash drive and click Format.

The MiniTool Partition Wizard interface with the selected Format option.

Step 4: In the elevated window, set partition label, file system, and cluster according to your demands. Then click OK to save the changes you’ve made.

Step 5: Finally, click Apply to execute the operation.

Also read: How to Fix an Unformattable and Unusable USB Drive? Solved

Method 6: Create a BAT File

The shortcut virus in the USB drive can be removed by running the BAT file. How to create and run the BAT file? The following steps will show you how.

Step 1: Insert the USB drive into your PC.

Step 2: Launch Notepad on your computer.

Step 3: Copy and paste the codes below into the Notepad.

 
Note: You should replace H with your USB drive letter.

@echo off
attrib -h -s -r -a /s /d H:*.*
attrib -h -s -r -a /s /d H:*.*
attrib -h -s -r -a /s /d H:*.*
@echo complete

Step 4: Save the file with an appropriate name and end the file text with .bat.

Step 5: Double-click the .bat file on the desktop and wait for the finish of the process. Now, the shortcut virus on your USB drive should be removed.

Method 7: Delete Suspicious Keys via Registry Editor

Deleting suspicious keys can also remove USB viruses. Here’s how to do that.

Step 1: Press Windows and R keys to open the Run window, and then input regedit and hit Enter.

open registry editor

Step 2: In the Registry Editor window, navigate to the destination by following the path below.

HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Run

Step 3: Move to the right side of the window and find suspicious keys like odwcamszas, WXXKYz, ZGFYszaas, and OUzzckky from the list.

Step 4: Right-click on the suspicious key and choose the Delete option in the pop-up menu.

click Delete

Recover Missing Data from a Virus-Infected USB Drive

A USB virus may hide files, change file attributes, or make data inaccessible instead of permanently deleting them. If files are missing after virus removal or USB formatting, you may still be able to recover them.

Stop using the USB drive before recovery to avoid overwriting lost data. A data recovery tool (MiniTool Partition Wizard) can scan the drive and restore recoverable files.

MiniTool Partition Wizard DemoClick to Download100%Clean & Safe

Step 1: After connecting USB flash drive to your computer, launch MiniTool Partition Wizard. Click on Data Recovery on the top bar.

The MiniTool Partition Wizard interface with the selected Data Recovery option.

Step 2: In the next window, choose the connected USB drive under the Hard Disk section and click Scan.

The Data Recovery interface with the selected Scan option.

Step 3: You can view the scan process in this window. After the process ends, click the Show Lost Files tab and choose the files you want to recover. Then, click the Save button to go on.

Step 4: You are required to choose a destination for the recovered data. After that, click OK to save changes. Then follow the prompted instruction to finish the operation.

 
Warning: You’d better not save the recovered data on the original drive. Otherwise, the lost data could be overwritten.
The Select a directory to save files interface with the selected OK option.

Also read: How Long Does Data Last on a USB/SD Card and How to Protect Data

Tips for Preventing Virus from the USB Drive

To keep USB drive from viruses and protect data in the device, you need to take some measures. Several tips on stopping virus from the USB drive are summarized as follows.

  • Write-protect the USB flash drive: A write protecting USB drive indicates that no data can be written to the drive. You can only view files in the drive. You need to note that not all the USB drives have a physical write-protect switch.
  • Keep only one antivirus program: As multiple antivirus tools consume many resources, compete over the virus, kill each other, and even cause performance issues, you are recommended to keep only one USB virus cleaner.
  • Be alert to the unknown websites: You may get a USB drive virus from the Internet or from sharing files and from other PCs. Besides, your USB drive can be infected because you click on random links online or download files from dubious websites.
  • Make a backup of USB files: Last but not the least, back up the files in your USB drive to other places.

If you are seeking for a USB virus removal guide, this post is what you need. It illustrates how to remove USB viruses via several USB virus removers. Additionally, it also shows you how to recover data after the USB virus is removed. Click to tweet

Conclusion

This USB virus removal guide mainly illustrates how to remove USB viruses, recover missing data due to virus attack, and prevent virus from the USB drive. If you don’t know how to get rid of virus from the USB, this full tutorial is strongly recommended.

For any thoughts on USB virus removal, please share with us in the following comment area. You can directly contact us by sending an email via [email protected] if you encounter any issues while using the MiniTool software.

USB virus Removal FAQ

Can a USB have a virus?
The answer is for sure. If you plug a USB drive into an infected computer, it will have viruses too. In addition, the drive will spread the virus onto other PCs if the AutoRun-type feature is enabled on these devices.
Can a virus disable USB ports?
Yes, the USB ports can be disabled by a virus. While the USB port hardware will not physically be damaged or changed by the virus, the computer’s ability to use USB ports could be affected. Virus-infected drivers may have issues or stop working. Fortunately, if the drivers are restored to a virus-free state, the USB ports will work again.
Does formatting a USB remove viruses?
Yes, viruses in the USB drive will be removed by formatting. As you know, formatting USB drive will delete all the existing content in the device like personal data, viruses, or malware.
How to remove virus from USB drive without deleting files?

You can remove virus from USB drive without deleting files with the following methods.

  1. Use CMD to remove shortcut virus.
  2. Create BAT file.
  3. Tweak registry files.
  4. Make use of anti-virus software.
  • linkedin
  • reddit