Jared Heinrichs

  • Technology Blog
  • Winnipeg Computer Repair
  • Winnipeg Photographer
  • Cooking With Jared
You are here: Home / Computer Hardware / Make USB drive write protected

Feb 17, 2009 By Jared Heinrichs 4 Comments

Make USB drive write protected

I carry my USB flash drive that contains a lot of portable tools with me all the time but I am afraid of one thing, which is a computer virus such as JambanMu or MaxTrox that is able to infect USB flash drives and bind itself to the executable files in there. So far there are only ways to disable writing to USB flash drive on your computer by editing the registry but if you plug it into a public computer which has virus, your USB flash drive will be writable and can be infected by virus. So is having a pendrive with a built-in write protect switch the only way to prevent the drive from virus infection?

Few days ago I found out about PenProtector which claims to protect all removable disks from additions of new files. PenProtector prevents the writing on pendrive of viruses, trojans, dialers and any other type of executable that would use the removable disk to replicate it self. PenProtector cost €3,90 and I bought a copy to see what it really does. From my observation, PenProtector creates a “block” file to fill up the remaining free space on the USB flash drive. When there is no space left on the removable drive, virus won’t be able to copy itself to to drive or infect any executable files.

PenProtector

Honestly, it is not worth buying PenProtector because there are a few FREE ways to write protect a USB flash drive by creating a fake dummy file to fill up the removable disks free space.

First, you have to know how much free space is left on the USB drive. Plug in the drive, go to My Computer, right click on the drive letter and select Properties. Take note of the “Free space” that is in bytes. My USB drive has 1,300,594,688 free space, so I will need to create a dummy file that has the exact file size.

Removable Drive Free Space
The best and easiest way is to use fsutil, a command line tool included in Windows. Open up command prompt from Start Menu > Accessories and type the following command:

    fsutil file createnew F:\IamDummy 1300594688

fsutil file createnew

You will see that your USB flash drive’s LED is blinking meaning the file is being created. Now my pen drive has 0 free space and virus won’t be able to get in. You can change 1300594688 to the size that you want in bytes. F: is the letter of my USB flash drive and IamDummy is the file name. When you want to copy files into the USB removable drive, simply delete the dummy file. When you’re done, create the dummy file again using the fsutil command.

Write Protect USB Removable Drive

If you’re looking for a graphical tool to create dummy fake files, here are a few that I found. Some are slower, and some with NTFS restriction, so you might want to test it out to see which you prefer to use.

1. NOD32 Dummy File Creator

NOD32 Dummy File Creator
NOD32 Dummy File Creator Utility is meant to create dummy files in a specified folder to immunize a system against particular worms. Same concept as DiskHeal which creates autorun.inf file so the virus won’t have the chance to overwrite it. Supports setting file attributes (hidden, system, archive, read-only) to the dummy file on both NTFS and FAT drives.

2. DonationCoder’s Dummy File Creator (DFC)

Dummy File Creator
This tool is able to create dummy files of any arbitrary size filled with a specify hex byte value.

3. Nikko Dummy File Creator

Nikko Dummy File Creator
A simple program which creates files of any size with ease. This program also has a built-in random function, so users can choose to create either compressible or non-compressible files. Can create multiple fake files from batch list file.

Here is another example why you’d want to use these fake dummy file creators. To earn 1 point in RapidShare, we will need to upload a 5MB file for people to download. Let’s say you have a 3MB file and short of 2MB. Instead of searching for it on your hard drive or on the Internet, you can just create one yourself. You can also fool your friends by messing up their hard drive space, test drive transfer speed by moving dummy files, prevent data recovery by filling the free spaces and etc… I’m sure there are more.

Filed Under: Computer Hardware

Comments

  1. Mohammad says

    Jun 30, 2009 at 4:54 pm

    Hi

    Of course it is one of the good ideas I seen and have been thinking about.

    But a maleware will be able to delete some files if disk was full and copy itself instead.

    I do not know why does jump drive manufactures stoped manufacturin the lock switched ones.

    I still have one piece 256 MB with a lock switch.

  2. PAR@TUT says

    Oct 28, 2011 at 7:12 am

    USING FSUTIL IS BETTER THAN NOD32 DUMMY CREATOR ETC.

    TNX JARED!!!!!

Trackbacks

  1. Trik sederhana menghindarkan flashdisk dari virus « SIMKES UGM 2008 says:
    Mar 18, 2009 at 2:10 am

    […] Maret 18, 2009 in Anak Simkes Angkatan 2008 | by simkesugm2008 Salam semua, hari ini saya menemukan artikel menarik tentang bagaimana menghindarkan USB Flashdisk anda dari virus, sangat sederhana dan saya yakin semua orang bisa melakukannya, artikel aslinya dapat dilihat disini. […]

  2. MAKE USB WRITE PROTECTED says:
    Jun 5, 2011 at 6:26 am

    […] me by someone else here a couple of weeks ago but I can't find the post. Here are soem links though Make USB drive write protected | Jared Heinrichs – Download NOD32 Dummy File Creator Utility 1.0 Free – This software will help you create dummy […]

Leave a Reply Cancel reply

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

Categories

  • Board Game Rules
  • Camera
  • Computer Hardware
    • Blackberry
    • drivers
    • iPad
    • Magic Jack
    • USB
  • Damn Small Linux
  • Exam Notes
  • Facebook
  • FREE Flashcards
  • Games
    • PC
      • League of Legends
    • Wii
    • xbox 360
  • Music
  • Networking
    • Cisco Certification
    • Mitel
    • Palo Alto Firewall
  • News
    • Google
    • Microsoft
  • Operating System
    • Active Directory (2003)
    • Android
    • Command Prompt
    • Damn Small Linux
    • Group Policy
    • Hyper-V
    • IIS
    • ISA 2006
    • Mac OS X
    • Microsoft Exchange Server
    • Powershell
    • Security
    • SME Server
    • Terminal Server 2003
    • Ubuntu Linux
      • Adito Web SSL VPN
      • OpenVpn-als
      • Webmin
    • Virtual Machine Manager
    • Windows 2003 SBS
    • Windows 2003 Server
    • Windows 2008
    • Windows 2008 R2
    • Windows 2012R2
    • Windows 7
    • Windows 8
    • Windows Command Line
    • Windows Deployment Services
    • Windows Server Backup
    • Windows Vista
    • Windows XP
  • Phones
  • Photography
  • Photos
    • Animals
    • Misc
    • Nature
    • Portraits
  • Portfolio
  • Programming
    • CSS
    • HTML
    • jQuery
    • MySQL
    • PHP
    • Script
  • Programs
    • Acrobat
    • Acrobat Reader
    • Adobe Dreamweaver
    • Adobe Illustrator
    • Adobe Photoshop
    • Anti-virus Software
    • Antivirus
    • Backup Exec
    • Bittorent
    • Blackberry BESADMIN
    • Internet Explorer 9
    • Lightroom
    • Microsoft Office
    • Netbeans
    • Onenote
    • Outlook
    • Shelby
    • Sysprep
    • Trend
    • Video Editing
    • Visual Studio
    • Windows Live Writer
    • WireShark
    • XP Mode
    • Zarafa
  • Recipe
  • Review
  • Software Links
  • Troubleshooting
  • Uncategorized
  • Videos
  • Web Applications
    • Brage
    • Google
    • Spiceworks
    • Wordpress
  • Web Browsers
    • Internet Explorer
  • Web Server
    • XAMPP
  • Winnipeg
    • ISP

Try searching this site!

Copyright © 2021 Winnipeg Web Design