wood burning stoves 2.0*
The moose likes General Computing and the fly likes Hard disk is write protected error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Hard disk is write protected error." Watch "Hard disk is write protected error." New topic
Author

Hard disk is write protected error.

Ramki Sukumaran
Ranch Hand

Joined: Jun 24, 2013
Posts: 37
Hi,

I have a 16 GB pen drive. I have lots of files in it. I want delete all the files or format the pen drive itself. But when i delete individually or format the entire pen drive, it says the file or pen drive is write protected. Please help me in formatting the whole pen drive or deleting individual files.

Regards
Ramki S
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

1) Check if there is a physical switch on your pendrive
2) Confirm it is not in "lock" position
3) If no switch exists, pen drive write protected


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38081
    
  22
And how old is your pen drive?
Ramki Sukumaran
Ranch Hand

Joined: Jun 24, 2013
Posts: 37
its just 8 months old.

And Maneesh,

I have also did what you have given. Even then am getting the same error. When i did the steps to format the pen drive through command prompt, my pen drive is not at all listing.

Please suggest some other instructions to remove the write protection from pen drive.

Thanks.

Ramki S
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hard disk is write protected error.
 
Similar Threads
Can we password protect a File / folder / Windows Drive using java?
Make a file of desired size using java ?
Saving lots of data to file
"Protect" a pen drive from malware using java code - please review my (working) code ?