Tuesday, September 22, 2009

Second hard drive says write-protected

I've got a new 2008 enterprise terminal server. I've installed all my apps to the 2nd hard drive. Now for no reason, I can't write to the drive and my apps can't either as they all crash as soon as they need to.

I get this exact error when simply trying to create a directory in the root of the drive:

"The disk is write-protected.

Remove the write-protection or use another disk."

I'm logging in as the local admin, domain admin makes no diff. I've also given full permissions to "everyone" with no luck. How the heck can I fix this bugger?

Now here is the Solution:-

do the following


on cmd prompt launch "diskpart.exe"

on the diskpart prompt, do the following

LIST DISK

This will give you a list of all disks in your system
Note down the number of your problem disk, then do the folloiwng

SELECT DISK x

Where x is the number of your problem disk, then do the following

DETAIL DISK

This will list all the details of your problem disk
Check if the ReadOnly flag is set to Yes

If the ReadOnly flag is set to Yes, do the follwing

ATTR DISK CLEAR READONLY

This should clear the flag on the disk, please retry your disk operations

If ths does not solve it, we have another flag on the volume, same command, but now on volume:

LIST VOLUME
SELECT VOLUME x
DETAIL VOLUME
ATTR VOLUME CLEAR READONLY

No comments:

Post a Comment