How to remove viruses from flash drive

Author: Laura McKinney
Date Of Creation: 1 August 2021
Update Date: 1 July 2024
Anonim
Clean and Stop USB Flash Drive from Virus 👉 WITHOUT Losing Your FIles 👍EASY to follow Tutorial 👍
Video: Clean and Stop USB Flash Drive from Virus 👉 WITHOUT Losing Your FIles 👍EASY to follow Tutorial 👍

Content

Because of their portability, USB devices are easy means of spreading viruses. USB devices are vulnerable to two main types of viruses: shortcut virus and autorun virus. In this article, we will discuss how to remove a virus with an anti-malware program or enter a command yourself. Find out what Windows is taking to protect your computer from autorun viruses.

Steps

Method 1 of 2: Remove shortcut creation virus

  1. Learn how to create shortcut viruses. The shortcut virus has 2 forms. Type 1 is a virus that replaces folders and files on your computer with a shortcut icon — an icon with an arrow in the lower left corner, and with the word "shortcut" in its name, and / or an extension. "Shortcut.exe". Type 2 is a virus that affects the USB or pen drive (portable hard drive). This type of virus will put all files in the USB in a hidden folder and create the file shortcut.exe of the pen drive. When you open these files, you will activate the virus and they will spread to your computer.

  2. Remove the virus to create a shortcut with anti-virus software. If the USB is infected with the shortcut virus, you can remove the malicious error with anti-virus software. Select Start> My Computer. Right-click on the removable drive and select “Scan for Viruses”. Follow the instructions on screen to remove the shortcut virus.
    • If you are using Windows RT 8.1 or later, the computer will be equipped with Windows Defender. You can use this program to scan for viruses. Start Windows Defender and select Settings> Advanced. Check the “Scan removable drives” dialog box. Each time a comprehensive scan is conducted, the USB will be checked for viruses.
    • If the computer is not equipped with anti-virus software, download a reputable anti-malware program.
    • You should only download and install one anti-malware program.

  3. Remove shortcut virus with command prompt. You can remove viruses from the flash drive using the command prompt window. To open the command prompt window, click on “Start” and type “cmd”. Click on "cmd" or "Command Prompt Window" in the list of results and select "Run as Administrator" (Run as administrator). In the command prompt window:
    • Enter the USB letter and press ↵ Enter. To identify the letter that corresponds to the USB drive, open “My Computer” and locate the letter written next to the removable drive.
    • Typedel *. lnk and press ↵ Enter.
    • Type attrib -s -r -h *. * /s.d/l/ and press ↵ Enter.
    • Open the flash drive. The entire message will return to its normal state.

  4. File backup. After removing the virus, you can format the drive. Reformatting the USB will erase all data stored on the drive, helping you clean and remove the virus on the device. Before reformatting, back up all files on the USB. Scan the entire directory on the pen drive and delete the strange folders and files. Transfer all files from the USB to a folder on the computer.
  5. Reformat the drive. Click on "Start" and type "cmd" into the search bar. Start the "Command Prompt Window". Type in the letter that corresponds to the drive and press ↵ Enter. Type format / q / x: and press ↵ Enter. Transfer all files back to USB. advertisement

Method 2 of 2: Remove autorun virus

  1. Learn autorun virus. In the past, when you plugged the USB into a port on your computer, the drive would open automatically. If your USB is infected with a virus, the process will execute the file autorun.inf contain autorun virus. Thus, when the USB drive automatically opens, it will trigger the autorun virus. Currently the USB device does not automatically open on Windows XP, Windows 7, Windows 8 and Windows 10 anymore, ie files autorun.inf will not be executed automatically. This solution will protect the computer from viruses.
  2. Scan for viruses on the drive. You should scan for viruses on the pen drive before using it. Click Start> My Computer. Right-click on the removable drive and select “Scan for Viruses”. If it detects a virus, follow the instructions to remove the virus.
    • If you have Windows RT 8.1 or later, the computer is equipped with Windows Defender. To scan for viruses, open Windows Defender. Click on Settings> Advanced. Check the box "Scan removable drives". Every time a comprehensive scan is conducted, the USB is checked for viruses.
    • Some anti-malware programs will automatically scan the USB when you plug it into the port on your computer.
    • If your Windows computer is not equipped with an anti-virus program, download and install a reputable one.
  3. Remove autorun virus. To remove virus from removable drive, you need to delete autorun.inf file and restart your computer.
    • Click on Start> Run.
    • Type "Cmd" and press ↵ Enter.
    • In the Command Prompt Window, type the letter corresponding to the drive and press ↵ Enter.
    • Type attrib -r -h -s autorun.inf and press ↵ Enter.
    • Type del autorun.inf and press ↵ Enter.
    • Restart the computer after completing.
    advertisement

Haris Shafi.

HARIS SHAFI

HARIS SHAFI HARIS SHAFI Facebook: ]

Advice

  • Be sure to scan your computer after performing the above steps, as it may switch from the USB storage device to the primary drive.
  • Try scanning all the files you want to copy to your computer to see if they are safe and free from viruses. If the photo you like is infected with a virus, print it out before deleting it, then scan it back to your computer. You will feel grateful to yourself.

Warning

  • Any file you copy may be infected with a virus, if you cannot lose infected documents or photos, print them and then scan them to your computer.