created: 2025-06-09 16:04:16 (+00:00; UTC; UTC)
last modified: 2025-06-09 16:13:33 (+00:00; UTC; UTC)

ATA Cheat Sheet

Device Info


hdparm -I /dev/sda

Security: 
	Master password revision code = 1
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
	not	supported: enhanced erase
	82min for SECURITY ERASE UNIT.

Check for not frozen. S3 or power disconnect to unfreeze in case BIOS freezed device on startup.
Maybe: -w Perform device reset (DANGEROUS)

Set Password - Always needed before any Secure Erase


hdparm --user-master u --security-set-pass pass /dev/sda

Enhanced Secure Erase


time hdparm --user-master u --security-erase-enhanced pass /dev/sda

Secure Erase


time hdparm --user-master u --security-erase pass /dev/sda

Sanitize

❓🤔❓


 --sanitize-block-erase      Start block erase operation
 --sanitize-crypto-scramble  Change the internal encryption keys that used for used data
 --sanitize-overwrite  PATTERN  Overwrite the internal media with constant PATTERN
 --sanitize-overwrite-passes COUNT  Number of overwrite passes from 0 to 7, default 0 means 16 passes
 --sanitize-status           Show sanitize status information

Sources/Links

2025-06-09