We help IT Professionals succeed at work.

How to prevent a USB drive from being formatted

hiephop asked
Last Modified: 2012-05-10
I want to hand out some usb drive with our company info on it but don't want users to just format the drive and erase the data. Is there a way to prevent users from formatting the drive? It would be ideal if I can create two partitions, one cannot be formatted and the other one, they can do whatever they want to it.

Watch Question

I don't think there's a way to prevent this completely. Most USB/Flash drives come with a hardware lock switch on them prevent them from being formatted or data deleted (similar to how they had that lock on the old floppy disks) - but any user can simply flip this switch back to unlock and can do anything with the data on there.

2nd the hardware lock.

There are also some utilities that offer some level of protection:

I am not sure if this will prevent against a format.,
Here's some other options for you as well:

1. Buy an enclosure that helps prevent the user from getting to the USB drive write-protect switch.

Con to this solution: they can still break open the enclosure and flip the switch.

2. Super glue the switch in the write-protect mode.

Cons to this solution: You may damage your USB drive if done improperly. Glue seal may still be broken by someone who is really eager to get to your data. Lastly, you may not be able to break the seal (because you glued it good) and it will be write-protected forever.

3. How to Disable Write Access to USB Hard Disk and Flash Key Drives (registry hack)

Con to this solution: You have to apply this setting to all computers the user with the USB drive can get to - if they take it home, you're back at square one.

+1 Super glue the switch in the write-protect mode.
Great Idea Element910
Thanks :)
This one is on us!
(Get your first solution completely free - no credit card required)


Rhapsody - Thanks for your suggestion. This is more of a marketing tool and we want to give the users something to use as well as promote our company. The mini discs won't work for our situation.

There has to be a way to do it since manufacturer are doing it. Doesn't Sandisk and Lexar have a small partition on their usb stick where you cannot format it easily?


I couldn't find a solution for my question so I'm giving the points to rhapsody since his answer was the best.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.