微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.

原文地址:https://www.jb51.cc/linux/399207.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