I tried this and it worked, in Windows 7. Start Cmd.exe as administrator, then:
DISKPART> list disk
DISKPART> select disk (id)
DISKPART> online disk (if the disk is not online)
DISKPART> attributes disk clear readonly
Then I was able to manipulate the volume in Disk Management control panel.