linux – 如何向SSD发送“ATA Secure Erase”命令?

擦除支持 SED的SSD的一个非常好的方法是到 change the password/key.但是那些没有SED支持的人怎么办?

This article

Fortunately it is possible to erase most SSDs,though this is closer
to a “reset” than a wipe. The “ATA Secure Erase” command instructs the
drive to flush all stored electrons,forcing the drive to “forget” all
stored data. This command essentially resets all available blocks to
the “erase” state,which is what TRIM uses for garbage collection
purposes.

我想这可以通过hdparm完成,所以有谁知道这样做的命令是什么?

解决方法

以下是步骤:

>查看功能是否未冻结. hdparm -I / dev / sdX.如果是(通常是通过BIOS),解冻它的一个好方法是暂停计算机,然后恢复 – 然后驱动器上电,但没有BIOS.
>重要事项:设置密码.这将启用驱动器的安全功能:hdparm –user-master u –security-set-pass password / dev / sdX

>最后,擦除驱动器:hdparm –user-master u –security-erase password / dev / sdX

此处详细描述了该过程:
https://wiki.archlinux.org/index.php/SSD_memory_cell_clearing

我的驱动器示例:

Security: 
    Master password revision code = 65534
        supported
    not enabled
    not locked
        frozen
    not expired: security count
    not supported: enhanced erase
    2min for SECURITY ERASE UNIT.

所以它被冻结了…现在我暂停……并……

Security: 
    Master password revision code = 65534
        supported
    not enabled
    not locked
    not frozen
    not expired: security count
    not supported: enhanced erase
    2min for SECURITY ERASE UNIT.

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...