summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-01-20 10:23:34 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-01-20 10:23:34 -0700
commit9576343931a5b9a90d7bbf7770499c5726526a24 (patch)
tree05baaccee8920dfe615b2e2c490417115782b416 /scripts
parentb28656fb9c4670ec242cd8748d50f320a749ec86 (diff)
downloaddotfiles-9576343931a5b9a90d7bbf7770499c5726526a24.tar.gz
check whether frozen again & comment about unfreezing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/root/ata-secure-erase3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/root/ata-secure-erase b/scripts/root/ata-secure-erase
index 480e0acd..2a998904 100755
--- a/scripts/root/ata-secure-erase
+++ b/scripts/root/ata-secure-erase
@@ -43,6 +43,8 @@ fi
# # uncomment if wanted when running this script
hdparm -I "$device" | grep -q "not frozen"
+# ^ if it ends up frozen, suspending to RAM and resuming often works
+# to unfreeze
hdparm --user-master u --security-set-pass Eins "$device"
! ( hdparm -I "$device" | grep -q "not enabled" )
@@ -50,6 +52,7 @@ hdparm --user-master u --security-set-pass Eins "$device"
# drive may not support --security-erase-enhanced and so might need to
# change following line to use --security-erase
date
+hdparm -I "$device" | grep -q "not frozen"
time hdparm --user-master u --security-erase-enhanced Eins "$device"
date
hdparm -I "$device" | grep -q "not enabled"