hdparm 安全擦除错误:“ERASE_PREPARE:无效参数”

hdparm 安全擦除错误:“ERASE_PREPARE:无效参数”

(虽然我在玩火,但请向菜鸟提供建议......谢谢)

接着,

尝试对 2TB 损坏的 HDD 进行低级格式化,以便它可以使用 SMART 自我标记坏扇区/块。

遵循以下建议https://superuser.com/questions/203305/how-do-i-perform-a-low-level-format-of-a-sandforce-solid-state-disk/485949#485949

但是从这个命令得到了这个输出:

sudo hdparm --user-master u --security-erase llformat /dev/sdc
security_password="llformat"

/dev/sdc:
 Issuing SECURITY_ERASE command, password="llformat", user=user
ERASE_PREPARE: Invalid argument

我已成功启用安全性。以下是输出hdparm -I /dev/sdc

/dev/sdc:

ATA device, with non-removable media
    Model Number:       WDC WD20EARS-00MVWB0                    
    Serial Number:      WD-WCAZA7166342
    Firmware Revision:  51.0AB51
    Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
Standards:
    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:  268435455
    LBA48  user addressable sectors: 3907029168
    Logical/Physical Sector size:           512 bytes
    device size with M = 1024*1024:     1907729 MBytes
    device size with M = 1000*1000:     2000398 MBytes (2000 GB)
    cache/buffer size  = unknown
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, with device specific minimum
    R/W multiple sector transfer: Max = 16  Current = 0
    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
            Power-Up In Standby feature set
       *    SET_FEATURES required to spinup after power up
            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
       *    64-bit World wide name
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    NCQ priority information
            DMA Setup Auto-Activate optimization
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Write Same (AC2)
       *    SCT Features Control (AC4)
       *    SCT Data Tables (AC5)
            unknown 206[12] (vendor specific)
            unknown 206[13] (vendor specific)
Security: 
    Master password revision code = 65534
        supported
        enabled
    not locked
    not frozen
    not expired: security count
        supported: enhanced erase
    Security level high
    378min for SECURITY ERASE UNIT. 378min for ENHANCED SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 50014ee205d8fa16
    NAA     : 5
    IEEE OUI    : 0014ee
    Unique ID   : 205d8fa16
Checksum: correct

我不需要输入密码,是吗?

答案1

好吧,我现在可能承认失败了,但我对未来的用户有答案。

在我的情况下,驱动器连接到 SATA-USB 电缆(12 英镑的 ebay 商品)。显然,其中一些甚至外部驱动器支架都不会将完整的 ATA 命令传递给驱动器。hdparm 的作者 Mark Lord 给我写了两行说明该怎么做,第一行是:

该驱动器应直接连接到主板的内部 SATA 控制器

Ubuntu.com 上的手册页

hdparm 为 Linux SATA/PATA/SAS“libata”子系统和较旧的 IDE 驱动程序子系统支持的各种内核接口提供了命令行接口。 许多 较新的(2008 年及以后)USB 驱动器外壳现在也支持“SAT”(SCSI-ATA 命令转换),因此也可以与 hdparm 一起使用

去引用Linux 杂志

Hdparm 接受任何连接到 (E)IDE、SATA 或 SAS 接口的设备作为大容量存储,因此包括 DVD 驱动器和 SSD。USB 转 IDE 适配器经常会导致问题,因为它们不会将 (完整的) ATA 或 ATAPI 命令传输到驱动器。hdparm 提供的信息取决于设备。

我使用的是小型上网本,因此无法通过带状线直接连接到主板,也无法访问其他机器。太沮丧了!

相关内容