DIGIT-ARC read-only archive · snapshot: July 23, 2026

Write Protected USB

29 posts · originally from https://geek.digit.in/community/threads/write-protected-usb.80803/

V
vaibhavtek Original post #1
Feb 22, 2008 at 2:43 PM
Make a write Protected USB Drive
​



Today USB drive also known as keychain drive is becoming the most popular removable storage device to move data to different locations. USB drives are available in the market with different features, for example password protected, compatible with all windows versions and extra storage capacity (up to 65 GB).


A common security issue at organizations is how to prevent their workers to write data onto USB drives using their PCs, because a user can easily move confidential data for other location.


*www.imgx.org/files/12577_zzo0i/usb_write_protected.gif


If you have windows XP with SP2, then you can disable the writing option to USB drives.

Follow the given steps to disable the USB writing option:-
1. To edit the computer registry, first you should log onto your computer with administrative rights.
First click on Start button and type "Regedit" in Run option.


*www.imgx.org/files/12576_kkoej/regedit%29_usb.gif


2. Here locate the location to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Here in right side panel, click right to create a key with the name "StorageDevicePolicies".​

*www.imgx.org/files/12573_6ojqw/creat_key.gif


3. Now in left side panel, select "StorageDevicePolicies" key, again right click to create new DWORD value then label it "WriteProtect".​


*www.imgx.org/files/12575_gtbvk/dword_create.gif


4. Set its value to "1". But again enable this option set its values "0".


*www.imgx.org/files/12574_guka6/dword_1.gif


5. Now close the registry editor and restart your computer after any changes to go into effect.

Source
C
Feb 22, 2008 at 3:12 PM
Keep it up,Vaibhav.Keep contributing and posting sensible things and you will be highly respected.And thankyou,it was very helpful.
V
vaibhavtek #3
Feb 22, 2008 at 3:15 PM
Thanks buddy for repling and appretiang my share with u.

Waiting for more comments from senior members as well as Fresh Stock members of this forum...!!!
redhat
redhat #4
Feb 22, 2008 at 3:33 PM
Hey Vaibhav,
1) Thanks for learning to post the source:D
2) This info was usefull
3) Your title is wrong, this does not teach write-protecting a USB Drive, it shows how to prevent writing TO a USB Drive
MetalheadGautham
Feb 22, 2008 at 3:50 PM
yet another mistaken post. You told how to STOP people from writing to a pendrive ON the Computer. This hardly has any advantage, as the employers can't go and lock every single employee's computer only to realise that the employee can set it back.

A better methord will be to make the pendrive use an encrypted filesystem that needs either a password, or some critical system data thats unique to each system, to read/write data on it.
V
vaibhavtek #6
Feb 22, 2008 at 3:59 PM
Your title is wrong, this does not teach write-protecting a USB Drive, it shows how to prevent writing TO a USB Drive

Mods plz do the this.

This info was usefull

Thanks.

yet another mistaken post. You told how to STOP people from writing to a pendrive ON the Computer. This hardly has any advantage, as the employers can't go and lock every single employee's computer only to realise that the employee can set it back.

Correctly said this is the only disadvantage of this process.


A better methord will be to make the pendrive use an encrypted filesystem that needs either a password, or some critical system data thats unique to each system, to read/write data on it.

Can it be possible using any software or registry trick or anything.
If possible.
Plz make a tutorial.
I need that.

Hey Vaibhav,
Thanks for learning to post the source:D

correctly said :)) :)) ;)

Waiting for some more comments.
viruss
viruss #7
Feb 22, 2008 at 4:09 PM
you made registry hack. but it will prevent PC from writing on USB...
but is it possible to make USB write protected as floppy?
As there are virus problems coming via USB
skeletor
Feb 22, 2008 at 4:11 PM
Mods plz do the this.
Thanks.
You'll have to PM to get it done......aise hi nahi hota

Anyways, Topgear had also posted a tutorial similar to this discovered on his own:

Disable Access to USB Mass Storage Drive
MetalheadGautham
Feb 22, 2008 at 4:16 PM
if you need to prevent access, try NTFS Encrypted partition. I am not sure how it works, but apparently only the OS install that creates this partition has ability to access this partition. Even a reinstall will make the drive unreadable.
skeletor
skeletor #10
Feb 22, 2008 at 4:18 PM
you made registry hack. but it will prevent PC from writing on USB...
but is it possible to make USB write protected as floppy?
As there are virus problems coming via USB
Dude he has hasn't made this registry trick.

