2020-03-23 06:33:18 +00:00
|
|
|
# hdparm
|
|
|
|
|
|
|
|
> Get and set SATA and IDE hard drive parameters.
|
2021-09-02 19:33:49 +01:00
|
|
|
> More information: <https://manned.org/hdparm>.
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Request the identification info of a given device:
|
|
|
|
|
2024-06-11 05:47:57 +01:00
|
|
|
`sudo hdparm -I {{/dev/device}}`
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Get the Advanced Power Management level:
|
|
|
|
|
2024-06-11 05:47:57 +01:00
|
|
|
`sudo hdparm -B {{/dev/device}}`
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Set the Advanced Power Management value (values 1-127 permit spin-down, and values 128-254 do not):
|
|
|
|
|
2024-06-11 05:47:57 +01:00
|
|
|
`sudo hdparm -B {{1}} {{/dev/device}}`
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Display the device's current power mode status:
|
|
|
|
|
2024-06-11 05:47:57 +01:00
|
|
|
`sudo hdparm -C {{/dev/device}}`
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Force a drive to immediately enter standby mode (usually causes a drive to spin down):
|
|
|
|
|
2024-06-11 05:47:57 +01:00
|
|
|
`sudo hdparm -y {{/dev/device}}`
|
2020-03-23 06:33:18 +00:00
|
|
|
|
|
|
|
- Put the drive into idle (low-power) mode, also setting its standby timeout:
|
|
|
|
|
|
|
|
`sudo hdparm -S {{standby_timeout}} {{device}}`
|
2022-08-05 04:12:10 +01:00
|
|
|
|
|
|
|
- Test the read speed of a specific device:
|
|
|
|
|
|
|
|
`sudo hdparm -tT {{device}}`
|