mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
hdparm: add page (#3915)
This commit is contained in:
parent
6a1ca6bbac
commit
3ae4f2c401
1 changed files with 27 additions and 0 deletions
27
pages/linux/hdparm.md
Normal file
27
pages/linux/hdparm.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# hdparm
|
||||
|
||||
> Get and set SATA and IDE hard drive parameters.
|
||||
|
||||
- Request the identification info of a given device:
|
||||
|
||||
`sudo hdparm -I /dev/{{device}}`
|
||||
|
||||
- Get the Advanced Power Management level:
|
||||
|
||||
`sudo hdparm -B /dev/{{device}}`
|
||||
|
||||
- Set the Advanced Power Management value (values 1-127 permit spin-down, and values 128-254 do not):
|
||||
|
||||
`sudo hdparm -B {{1}} /dev/{{device}}`
|
||||
|
||||
- Display the device's current power mode status:
|
||||
|
||||
`sudo hdparm -C /dev/{{device}}`
|
||||
|
||||
- Force a drive to immediately enter standby mode (usually causes a drive to spin down):
|
||||
|
||||
`sudo hdparm -y /dev/{{device}}`
|
||||
|
||||
- Put the drive into idle (low-power) mode, also setting its standby timeout:
|
||||
|
||||
`sudo hdparm -S {{standby_timeout}} {{device}}`
|
Loading…
Add table
Reference in a new issue