Anyways, there are pen drives which cannot be accessed until we enter a password. If you get those then it will be well and good. And also when you insert a pendrive, don't open it through the dialog box. I mean to say cancel that dialog box. Then have a scan. Open the drive after the scan.

---------------
if you need to prevent access, try NTFS Encrypted partition. I am not sure how it works, but apparently only the OS install that creates this partition has ability to access this partition. Even a reinstall will make the drive unreadable.
NTFS is not good for Flash drives as it is a journaling file system. It will wear out the flash chip and decrease its life. FAT and FAT32 are the best for them.
MetalheadGautham
Feb 22, 2008 at 4:31 PM
Dude he has hasn't made this registry trick.

Anyways, there are pen drives which cannot be accessed until we enter a password. If you get those then it will be well and good. And also when you insert a pendrive, don't open it through the dialog box. I mean to say cancel that dialog box. Then have a scan. Open the drive after the scan.

---------------

NTFS is not good for Flash drives as it is a journaling file system. It will wear out the flash chip and decrease its life. FAT and FAT32 are the best for them.
if you think FAT or FAT32 is the only solution for you, you must be from the '80s. Try the follosing pro setup if you need max security:

1. YAFFS2 file system as base

the world's best flash file system, and increases the life span of your pen drive a lot


2. eCryptFS file system running overhead

a cryptographic file system that can encrypt data on the fly while adding files.
this baby can offer maximum levels of reliable security for your data
nvidia
nvidia #12
Feb 22, 2008 at 4:34 PM
OMG!! Vaibav has put the source!!!! :shock:
skeletor
skeletor #13
Feb 22, 2008 at 4:38 PM
if you think FAT or FAT32 is the only solution for you, you must be from the '80s. Try the follosing pro setup if you need max security:

1. YAFFS2 file system as base

the world's best flash file system, and increases the life span of your pen drive a lot


2. eCryptFS file system running overhead

a cryptographic file system that can encrypt data on the fly while adding files.
this baby can offer maximum levels of reliable security for your data
Who says that I think that FAT & FAT32 are the only solutions.....:rolleyes: I had meant if he wants full accessibility wherever he goes....

If he has to take his pen drive to his office, then he'll have to install 3rd party utilities for accessing his YAFFS2 file system.

I've just opposed you because you said him to use NTFS. NTFS is a journaling file system. So, it is going to write very frequently to the pen drive and thus will wear out flash.
V
vaibhavtek #14
Feb 22, 2008 at 5:18 PM
OMG!! Vaibav has put the source!!!! :shock:


Nividia stop pulling my leg.

U are in my messenger list as friend then why are u always against me in this forum...!!

Anyways did u like this tutorial....???

you made registry hack. but it will prevent PC from writing on USB...
but is it possible to make USB write protected as floppy?
As there are virus problems coming via USB

A floppy disk can be maked write-protected when the plastic tab at the top has been moved to reveal a "hole" in the disk.

But it can be still access if user do move the hole opposite.

I think is not possible using Registry Hack.

But still wait for VG > Vishal Gupta > Vis(hal Gup)ta > Mr. Regisrty
^^
He is very good in registry.

P.S. No one use floopy disk these day all use either a CD or USB drive.. :D
Gigacore
Gigacore #15
Feb 22, 2008 at 6:56 PM
good. i think he always wants to leave out something funny in his posts. the pink title is :D
P
PraKs #17
Feb 22, 2008 at 8:07 PM
@infra_red_dude

Can anyone please post how to do in Truecrypt ?

I have USB & want people just to read the data.. Dont have hardware lock switch.. Please share..
nvidia
nvidia #18
Feb 22, 2008 at 8:13 PM
@Vaibav: I have just one doubt... Why have you used the ":D" thread icon instead of ":cool:" icon? :confused: :lol:
infra_red_dude
Feb 22, 2008 at 8:30 PM
@infra_red_dude

Can anyone please post how to do in Truecrypt ?

I have USB & want people just to read the data.. Dont have hardware lock switch.. Please share..
Not enuf time to post the whole thing first hand but I'm sure these will help:

