When your USB is infected with the virus, it automatically generates a file named Autorun.inf to activate the drive's autorun feature. Consequently, whenever you open the USB, you unintentionally trigger this virus. What's even more perilous is that this virus sets itself as hidden, rendering it undetectable. In today's article, Mytour will guide you on how to protect USB from AutoRun virus without using any software, just through a few simple steps.
In essence, we prevent the virus from creating the Autorun.inf file on the USB. Thus, we manually create an Autorun.inf file on the USB and prevent it from being overwritten. To achieve this, we need to convert all the data on the USB to NTFS format and set permissions to prevent the Autorun.inf file from being overwritten.
Protect USB from Autorun Virus without Using Software
Step 1: Identify USB Drive Name
Check your USB to see what it's named. In my case, the USB drive is named T
Step 2: Convert USB to NTFS Format
Click on Start, type CMD, then press Enter to open the Command Prompt window
When the Command Prompt window appears, type convert T: /FS:NTFS, then press Enter. (Replace T with the name of your USB drive). When you see Conversion Complete, it's done.
Step 3: Create Autorun.ini file and place it into the USB drive
- Press Start, type notepad, then press Enter to open Notepad
- Once the Notepad window appears, you can type anything or leave it blank. Then press Ctrl+S to save the file, rename it to autorun.inf, and save it to the USB drive
- Navigate to the USB drive, right-click on the Autorun.inf file you just created, and select Properties
- Under the General tab, click on the Read-only checkbox and press OK
Step 4: Restrict all access rights to the Autorun.inf file you just created
- Click on Start, type cacls [usb drive letter]:Autorun.inf /D Everyone, then press Enter. For example, I'll type cacls T:Autorun.inf /D Everyone
- A prompt will appear, press Y, then press Enter to finish.
We hope that with our sharing, you now fully understand how to prevent Autorun.inf virus with just a few simple manual steps without using software. Additionally, you can refer to and use USB protection software available in Mytour to ensure absolute security for USB data.
Autorun viruses can be eliminated in various ways. In addition to the method above, you can also remove Autorun using commands in CMD. Refer to how to delete Autorun virus using commands on your computer or PC for more information on how to do this.
