From 3ae4f2c4012c077f6cd0107e1be9a6a55da9fba1 Mon Sep 17 00:00:00 2001 From: vimalaguti <25081309+vimalaguti@users.noreply.github.com> Date: Mon, 23 Mar 2020 07:33:18 +0100 Subject: [PATCH] hdparm: add page (#3915) --- pages/linux/hdparm.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/linux/hdparm.md diff --git a/pages/linux/hdparm.md b/pages/linux/hdparm.md new file mode 100644 index 0000000000..964b3641ca --- /dev/null +++ b/pages/linux/hdparm.md @@ -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}}`