Advertisement
Ubidibity

SecureWipe-sdc

Aug 27th, 2019
1,195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. It goes without saying this is a destructive process. Targeting the right device is critical, and the data will be irretrievable.
  2.  
  3. Do not attempt this with a USB disk (not that I've tried, but that's what I've read)
  4.  
  5. The purpose of a full security wipe vs just a shred (though I'll generally do them both) is that this should also wipe reallocated sectors for that obscure case where you sell a drive on ebay and the one reallocated sector has your banking information in it...
  6.  
  7. The disk will appear 'dead' during this process (at least on my controller) and disk query commands against that device could time out or hang. If you're using Veeam or something that's likely to try to access the device during it's extended wipe window you might want to disable that job for the duration of the wipe.
  8.  
  9. You can use any password you like. I'm not aware that a more complex password results in a better wipe, and it's removed upon successful erasure.
  10.  
  11. The commands (and selected output) to use at your own risk:
  12. hdparm --user-master u --security-mode m --security-set-pass Drei /dev/sdc security_password="Drei"
  13.  
  14. /dev/sdc:
  15. Issuing SECURITY_SET_PASS command, password="Drei", user=user, mode=max
  16. time hdparm --user-master u --security-erase-enhanced Drei /dev/sdc security_password="Drei"
  17.  
  18. /dev/sdc:
  19. Issuing SECURITY_ERASE command, password="Drei", user=user
  20.  
  21. (hdparm -I /dev/sdc would tell you how long thats going to take and if it's even supported)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement