Posts

Showing posts with the label Diskpart

he operation did not complete because the media is write protected - Pt2

I didn't expect to have to revisit this but my recent DR test has highlighted another issue along the same lines. Trying to recover the same server again and the drives once again were not writable. No problem I know how to fix that. In to Diskpart and ...oh no hidden volumes. What is going on? A quick check and the volumes are set to read only, but are not showing as hidden. A quick look through the list of commands available in Diskpart revealed the Detail command, running Det Vol on an affected volume gives a listing of all the attributes something like the following Read-only                          : Yes Hidden                               : No No Default Drive Letter    : Yes Shadow Copy             ...

The operation did not complete because the media is write protected

Image
Update and more info available in part 2   Hit a weird problem with our EqualLogics drives. The drives themselves are fine but replicas and snapshots of some direct attached NTFS volumes would mount onto a machine but would not get a drive letter automatically, I could add one manually but it wouldn't stick after a reboot and services like SQL would not run. I could copy the data off the drive and this was data was fine. I was able to delete a volume, create a new one but not format it, this is where I got a read only error. Trying another drive I found I couldn't copy anything on to it, I got the same error This caused a lot of head scratching till I noticed the word hidden next to the drive in Diskpart. A quick Google found a Microsoft kb article that described the problem and how Diskpart could fix it. After attaching the drives, go in to Diskpart and list volumes and you will see that the Volumes are given the Hidden attribute. To clear this...