ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

HOW TO MAKE YOUR USB DRIVE VIRUS RESISTANT

Updated on October 18, 2012

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?

See results

Comments

    0 of 8192 characters used
    Post Comment

    • profile image

      Jackson 

      3 years ago

      this works! thanks

    • profile image

      rony 

      4 years 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.

    • Aezelpot profile image

      Ejay Datangel 

      4 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.

    • profile image

      melvin 

      4 years ago

      galing sir

    • profile image

      khen ng L.T.I. 

      4 years ago

      magaling sir....try ko po

    • denden mangubat profile image

      denden mangubat 

      5 years ago from liloan, cebu, philippines

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

    • profile image

      rony 

      6 years ago

      thanks to you orlan.

    • profile image

      orlan 

      6 years ago

      galing sir thank you po

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)