Persistent Read-Only Issue with Seagate Drive in TrueNAS – Suspected Hardware Lock

Hey everyone,

I’ve been facing a persistent issue with my Seagate ST12000NM006J drive in TrueNAS, where the drive is stuck in a read-only mode, and I suspect it might be a hardware-level write protection problem.

The problem I am getting is [DEFAULT] Failed to wipe disk da1: [Errno 30] Read-only file system: ‘/dev/da1’

Here’s what I’ve tried so far:

  1. System Checks:

• Confirmed there were no ZFS pools using the drive.

• Ran zfs get readonly, and the readonly flag was off for all datasets.

• Stopped and restarted the drive using camcontrol stop /dev/da1 and camcontrol start /dev/da1.

  1. Attempted to Destroy GPT and Zero Out the Drive:

• Tried running gpart destroy -F /dev/da1 and dd if=/dev/zero of=/dev/da1 bs=1M count=32.

• Both commands failed, showing the “read-only file system” error.

  1. Encountered [DEFAULT] Failed to Wipe Disk da1:

• I received the error: [Errno 30] Read-only file system: ‘/dev/da1’ when attempting to wipe the disk through TrueNAS.

  1. Tried Forcing the Drive Using sysctl****:****

• I ran sysctl kern.geom.debugflags=0x10, which disables write protection in the kernel, but that didn’t resolve the issue either.

  1. Checked with sg_format****:****

• I attempted to format the drive using sg_format --format /dev/da1, but it failed with a “Data protect” error.

  1. Checked Drive Settings with camcontrol****:****

• I ran camcontrol modepage /dev/da1 -m 0x1c -P 3 to check if there was any obvious protection flag, but nothing showed up.

At this point, I’m thinking the drive might have some kind of hardware lock or firmware-level write protection that I can’t bypass through regular TrueNAS commands.

Has anyone else encountered this kind of issue with Seagate drives in TrueNAS? Do you have any suggestions for how I can fix or clear this lock? Is there a way to fully disable write protection on this drive through firmware or another method?

Thanks in advance for any help or insights!