加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 17:03:00 所属栏目:Linux 来源:网络整理
导读:擦除支持 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
擦除支持 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读