Io

hdparm:SECURITY_SET_PASS:輸入/輸出錯誤

  • March 21, 2016

我正在嘗試按照此處hdparm的建議使用安全擦除SSD 。

到目前為止,按照該指南中的指示工作正常,但我似乎無法解決此錯誤:

~ $ sudo hdparm --user-master m --security-set-pass NUL /dev/sda
security_password="NUL"

/dev/sda:
Issuing SECURITY_SET_PASS command, password="NUL", user=master, mode=high
SECURITY_SET_PASS: Input/output error

按照這裡的建議,我已經四處搜尋並測試了東西,但無濟於事。如果這不是一個選項,我還能如何深度擦除 SSD?

注意:是的,在硬碟“上”有一個 BIOS 密碼,因為它必須在啟動時輸入,但它(據我所知)並沒有連接到磁碟本身。


sudo hdparm -I /dev/sda:

/dev/sda:

ATA device, with non-removable media
   Model Number:       SanDisk SDSSDA240G                      
   Serial Number:      153655402044        
   Firmware Revision:  U21010RL
   Media Serial Num:   
   Media Manufacturer: 
   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: 9 8 7 6 5 
   Likely used: 9
Configuration:
   Logical     max current
   cylinders   16383   16383
   heads       16  16
   sectors/track   63  63
   --
   CHS current addressable sectors:   16514064
   LBA    user addressable sectors:  268435455
   LBA48  user addressable sectors:  468862128
   Logical  Sector size:                   512 bytes
   Physical Sector size:                   512 bytes
   Logical Sector-0 offset:                  0 bytes
   device size with M = 1024*1024:      228936 MBytes
   device size with M = 1000*1000:      240057 MBytes (240 GB)
   cache/buffer size  = unknown
   Form Factor: 2.5 inch
   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 = 1   Current = 1
   Advanced power management level: disabled
   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
      *    DOWNLOAD_MICROCODE
           Advanced Power Management feature set
           SET_MAX security extension
      *    48-bit Address feature set
      *    Device Configuration Overlay 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
      *    {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
      *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
      *    DMA Setup Auto-Activate optimization
           Device-initiated interface power management
      *    Software settings preservation
           Device Sleep (DEVSLP)
      *    Data Set Management TRIM supported (limit 8 blocks)
Security: 
   Master password revision code = 11822
       supported
       enabled
       locked
   not frozen
   not expired: security count
       supported: enhanced erase
   Security level high
   2min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 5001b44ed2285a3c
   NAA     : 5
   IEEE OUI    : 001b44
   Unique ID   : ed2285a3c
Checksum: correct
Device Sleep:
   DEVSLP Exit Timeout (DETO): 70 ms (drive)
   Minimum DEVSLP Assertion Time (MDAT): 31 ms (drive)

我電腦的 BIOS 上有密碼。

刪除密碼、重新啟動並重試上述命令可解決問題。

我的 BIOS 又有密碼了。

引用自:https://unix.stackexchange.com/questions/252265