S.M.A.R.T. drive checking has never been easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
196 B

  1. #!/bin/bash
  2. set -v
  3. sudo /sbin/hdparm -I $1 | grep SECURITY\ ERASE
  4. sudo /sbin/hdparm --user-master u --security-set-pass GEHEIM $1
  5. time sudo /sbin/hdparm --user-master u --security-erase GEHEIM $1