Get/set disk parameters
high risk
hdparm -I <device>Identify before changing anythingQueries disk info and benchmarks; can change power, cache and security features.
| Flag | Meaning |
|---|---|
-I | Identify device |
-t | Benchmark reads |
--security-erase --security-erase | Secure erase⚠ Destroys all data. |
hdparm -I /dev/sdaDrive info · explain & risk-check →hdparm -t /dev/sdaRead speed test · explain & risk-check →Reference text is hand-written and may be incomplete — check man hdparm for your version. Test destructive commands on a non-production system first.