summaryrefslogtreecommitdiff
path: root/scripts/root/ata-secure-erase
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/root/ata-secure-erase')
-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"