A compact guide to measuring and tweaking ATA/SATA disk parameters safely from the shell. 11.06.2026 | reading time: 2 min hdparm is a small but powerful command-line tool to query and tune ATA and SATA drive parameters; he will help you measure raw read performance and change power-management, cache and spindown behavior from the shell. Quick hands-on benchmark Measure disk speed with a single command and compare results; for example run `sudo hdparm -tT /dev/sda` and you might see: ```/dev/sda: Timing cached reads: 2022 MB in 2.00 seconds = 1011.00 MB/sec; Timing buffered disk reads: 2048 MB in 3.00 seconds = 682.67 MB/sec``` which gives a quick cached and buffered read baseline to compare after changing settings. Practical tweaks you can try Try viewing identify data with `sudo hdparm -I /dev/sda`, enable write caching with `sudo hdparm -W1 /dev/sda`, set aggressive power management with `sudo hdparm -B 127 /dev/sda` or adjust spindown with `sudo hdparm -S 240 /dev/sda`; always run as root, test with `-tT` before and after, and remember modern kernels or NVMe devices may ignore or replace some ATA-specific flags. Risks and compatibility notes hdparm can change persistent drive behavior and some operations can cause data loss or prevent booting on older systems; avoid speculative parameters on production servers, note that many options affect only ATA/SATA devices (use nvme-cli for NVMe), and check kernel messages and drive manuals before applying permanent changes. When to reach for other tools Use hdparm for quick benchmarks and low-level ATA tweaks but complement it with health checks and device discovery tools when diagnosing failures or planning changes, and always document any persistent hdparm settings you apply in startup scripts or systemd units so they survive reboots. Join Bits & Bytes Academy First class LINUX exam preparation. storage utilities troubleshooting