HOW TO MAKE YOUR USB DRIVE VIRUS RESISTANT

What kind of USB drive do you own?

If a virus hides all your files, Do you know what to do? USB DRIVE, FLASH DISK, MEMORY STICK, USB HARD DRIVE, these are collectively referred to in this article as "USB DRIVE" for simplicity.
If a virus hides all your files, Do you know what to do? USB DRIVE, FLASH DISK, MEMORY STICK, USB HARD DRIVE, these are collectively referred to in this article as "USB DRIVE" for simplicity.

Yes. It is true! It is simple and easy.

First. Format your USB drive in NTFS file system.

Second. Create a directory or folder where you will save your data, let’s say “DATA” folder; and make the root folder “read only” access to “Everyone” user group access right.

Third. Create a text file inside the “DATA” folder and rename that file into DATA.EXE. And set the security setting to “deny all” for “Everyone” user access rights. This, I fondly called “creating a fake virus” to block the real viruses.

Fourth, You acquire the ownership of your USB drive. The purpose? After formatting in NTFS file structure you can secure your USB drive or even your external hard disk drive like the way you do in securing a table in a data base. Make sure that you remove all access rights, including the access rights of “SYSTEM” group user. You can find all these features by right clicking the properties of the drive, e.g. “Drive F:” or whatever drive letter assigned by your computer to your USB drive.

If you can only configure the root folder of your USB drive “Read Only,” then you can block almost all viruses that may attempt to write in your USB drive, such as “_” dash virus, “RECYCLER” virus, “Autorun.inf” virus, “Brontoc” virus, etc., etc. You will not worry at all even if you plug in your USB drive in any computer that is full of viruses.


The instructions above is all that there is, if, you are a computer programmer. Please read the rest for detailed instructions though if you can understand the technique I cited above.

The Illustration to the right tells almost everything you need to know and to do on how to configure your USB drive “Virus Resistant”. Look, the “Permissions for Everyone”, in the “Allow”column, the “Full Control”, “Modify” and “Write” is unchecked. So, this trick blocks all attempts by any virus to write in the root directory .

Did you know that if a virus hides all your files, the files are still inside.  In the command prompt you can execute the command "ATTRIB *.* -H -R -S /S /D" Make sure though that the active directory is your USB DRIVE.
Did you know that if a virus hides all your files, the files are still inside. In the command prompt you can execute the command "ATTRIB *.* -H -R -S /S /D" Make sure though that the active directory is your USB DRIVE.

HOW TO FORMAT YOUR USB DRIVE IN NTFS

The best way to format the USB drive in NTFS (New Technology File System) (or Network Technology File System) is to use the "DISKPART.EXE" command via command prompt.

The other way is to use the computer management window. Right click the computer and click manage button, and look for the disk management sub menu.

If you are using Windows 8, click "Windows" "R" key. In Windows 7, press windows key and type "DISKPART.EXE" and press the enter key. All these commands shall be run in the Administrators privilege account in windows.

If you will not convert your USB drive to NTFS file system you can cannot protect your USB drive.

Most USB DRIVE VIRUSES can not run while in command prompt only or in safe mode.  So, in case your usb drive is not yet virus resistant the best way to retrieve a file from it is to "end process" the "explorer.exe" in the Task Manager.
Most USB DRIVE VIRUSES can not run while in command prompt only or in safe mode. So, in case your usb drive is not yet virus resistant the best way to retrieve a file from it is to "end process" the "explorer.exe" in the Task Manager.

Why create a DATA folder in your usb drive?

Once your USB drive is read only in the root folder, you can not save anymore any data in it. It is required that you have to make at least one folder where you can store all your data.


Any data stored in the root folder is not erasable anymore. In my usb drive, I put my installers in the root directory. The integrity of these files will not be compromised because no virus can edit them.


Note, however, that in case you want to cancel the protection of your USB drive, you can format it again.

Examine the folders in this illustration

The root directory of this USB drive is readonly for "Everyone" access right.  In this case, you cannot erase and even write in the root folder.  It is already locked.
The root directory of this USB drive is readonly for "Everyone" access right. In this case, you cannot erase and even write in the root folder. It is already locked.

THE BEST WAY TO CHECK IF YOUR DRIVE IS RELIABLE, IF IT COULD BE FORMATTED IN NTFS.

If you cannot format your USB drive in NTFS, it is highly possible that that device is already defective.  My advice, don't use it anymore, or throw it away. You can still use it in FAT32 format but it is not dependable anymore.
If you cannot format your USB drive in NTFS, it is highly possible that that device is already defective. My advice, don't use it anymore, or throw it away. You can still use it in FAT32 format but it is not dependable anymore.

ACQUIRING OWNERSHIP, THE WAY TO SECURE YOUR USB DRIVE

In my many years of experience and experiments with viruses, I discovered that they are not capable of acquiring the ownership of a secured file structure. It is a good practice that once you have formatted your USB drive in NTFS file system you need to acquire the ownership of the drive because the current owner of the drive is "SYSTEM" group user, which is universal. Many viruses can easily manipulate your drive if they can have a full control of the security setting of your drive.

If you are a programmer you can easily understand what I mean. Don't worry however, if you are not a programmer. The following detailed instructions will be presented to all, in layman's way as easy as possible.


THIS IS THE SECURITY SETTING OF YOUR "DATA" FOLDER

In here you can save, and you can erase.  So we need to create a fake virus inside it so that this folder cannot be moved or erased by a virus.
In here you can save, and you can erase. So we need to create a fake virus inside it so that this folder cannot be moved or erased by a virus.

I put an exclamation mark in my "data" folder as "!DATA" so that it will be on top of the list when I sort file in ascending order. You may do the same if you want.


Your opinion is valuable to us.

Have you ever been a victim of USB drive virus/viruses?

  • Yes
  • Never
  • I don't know
See results without voting

More by this Author


Comments 8 comments

orlan 3 years ago

galing sir thank you po


rony 3 years ago

thanks to you orlan.


denden mangubat profile image

denden mangubat 3 years ago from liloan, cebu, philippines

voted up.i will try this.thanks po sa info.


khen ng L.T.I. 2 years ago

magaling sir....try ko po


melvin 2 years ago

galing sir


Aezelpot profile image

Aezelpot 2 years ago from Philippines

Hello Sir. Si Ejay po ito. Student po ninyo noon. Until now ganto padin ginagawa ko sa mga USB ko at sa mga USB ng mga barkada ko. Wala talagang virus na papasok. :)

Minsan nga lang talaga Sir, pag mag papaprint kami sa labas/internetcafe nadedetect ng mga anti-virus at usb scanner nila na virus ung ginawa nating fake virus na DATA.LNK (Virus Resistant Part II). Tapos syempre hindi nila ma dedelete kasi protected po yun Sir. Kaya minsan di tinatanggap pendrive namin sa labas. Yun ang masakit :)

Pero thanks for all this info sir. malaking tulong ito saamin. Thank You and Godbless.


rony 23 months ago

Thanks a lot Ejay. My new trick is to make a data folder inside the data folder. I call it double layer virus proofing. I will demonstrate it to you once you visit at etesda psat.


Jackson 13 months ago

this works! thanks

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working