{"id":143,"date":"2017-02-13T09:18:20","date_gmt":"2017-02-13T09:18:20","guid":{"rendered":"http:\/\/owncloud.gonscak.sk\/?p=143"},"modified":"2020-07-16T11:12:15","modified_gmt":"2020-07-16T09:12:15","slug":"hdparm-useful-commands","status":"publish","type":"post","link":"https:\/\/www.gonscak.sk\/?p=143","title":{"rendered":"hdparm useful commands"},"content":{"rendered":"<p>Some useful commands:<br \/>This check current IDE power mode status of the disk:<br \/>&#8211; unknown (drive does not support this command),<br \/>&#8211; active\/idle (normal operation),<br \/>&#8211; standby (low power mode, drive has spun down),<br \/>&#8211; sleeping (lowest power mode, drive is completely shut down)<br \/>The operators: -S, -y, -Y, -Z can be used to manipulate the IDE power modes<\/p>\n<pre>hdparm -C \/dev\/sda<\/pre>\n<p>Force an IDE drive to immediately enter the low power consumption STANDBY mode, usually causing it to spin down:<\/p>\n<pre>hdparm -y \/dev\/sda<\/pre>\n<p>Force\u00a0 an\u00a0 IDE\u00a0 drive to immediately enter the lowest power consumption sleep mode, causing it to shut down completely. A hard or soft reset is required before the drive can be accessed again:<\/p>\n<pre>hdparm -Y \/dev\/sda<\/pre>\n<p>Put the drive into idle\u00a0 (low-power)\u00a0 mode,\u00a0 and\u00a0 also\u00a0 set\u00a0 the standby (spindown) timeout for the drive.\u00a0 This timeout value is used by the drive to determine how long to wait\u00a0 (with\u00a0 no\u00a0 disk activity)\u00a0 before\u00a0 turning\u00a0 off the spindle motor to save power:<\/p>\n<pre>hdparm -S \/dev\/sda<\/pre>\n<p>Disable\u00a0 the\u00a0 automatic power-saving function of certain Seagate drives (ST3xxx models?), to prevent them\u00a0 from\u00a0 idling\/spinning down at inconvenient times.<br \/>An example:<\/p>\n<pre>hdparm -y \/dev\/sdd\n\/dev\/sdd\n      issuing standby command\nhdparm -C \/dev\/sdd\n\/dev\/sdd\n      drive state is: standby<\/pre>\n<p>\u00a0<\/p>\n\n\n<p>And this is the READ test of the disk:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> hdparm -Tt \/dev\/sdc\n\/dev\/sdc:\nTiming cached reads: 21590 MB in 1.99 seconds = 10828.31 MB\/sec\nTiming buffered disk reads: 310 MB in 3.00 seconds = 103.20 MB\/sec<\/pre>\n\n\n\n<p><\/p>\n ","protected":false},"excerpt":{"rendered":"<p>Some useful commands:This check current IDE power mode status of the disk:&#8211; unknown (drive does not support this command),&#8211; active\/idle (normal operation),&#8211; standby (low power mode, drive has spun down),&#8211; sleeping (lowest power mode, drive is completely shut down)The operators: -S, -y, -Y, -Z can be used to manipulate the IDE power modes hdparm -C &hellip; <a href=\"https:\/\/www.gonscak.sk\/?p=143\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">hdparm useful commands<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18,19,20,8,21],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-centos","tag-drive","tag-hdparm","tag-idle","tag-linux","tag-power"],"_links":{"self":[{"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":1,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions\/621"}],"wp:attachment":[{"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gonscak.sk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}