hdparm 使用正确的密码编码解锁 ssd

hdparm 使用正确的密码编码解锁 ssd

我有一个旧的受密码保护的 SSD 通过 USB 连接到我的 Linux 系统。我尝试使用hdparm

问题是我的密码是./perspective(现在不重要了,因为我只将它用于 SSD,而没有用于其他地方),我认为由于特殊字符./及其错误的编码,我现在无法使用

hdparm --user-master u --security-unlock ./perspective /dev/sdc
........................................
  security_password: "./perspective"

/dev/sdc:
 Issuing SECURITY_UNLOCK command, password="./perspective", user=user
SECURITY_UNLOCK: Input/output error

根据这个帖子我必须使用“十六进制扫描码”来识别特殊字符。所以我尝试了

hdparm --user-master u --security-unlock $(printf '\x34\x35\x19\x12\x13\x1F\x19\x12\x2E\x14\x17\x2F\x12') /dev/sdc
........................................
security_password: "45./"

/dev/sdc:
 Issuing SECURITY_UNLOCK command, password="45./", user=user
SECURITY_UNLOCK: Input/output error

hdparm -I /dev/sdc给我

/dev/sdc:

ATA device, with non-removable media
    Model Number:       ADATA SP900                             
    Serial Number:      2D3020001288        
    Firmware Revision:  5.0.7a  
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Used: unknown (minor revision code 0x0110) 
    Supported: 8 7 6 5 
    Likely used: 8
Configuration:
    Logical     max current
    cylinders   16383   16383
    heads       16  16
    sectors/track   63  63
    --
    CHS current addressable sectors:   16514064
    LBA    user addressable sectors:  250069680
    LBA48  user addressable sectors:  250069680
    Logical  Sector size:                   512 bytes
    Physical Sector size:                   512 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:      122104 MBytes
    device size with M = 1000*1000:      128035 MBytes (128 GB)
    cache/buffer size  = unknown
    Nominal Media Rotation Rate: Solid State Device
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16  Current = 16
    Advanced power management level: 254
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4 
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled Supported:
       *    SMART feature set
       *    Security Mode feature set
       *    Power Management feature set
       *    Write cache
            Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
       *    Advanced Power Management feature set
            Power-Up In Standby feature set
       *    SET_FEATURES required to spinup after power up
       *    48-bit Address feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    WRITE_{DMA|MULTIPLE}_FUA_EXT
       *    64-bit World wide name
       *    IDLE_IMMEDIATE with UNLOAD
            Write-Read-Verify feature set
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    Device automatic Partial to Slumber transitions
       *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
            DMA Setup Auto-Activate optimization
            Device-initiated interface power management
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Data Tables (AC5)
       *    SET MAX SETPASSWORD/UNLOCK DMA commands
       *    Data Set Management TRIM supported (limit 1 block)
       *    Deterministic read data after TRIM
Security: 
    Master password revision code = 22616
        supported
        enabled
        locked
    not frozen
    not expired: security count
    not supported: enhanced erase
    Security level high
    2min for SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 0000000000000000
    NAA     : 0
    IEEE OUI    : 000000
    Unique ID   : 000000000
Checksum: correct

PS:请不要标记为重复这个问题因为我最感兴趣的是找到正确的密码编码,但答案中没有与我的设备匹配的主密码。

答案1

尝试hdparm --user-master m --security-unlock NULL /dev/something

背景故事:我有一台 SX900,固件版本也是 5.0.7a。使用 ADATA Toolbox 安全擦除驱动器并重新启动后,我被告知驱动器被密码锁定。ADATA 实际上在他们的程序手册中有一章介绍了这种情况,并提供了有用的建议Use a third-party tool to unlockUnlock Password: ADATA。只是我不知道程序实际上发送了什么,但驱动器不会接受--user-master u --security-unlock ADATA。我几乎放弃了驱动器,直到我一时兴起尝试了一个空白主密码。

我主要回复这个,所以当我再次软砖这个驱动器时,我就能用谷歌搜索我过去的答案了:V

相关内容