Talk:Solid state drive/Memory cell clearing
the lt;dr section
from the hdparm manual page:
hdparm provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS "libata" subsystem and the older IDE driver subsystem. Many newer (2008 and later) USB drive enclosures now also support "SAT" (SCSI-ATA Command Translation) and therefore may also work with hdparm. Eg. recent WD "Passport" models and recent NexStar-3 enclosures. Some options may work correctly only with the latest kernels.
It may be possible to use SATA/USB interfaces for this purpose, but without a way to test whether or not a particular interface will support this, I'm reluctant to modify the article contents.
Hi, I think this article could be improved by adding information about how to clear nvme devices. The proposed commands do not work for nvme SSDs. I believe the right tool is nvme from nvme-cli/community, more specifically, I'm currently reading the
nvme format man page and trying to figure what is needed. Wild Penguin (talk) 14:04, 6 November 2019 (UTC)
- I agree, we should add an NVME section. To do a secure erase, simply '"nvme format -s1 /dev/nvme0n1"'. There may be other useful commands we should list as well. Necklace (talk) 19:34, 27 March 2020 (UTC)
How to erase a USB only SSD?
Your article states:
Do not proceed with this if the target drive is not connected directly to a SATA/NVMe interface. Issuing the Secure Erase/Format/Sanitize command on a drive connected via USB or a SAS/RAID card could potentially brick the drive!
And indeed, this is also what https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase says.
But, but: there are some SSD drives that are only connected to a computer via USB. (so called external SSDs).
How to erase them?
(There are also external USB only HDDs, but in this case erasing is not an issue, simply overwrite them. But in case of SSHDs it gets complicated again...)