Better error handling for hdparm
After running hdparm --user-master u --security-set-pass lcrs /dev/%(dev)s && hdparm --user-master u --security-erase lcrs /dev/%(dev)s
, we should probably try sending a command like hdparm --user-master u --security-disable lcrs /dev/%(dev)s
.
This is to avoid having drives with a password set in case the wipe is interrupted.
Edited by benjaoming