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.