TigerOnVaseline/ata-secure-erase Star41 A bash script to securely erase ATA disks, runs the SECURITY ERASE UNIT command using hdparm. If successful, clears all SSD memory cells (should reset a drive to factory write-performance state.)
asecure erase or manual TRIM(depending on the specific SSD) has been performed Enabling the Host Protected Area Warning: Only enable the Host Protected Area (HPA) on SSDs that do not contain any data. Otherwise, there is the threat of data loss. ...
AdvancedPM=no WriteCache=enabled Drive conforms to: Reserved: ATA/ATAPI-1,2,3,4,5,6,7 2. Get hard disk identification information in a detailed format with the "hdparm -I" command. I see lot of useful information. herong$ sudo hdparm -I /dev/sda /dev/sda: ATA device, with non-re...
下载:https://github.com/eyjian/libmooon/blob/master/shell/find_deleted_files.sh。
The documentation warns explicitly about using the procedure because, in the worst case, secure erase could make the whole SSD unusable. If you want to use this delete function anyway, first call up the identification information with: hdparm -I /dev/sdb Under Security, the line supported: ...
SSD硬盘随着使用会产生很碎片,随着碎片的增加性能会大大降低。如果硬盘上的数据可以备份到别外,然后就可以用hdparm发送ATA “Secure Erase”指令去清空SSD硬盘中的数据的方法,把硬盘的写性能恢复到没有碎片时的状态。 注意: 这个操作会删除硬盘上所有的数据,而且这些数据不能被恢复。