{"id":741,"date":"2021-04-06T02:04:25","date_gmt":"2021-04-05T20:04:25","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=741"},"modified":"2021-04-06T02:04:25","modified_gmt":"2021-04-05T20:04:25","slug":"bash-smartctl-command-not-found","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/bash-smartctl-command-not-found.html","title":{"rendered":"-bash: smartctl: command not found"},"content":{"rendered":"\n<p><strong>Error Details<\/strong><\/p>\n\n\n\n<p>When I try to check the S.M.A.R.T details of my drive, using the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">smartctl -a \/dev\/sda<\/pre>\n\n\n\n<p>I get an error:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-bash: smartctl: command not found<\/pre>\n\n\n\n<p>What can I do?<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>This error is appearing because you do not have the S.M.A.R.T tools installed on your system.<\/p>\n\n\n\n<p><strong>How to Install Smart tools on CentOS 7?<\/strong><\/p>\n\n\n\n<p>To install smart tools, you can run the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install smartmontools -y<\/pre>\n\n\n\n<p>Once done, you may run the smartctl command again, and it shall work:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[root@172 ~]# smartctl -a \/dev\/sda\nsmartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.el7.x86_64] (local build)\nCopyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org\n\n=== START OF INFORMATION SECTION ===\nModel Family:     Crucial\/Micron BX\/MX1\/2\/3\/500, M5\/600, 1100 SSDs\nDevice Model:     Micron_1100_MTFDDAK2T0TBN<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error Details When I try to check the S.M.A.R.T details of my drive, using the following command: I get an error: What can I do? Solution This error is appearing because you do not have the S.M.A.R.T tools installed on your system. How to Install Smart tools on CentOS 7? To install smart tools, you &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/bash-smartctl-command-not-found.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;-bash: smartctl: command not found&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[295,12,26],"tags":[220,548,547,493,546],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/741"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=741"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/741\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/741\/revisions\/742"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}