#28 security-erase timeout too short

v1.0 (example)
closed-fixed
nobody
None
5
2014-09-27
2009-12-11
Karsten Hopp
No

hdparm has a hard-coded timeout for the --security-erase and
--security-erase-enhanced commands of 2 hours.

However, this timeout value is not nearly long enough for current large hard
drives:

$ hdparm -I /dev/sdb | grep -E 'Model|device size|ERASE'
Model Number: WDC WD15EADS-00P8B0
device size with M = 1024*1024: 1430799 MBytes
device size with M = 1000*1000: 1500301 MBytes (1500 GB)
348min for SECURITY ERASE UNIT. 348min for ENHANCED SECURITY ERASE UNIT.

In other words, it will take just under 6 hours for the SECURITY ERASE command
to complete on this drive.

Discussion

  • Karsten Hopp
    Karsten Hopp
    2009-12-11

    Patch from James Ralston, Red Hat bugzilla #536731

     
    Attachments
  • Tim Small
    Tim Small
    2010-11-24

    Fixed in v9.31 according to the changelog:

    "use drive-supplied timeout (plus a little) for security-erase commands"

     
  • Mark Lord
    Mark Lord
    2014-09-27

    hdparm-9.44 now has even longer timeouts.

     
  • Mark Lord
    Mark Lord
    2014-09-27

    • status: open --> closed-fixed
    • Group: --> v1.0 (example)