{"id":769,"date":"2019-08-07T15:50:24","date_gmt":"2019-08-07T07:50:24","guid":{"rendered":"https:\/\/www.datarelab.com\/blog\/?p=769"},"modified":"2019-08-07T15:50:24","modified_gmt":"2019-08-07T07:50:24","slug":"%e4%bd%bf%e7%94%a8hdparm%e5%91%bd%e4%bb%a4%e5%8f%91%e9%80%81atasecure-erase%e6%8c%87%e4%bb%a4%e6%81%a2%e5%a4%8dssd%e7%a1%ac%e7%9b%98%e7%9a%84%e5%86%99%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/769.html","title":{"rendered":"\u4f7f\u7528hdparm\u547d\u4ee4\u53d1\u9001ATA\u201cSecure Erase\u201d\u6307\u4ee4\u6062\u590dSSD\u786c\u76d8\u7684\u5199\u6027\u80fd"},"content":{"rendered":"\n<p>SSD\u786c\u76d8\u968f\u7740\u4f7f\u7528\u4f1a\u4ea7\u751f\u5f88\u788e\u7247\uff0c\u968f\u7740\u788e\u7247\u7684\u589e\u52a0\u6027\u80fd\u4f1a\u5927\u5927\u964d\u4f4e\u3002\u5982\u679c\u786c\u76d8\u4e0a\u7684\u6570\u636e\u53ef\u4ee5\u5907\u4efd\u5230\u522b\u5916\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u7528hdparm\u53d1\u9001ATA \u201cSecure Erase\u201d\u6307\u4ee4\u53bb\u6e05\u7a7aSSD\u786c\u76d8\u4e2d\u7684\u6570\u636e\u7684\u65b9\u6cd5\uff0c\u628a\u786c\u76d8\u7684\u5199\u6027\u80fd\u6062\u590d\u5230\u6ca1\u6709\u788e\u7247\u65f6\u7684\u72b6\u6001\u3002<br>\n\u6ce8\u610f: \u8fd9\u4e2a\u64cd\u4f5c\u4f1a\u5220\u9664\u786c\u76d8\u4e0a\u6240\u6709\u7684\u6570\u636e\uff0c\u800c\u4e14\u8fd9\u4e9b\u6570\u636e\u4e0d\u80fd\u88ab\u6062\u590d\u3002&nbsp;<br>\n\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u4e0d\u5e78\u78b0\u5230\u4e86\u7684\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838bugs\u6216SSD\u786c\u76d8\u7684fireware bugs\uff0c\u53ef\u80fd\u4f1a\u786c\u76d8\u4e0d\u53ef\u5199\u6216\u64cd\u4f5c\u7cfb\u7edfcrash\u3002<br>\n\u53d1\u9001 ATA Security Erase\u6307\u4ee4\u65f6\u9700\u8981\u5148\u7ed9\u786c\u76d8\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801\uff0c\u5f53\u7136\u540e\u9762\u6211\u4eec\u518d\u53d1ATA Security Erase\u6307\u4ee4\u540e\u8fd9\u4e2a\u5bc6\u7801\u4f1a\u88ab\u5220\u9664\u6389\u7684\u3002<br>\n&nbsp;<br>\n\u64cd\u4f5c\u6b65\u9aa4\uff1a<br>\n\u7b2c\u4e00\u6b65\uff1a<br>\n\u5148\u67e5\u770b\u786c\u76d8\u7684\u72b6\u6001\uff0cX\u4ee3\u8868sda,sdb,sdc\u7b49\u5177\u4f53\u4f60\u8981\u64cd\u4f5c\u7684\u786c\u76d8\uff1a<br>\nhdparm -I \/dev\/X<br>\n\u4e3b\u8981\u770b\u8f93\u51fa\u4e2d\u7684Security\u90e8\u5206\uff0c\u5982\u679c\u7ed3\u679c\u4e2d\u51fa\u73b0\u201cnot frozen\u201d\uff0c\u90a3\u4e48\u8fd9\u4e2a\u786c\u76d8\u662f\u53ef\u4ee5\u7528ATA Security Erase\u547d\u4ee4\u53bb\u6e05\u9664\u786c\u76d8\u788e\u7247\u7684\uff0c<br>\nSecurity:&nbsp;<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Master password revision code = 65534<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supported<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; enabled<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; locked<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not&nbsp;&nbsp;&nbsp;&nbsp; frozen<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; expired: security count<br>\n\u5982\u679c\u7ed3\u679c\u662f\u201cfrozen\u201d\u7684\uff0c\u6709\u53ef\u80fd\u662f\u4e3b\u673a\u7684BIOS\u7981\u6b62\u53d1\u9001ATA Security Erase\u6307\u4ee4\uff0c\u8fd9\u9700\u8981\u627e\u5230BIOS\u4e2d\u6253\u5f00\u8fd9\u4e2a\u9650\u5236\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801<\/p>\n\n\n\n<p>hdparm --user-master u --security-set-pass&nbsp;user123 \/dev\/X<\/p>\n\n\n\n<p>user123\u662f\u8bbe\u7f6e\u7684\u4e00\u4e2a\u5bc6\u7801.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">hdparm --user-master u --security-set-pass user123 \/dev\/sde<\/h1>\n\n\n\n<p>security_password=\"user123\"<\/p>\n\n\n\n<p>\/dev\/sde:<br>\n&nbsp;Issuing SECURITY_SET_PASS command, password=\"user123\", user=user, mode=high<br>\nSECURITY_SET_PASS: Invalid exchange<\/p>\n\n\n\n<p>\u7ed3\u679c\u53ef\u80fd\u662f\u201cSECURITY_SET_PASS: Invalid exchange\u201d\uff0c\u4f46\u5bc6\u7801\u4e5f\u53ef\u80fd\u662f\u8bbe\u7f6e\u4e0a\u4e86\uff0c\u53ef\u4ee5\u4f7f\u7528hdparm -I \/dev\/X\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u4e0a\u4e86\uff0c\u8f93\u51fa\u7ed3\u679c\u5e94\u8be5\u662f\u201cenabled\u201d\uff1a<\/p>\n\n\n\n<p>Security:&nbsp;<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Master password revision code = 65534<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supported<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; locked<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; frozen<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; expired: security count<\/p>\n\n\n\n<p>\u7b2c\u4e09\u6b65\uff1a\u6267\u884c\u5220\u9664\u64cd\u4f5c<\/p>\n\n\n\n<p>hdparm --user-master u --security-erase user123 \/dev\/X<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">hdparm --user-master u --security-erase user123 \/dev\/sde&nbsp;&nbsp;&nbsp;<\/h1>\n\n\n\n<p>security_password=\"user123\"<\/p>\n\n\n\n<p>\/dev\/sde:<br>\n&nbsp;Issuing SECURITY_ERASE command, password=\"user123\", user=user<br>\nSECURITY_ERASE: Invalid exchange&nbsp;<\/p>\n\n\n\n<p>\u7136\u540e\u518d\u68c0\u67e5Security\u88ab\u7981\u6b62\u4e86\uff1a<\/p>\n\n\n\n<p>\u4f7f\u7528hdparm -I \/dev\/X\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u4e0a\u4e86\uff0c\u8f93\u51fa\u7ed3\u679c\u5e94\u8be5\u662f\u201cnot enabled\u201d\uff1a<\/p>\n\n\n\n<p>Security:&nbsp;<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Master password revision code = 65534<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supported<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enabled<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; locked<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; frozen<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not&nbsp;&nbsp;&nbsp;&nbsp; expired: security count<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSD\u786c\u76d8\u968f\u7740\u4f7f\u7528\u4f1a\u4ea7\u751f\u5f88\u788e\u7247\uff0c\u968f\u7740\u788e\u7247\u7684\u589e\u52a0\u6027\u80fd\u4f1a\u5927\u5927\u964d\u4f4e\u3002\u5982\u679c\u786c\u76d8\u4e0a\u7684\u6570\u636e\u53ef\u4ee5\u5907\u4efd\u5230\u522b\u5916\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u7528hd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-769","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":2968,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/769\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}