On Tue, Nov 10, 2026 at 09:13:36PM +0000, Roderick wrote:
> I marked the whole disk as unused with FreeBSD command:
> 
> camcontrol security adaX -U user -s pass -e pass    # literally
> (sustitute only X with device nr)
> 
> If disc is frozen (seen with: camcontrol security adaX), hot unplug and
> plug data cable after 10 seconds.
> 
> I hope that is OK, and it would be interesting to know if can be done with
> OpenBSD.

The equivalent on OpenBSD would use /sbin/atactl and the secerase function.

Usually it's necessary to set a password on the drive using secsetpass before
the secerase function can be used.

Also, the OpenBSD kernel freeze-locks sata drives at boot time.  Once frozen,
drives are supposed to require a power cycle to enable the secerase function
again.

OpenBSD does not issue the freeze lock command again when resuming from
suspend/hibernate, so if the machine disconnects power to the drive when it
enters one of these modes, that is a possible way to re-enable the secerase
function without disconnecting cables.

(This is probably a bug.  I had a look at fixing it some time ago so that the
 freeze-lock command was re-issued on resume from hibernate, but I got busy
 with other things before getting it to work.)

Reply via email to