Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We have a lot of drives that need to be sanitized. NIST SP 800-88 recommends software that uses the ATA Secure Erase command. That's apparently the only way to be sure that the drive is properly wiped, due to bad-block remapping and such.

I know that this functionality is available in hdparm. The problem with that approach is that it is inconsistent on multiple platforms, occasionally times out, doesn't have error-checking logic, and doesn't check the resulting drive to make sure that it has, in fact, been erased. So a proper program might use hdparm, but hdparm by itself isn't an answer.

I'm looking for open source software that implements ATA Secure Erase. Ideally it will be a bootable disk image like DBAN, but it will use the ATA command.

share|improve this question

closed as off-topic by random Sep 20 at 17:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – random
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Re: HDparm timeout. - The time out (after 2 hours) is a known problem for HDparm versions older than 9.31. A newer version should not have that problem. –  Hennes Jul 25 '12 at 12:51
    
Thanks. That's good to know. Unfortunately, it's still the case that hdparm by itself isn't the answer... It may be that the answer is modifying DBAN to handle hdparm, but the DBAN author hasn't responded to my email... –  vy32 Jul 26 '12 at 14:48
    
Luckily the source for DBAN is available. If you do manage to change that then please post it here. I would be interested in it. –  Hennes Jul 26 '12 at 15:51

3 Answers 3

up vote 2 down vote accepted

Parted Magic or MHDD (through FASTERASE option).

Also HDD LLF and HDD Wipe Tool.

share|improve this answer

hdparm can do this. You will find it installed by default on many operating systems. (e.g. on FreeBSD and GNU/Linux).

Check either man hdparm or this link.

share|improve this answer
    
Yes, I should have been more specific. I'll make an edit. –  vy32 Jul 25 '12 at 2:40

This is more details on using hdparm. There is a complete tutorial here: https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase Essentially, the current hdparm does not have the issues mentioned in the question. In 4 steps, you can check that secure erase can be used, issue the secure erase command and finally confirm that the secure erase is complete. A major caveat is that you should not use hdparm secure erase on USB or Firewire connected drives.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.