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

前端之家收集整理的这篇文章主要介绍了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相关文章