Thursday, December 30, 2010

USB PENDRIVE MANUAL PROTECTION

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 309,903,360 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 J:\MKF 309903360 

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

No comments:

Post a Comment