Re: SSD erase question

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Mon, 21 Mar 2022 12:45:18 UTC
21.03.2022 19:14, Damian Weber wrote:
> 
> Hi all,
> 
> I'd like to have an answer on a secure FreeBSD way to erase 
> SSDs before giving these away to someone for reusing it. 
> 
> Is the following enough to protect confidential data 
> previously stored there?
> 
> 1)  dd : overwriting with random bits (complete capacity)
> 2)  gpart create
> 3)  gpart add
> 4)  newfs

First, there is a command trim(8) that is easier to use but it gives no guarantee of "secure erase" in TRIM.
Second, there is "camcontrol security -e" for secure erase, see camcontrol(8) manual page, EXAMPLES section.