hdparm linux erase multiple drives.

194 views
Skip to first unread message

wayne horner

unread,
Apr 3, 2021, 5:59:35 PM4/3/21
to datarecoveryce.
Hi

trying to use hdparm to erase multiple drives at once

but hdparm seems unable to start a second instance

I could use dd but dd uses processor time and I have a box with 45 sata bays

with hdparm secureerase I can issue one command to each drive

but hdparm is not cooperating

I looked at hddsupertool but if its just writing then its the same as dd.

When I used to do a lot more drive erasing I used a trick with mtl
not mtl the dos tool - forgot what its called...

we would power up 20 hard drives
then connect the sata cable
detect it
password it
the secure erase start
at this point you can carefully unplug the sata cable
and the drive will continue erasing by itself
except hitachis - they detecrted when the sata was disconnected and stopped.
A few hours later we would go through and make sure the password was cleared on all the drives - that would indicate that the secure erase finished.



Alandata Data Recovery -  (949)287-3282  
"Cleanroom Data Recovery of RAID, VMware, Network Attached Storage, Linux, Tape, Disk, Forensics"

Markus Bauer

unread,
Apr 4, 2021, 7:03:04 AM4/4/21
to DataRecoveryCertification
Sorry I have no idea how to fix that issue but I maybe a workaround.

I use a CRU Drive Erazer Ultra in case a client need a report for the deletion of the data. The CRU device also do SAS, SATA and IDE. Otherwise I use a few simple docks like that one: https://www.alza.cz/evolveo-hdd-d4537104.htm?kampan=adw4_prislusenstvi-pro-it-tv_pla_all_obecna-css_externi-boxy_c_1003794___GK598b_456135983247_~109587574027~ and clone a empty disk over a full one. 

They are really cheap and do the job. I think the trick is to use multiple devices and not one device which can do multiple drives. I have also the DD3000 DR device which is capeable of cloning and testing drives and the DFL URE. That ones can do a write-test and so I can wipe drives which fail on the docs.

On Linux you could use:
  • wipe
  • srm (maybe that is the one you searched)
  • scrub
... but I am not sure which one would not use the CPU.

Did you use /dev/random oder /dev/zero as inputfile for dd?


Alandata Recovery

unread,
Apr 4, 2021, 7:38:12 PM4/4/21
to datarecoveryce.
i used /dev/zero

Thanks for looking for these.
They appear to be all variations of dd with extra passes of randoms.
I want to issue a single command to the drive and let it do the wiping independent of the cpu.
I could write something in C I guess.
I wonder if there is a scripting method with hddsupertool.

Wipe is pretty funny.

I just looked up wipe...
and read this
image.png
Someone is watching too much CSI...

This is the 2006 version of wipe... so guess thats what they thought back then.



--
Data Recovery Certification Group / for issue with google group please email sc...@myharddrivedied.com
---
You received this message because you are subscribed to the Google Groups "DataRecoveryCertification" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datarecoverycertif...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/datarecoverycertification/7b46140e-7ced-4939-a0a0-e58e7f4ba776n%40googlegroups.com.


--
Alandata Data Recovery -  (949)287-3282  
"Cleanroom Data Recovery of RAID, VMware, NAS, Linux, Tape, Disk, Forensics"

Markus Bauer

unread,
Apr 4, 2021, 8:01:13 PM4/4/21
to DataRecoveryCertification
You could also use Python - I guess if you precalculate a block and just write that block repeatingly to a drive in a thread that should work. That script could be done in a few lines of code. 

Yes that is funny - in the german speaking area are recommandations from the BSI (minitry of security in the infomation technology) to wipe drives with a 3 pass erase if they are biger then 80GB and for 80GB or below they recommand a 7-pass erase. They belive till today there is a way with MFM or other technologies.

How much drives in total you need to wipe?

Reply all
Reply to author
Forward
0 new messages