Steps To Write Protect and Unwrite Protect USB Flash Drive - My Tech Lab

30 Jul 2015

Steps To Write Protect and Unwrite Protect USB Flash Drive


To Write protect your USB flash drive, first you need to insert the USB flash drive
into any of the USB ports on your computer.

  • Click on the start menu and go to "run" and then type "cmd" For Windows 8, 8.1 or Win 10 users just go to the start menu by depressing the windows logo key on your keyboard. Then type in "cmd" and then enter.

  • In the command prompt window, just type in "Diskpart" and then press enter on your keyboard.

  • Type in "List disk" when the diskpart window is opened. at this point Diskpart should list all your drive online on your screen. see picture below;

In my case i have only on disk online
  • Now, Type in "Select disk" followed by the disk number. That is, the number designated to the USB flash drive you wanna write protect or unwrite protect. If you are not sure weather you entered the correct drive number, you can confirm by checking the drive size listed to the right.

How To Write Protect Your USB Flash Drive

  • Type in these; "attribute disk set readonly"

  • Your USB flash drive should be write protected now. To confirm, just unplug and plug back the USB into your computer. Now Open the flash drive from my computer and right click on any file. You will notice that there is no delete option in the right-click window. another way to confirm is to try formatting the flash drive which you should get an error message as "The disk is write protected"

How To Unwrite protect your USB flash drive

In case you change your mind and you wanna remove the write protection from
your USB disk, just follow the steps bellow

  • Plug back your USB drive. Go through the steps above.

  • Now type in "attribute disk clear readonly" Note; type this after you are done with the above steps up to the "select disk #"

  • To confirm, unplug and plug in your disk and try deleting some items. This time you will be able to delete files and also format the USB disk as well.

Please leave a comment bellow after reading this post to help my cause of
contributing my quota to the internet community.

Join our Facebook Page Here

Tags: Android, Tutorials, I.T News, Phone Tips, Reviews, Computer tricks, Security


  1. Are you trying to earn cash from your visitors via popunder advertisments?
    If so, have you tried using Pop Cash?


Let's Hear From You Here
Your Comments, Views and questions are warmly welcome.

Subscribe to

Join Us On Facebook