How to Protect USB from virus

Protect USB from virus is a difficult task, we mostly USB to transfer data between computer in family net café and other where. USB is a valuable to store our data consistently. Be that as it may, it is likewise one of the primary ways of the spread of the infection among our Windows PCs. It is therefore that there are a few apparatuses and approaches to Protect USB from virus keep away from that you proliferate infections, malware, Trojans and any disease to different PCs.

One of the two highlights seen in USB drives is the presence of our documents as alternate routes that, when we dispatch, it opens a dark window that closes naturally. Likewise, our organizers vanish, after the above contemplation we continue to utilize a method which will make the hard to contaminate USB infect drives.

How to Protect USB from virus

First of all, plugin USB and open CMD with administrator rights. You can read this tutorial if you don’t know how to open cmd with administrator rights.

In the CMD window type or copy diskpart

After a few second diskpart program will start in cmd.

Now type or copy paste

List disk

It will show all connected USBs and Hard drives, please read carefully what is your target USB disk number. In most cases target USB disk is at number 1, If there is only one hard drive is attached, or there is no other USB is already attached. Now type or paste

Select disk 1

You will see message that “Disk 1 is now the selected disk.”  Now apply the command

attributes disk

It will show the following information

Current Read-only State : No
Read-only  : No
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

From the above information we can see Read-only  : No, Now we are going to change Read-only  : No to Read-only  : Yes for this apply this command

attributes disk set readonly

Now you will the message “Disk attributes set successfully.” Now again apply attributes disk command to verify that Read-only attribute is changed into Yes

Current Read-only State : Yes

Read-only  : Yes
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

Now we can see that Read-only  : Yes.

How to Protect USB from virus
How to Protect USB from virus

Now USB is in Read-only State, Now you can plugin the USB in other PCs. Now USB is Protected from virus, because it is now in read only state.

So when you want to add or delete data you have to follow these steps.

In the CMD window type or copy diskpart

List disk

Select disk 1

attributes disk clear readonly

Leave a Reply

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


*