Jump to content

Question

Posted

Hi!

So I had a drive going bad (overheating) and entered into RAW state. I tried restoring the partition, without wiping it, but to no luck, so I decided to replace the drive with the same model and then I'll have to deal with the defective drive later on.
I added it to the pool, removed the missing drive and then I wanted to enable pool file duplication, but was met with an error saying read-only.
I'm not sure how I can remove this, so I can enable the file protection and start to re-balance the pool. Googling gave me nothing, so hopefully someone here knows something, that I can benefit from! :)

4 answers to this question

Recommended Posts

  • 1
Posted

Hmm. Try the following from a command prompt run as an administrator:

  • diskpart
  • list volume

Then for each volume:

  • select volume #
    (e.g. select volume 1)
  • attributes volume
  • attributes disk

You are looking for any and all volumes and/or disks that are Read-only. Each time you find such, if any, try:

  • attributes volume clear readonly
    (and/or as appropriate)
  • attributes disk clear readonly
    (then repeat attributes volume and/or attributes disk as above to check that it cleared)

If you don't find any such then I'm currently out of ideas.

  • 0
Posted

Thank you for your suggestion Shane, but I keep getting hit with the write protection, in both methods mentioned in that link.

SetACL finished with error(s):
SetACT error message: The call to SetNamedSecurityInfo () failed
Operating system error message: The media is write protected.

  • 0
Posted

You can also do this with power shell, and with "two" commands. 

Quote

 

Get-Disk | Where-Object IsReadOnly -eq $true | ForEach-Object { $_ | Set-Disk -IsReadOnly $false } 

Get-Partition | Where-Object { $_.IsReadOnly -eq $true } | ForEach-Object { $_ | Set-Partition -IsReadOnly $false }

 

In both cases, this gets a list of disks -> checks for any items that have the "read only property" -> and for each, run the command to disable read only.  

These are safe to run, and I have verified that they cause no issue on my personal system/server.  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...