硬盘解锁

硬盘有个功能可以整盘锁定, 用hdparm -I /dev/sda 可以看到 Security 段有提示 locked,

这里可以使用硬盘的master密码进行解锁:

hdparm --user-master m --security-unlock ***** /dev/sda

hdparm --user-master m --security-disable ****** /dev/sda


master密码清单:

List of hard disk ata master passwords:
 
SEAGATE -> “Seagate” +25 spaces
 
MAXTOR
series N40P -> “Maxtor INIT SECURITY TEST STEP ” +1 or +2 spaces
series N40P -> “Maxtor INIT SECURITY TEST STEP F”
series 541DX -> “Maxtor” +24 spaces
series Athena (D541X model 2B) and diamondmax80 -> “Maxtor”
 
WESTERN DIGITAL -> “WDCWDCWDCWDCWDCWDCWDCWDCWDCWDCWD”
or “WDCWDCWDCWDCWDCWDCWDCWDCWDCWDCW”
 
FUJITSU -> 32 spaces
 
SAMSUNG -> “ttttttttttttttttttttttttttttttttt” (32 times t)
 
IBM
series DTTA -> “CED79IJUFNATIT” +18 spaces
series DJNA -> “VON89IJUFSUNAJ” +18 spaces
series DPTA -> “VON89IJUFSUNAJ” +18 spaces
series DTLA -> “RAM00IJUFOTSELET” +16 spaces
series DADA-26480 (6,4gb) -> “BEF89IJUF__AIDACA” +15 spaces
 
HITACHI series DK23AA, DK23BA and DK23CA -> 32 spaces
 
TOSHIBA -> 32 spaces
 
For xbox hdds try “XBOXSCENE” or “TEAMASSEMBLY” 
 

hdparm操作硬盘加密功能的帮助信息: 

root@localhost:~# hdparm  --security-help
 
ATA Security Commands:
 Most of these are VERY DANGEROUS and can destroy all of your data!
 Due to bugs in older Linux kernels, use of these commands may even
 trigger kernel segfaults or worse.  EXPERIMENT AT YOUR OWN RISK!
 
 --security-freeze           Freeze security settings until reset.
 
 --security-set-pass PASSWD  Lock drive, using password PASSWD:
                                  Use 'NULL' to set empty password.
                                  Drive gets locked if user-passwd is selected.
 --security-prompt-for-password   Prompt user to enter the drive password.
 
 --security-unlock   PASSWD  Unlock drive.
 --security-disable  PASSWD  Disable drive locking.
 --security-erase    PASSWD  Erase a (locked) drive.
 --security-erase-enhanced PASSWD   Enhanced-erase a (locked) drive.
 
 The above four commands may optionally be preceded by these options:
 --security-mode  LEVEL      Use LEVEL to select security level:
                                  h   high security (default).
                                  m   maximum security.
 --user-master    WHICH      Use WHICH to choose password type:
                                  u   user-password (default).
                                  m   master-password