1) Guide on official site: *www.truecrypt.org/docs/?s=tutorial
2) Guide for use on Linux: *www.howtoforge.com/truecrypt_data_encryption
3) Another good step by step guide: *www.juand.ca/how-to-secure-your-usb-thumbdrive/
nvidia
nvidia #20
Feb 22, 2008 at 8:36 PM
Nividia stop pulling my leg.
U are in my messenger list as friend then why are u always against me in this forum...!!
There is no such thing that if someone is there in your messenger list, then they have to be your friend.:mad: Btw, it was you who added me into your messenger list not me.:mad:

Btw, stop posting the same lines in other threads where I've posted something against you:mad:
pushkaraj
pushkaraj #21
Feb 22, 2008 at 9:06 PM
1. YAFFS2 file system as base

the world's best flash file system, and increases the life span of your pen drive a lot


Check this out:

In practice, flash file systems are only used for "Memory Technology Devices" ("MTD"), which are embedded flash memories that do not have a controller. Removable flash memory cards and USB flash drives have built-in controllers to perform wear-levelling and error correction so use of a specific flash file system does not add any benefit.

Source : *en.wikipedia.org/wiki/Flash_memory

I dont know how true this is....
V
vaibhavtek #22
Feb 22, 2008 at 9:09 PM
good. i think he always wants to leave out something funny in his posts. the pink title is :D

thanks.
edited

@Vaibav: I have just one doubt... Why have you used the ":D" thread icon instead of ":cool:" icon? :confused: :lol:

stop plz.
a_k_s_h_a_y
Feb 22, 2008 at 9:29 PM
misleading topic name

i was happy that i could write protect my usb flash driver ! that's what it means

i mean no body can write into my USB Drive From any computer in the world when lock is on ! got it ?? when lock is open people can write

this can help viruses to stop entering from my pen drive !!

btw thanks for the tutorial .. i knew it ! now just a revision !!
skeletor
skeletor #24
Feb 22, 2008 at 9:40 PM
^^^ I guess this doesn't make the Flash Drive write protected......
It just restricts the computer and makes it unable to write to USB drives....... Drives can be written from other computers.......

Vaibhavtek, get your title changed to: Blocking write access to USB drive

This kind of Tutorial (but different) was already posted by Topgear sometime ago..... Here: *www.thinkdigit.com/forum/showthread.php?t=77208
V
vaibhavtek #25
Feb 22, 2008 at 9:45 PM
^^^ I guess this doesn't make the Flash Drive write protected......
It just restricts the computer and makes it unable to write to USB drives....... Drives can be written from other computers.......

Vaibhavtek, get your title changed to: Blocking write access to USB drive

This kind of Tutorial (but different) was already posted by Topgear sometime ago..... Here: Disable Access to USB Mass Storage Drive

Mods plz change the title as suggested by gagandeep.

I searched the forum but was not able to got tutorial similar to it.
skeletor
skeletor #26
Feb 22, 2008 at 9:56 PM
^^ Arrey yaar......
Also EDIT your 1st post.......

I searched the forum but was not able to got tutorial similar to it.

How is this possible vaibhavtek??????

*www.thinkdigit.com/forum/showthread.php?p=728165&posted=1#post728165

You had yourself thanked him in the above post.....

This means that you never go through any Tutorial and blindly post "Thanx a lot"
A
adi007 #27
Feb 22, 2008 at 10:15 PM
^^rofl...rofl..nice detective work gagandeep...
and vaibhavtek please post the thread after searching the forum..and BTW you have replied to that old thread and you are saying that you searched the whole forum..:confused:

either you are just replying "Thanx a lot" to every tut thread to increase your post count or you are just creating a new tut from the old thread to increase your post count..

In either way you just want to increase the post count..that's all..

Now i must say that post count doesn't make one famous and respectable in the forum..i have seen some members who joined at 2005 and still in their 200-300 posts...it is important to note that they will check the forum daily..so please don't post to just increase your post count..i know it's tempting to increase one's post count but doing such things is not good....
skeletor
skeletor #28
Feb 22, 2008 at 10:25 PM
^^ I keep on reminding him that Quantity never beats Quality........
kalpik
kalpik #29
Feb 22, 2008 at 10:30 PM
@all: Please report the thread if you think its inappropriate. Do not resort to personal attacks.

@vaibhavtek: Relax dude. Don't be in a hurry to post everything you come across! Just sit back for a while and surf this forum. You will gradually get to know how things work here :)

Locking this thread. Please continue discussion here: *www.thinkdigit.com/forum/showthread.php?t=77208
*www.thinkdigit.com/forum/member.php?u=30719