{"id":14545,"date":"2022-01-31T08:54:30","date_gmt":"2022-01-31T08:54:30","guid":{"rendered":"https:\/\/linuxways.net\/?p=14545"},"modified":"2022-01-31T08:54:30","modified_gmt":"2022-01-31T08:54:30","slug":"how-to-install-smartctl-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-smartctl-on-ubuntu-20-04\/","title":{"rendered":"How to Install Smartctl on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>The operating system has the option of being able to check the hard drive and its current state, automatically notifying the user if the failure rate increases through the Smartmontools. This is a package of 2 programs: smartctl and smartd.<\/p>\n<p>Smartctl allows control to self-monitor, analyze, report on ATA-3 and other hard drives and SSDs. Now we&#8217;re gonna teach you to install smartctl on Ubuntu 20.04.<\/p>\n<h2>Installing the Smartctl<\/h2>\n<p><strong>Step 1<\/strong>: Update the package<\/p>\n<p>Run the apt command:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"127\" class=\"wp-image-14546\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-675.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-675.png 993w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-675-300x38.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-675-768x98.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<p><strong>Step 2<\/strong>: Install the smartmontools package:<\/p>\n<pre>$ sudo apt install smartmontools<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"244\" class=\"wp-image-14547\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-676.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-676.png 993w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-676-300x74.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-676-768x189.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<p><strong>Step 3<\/strong>: check if your drive is SMART type:<\/p>\n<pre>$ sudo smartctl -i \/dev\/sda<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"132\" class=\"wp-image-14548\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-677.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-677.png 994w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-677-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-677-768x102.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/p>\n<p><strong>Step 4<\/strong>: To enable smartctl to auto-launch<\/p>\n<pre>$ sudo smartctl -s on \/dev\/sda<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"130\" class=\"wp-image-14549\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-678.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-678.png 994w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-678-300x39.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-678-768x100.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/p>\n<h2>Uninstalling the Smartctl<\/h2>\n<p>Run the apt command to uninstall:<\/p>\n<pre>$ sudo apt remove smartmontools<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"327\" class=\"wp-image-14550\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-679.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-679.png 993w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-679-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-679-768x253.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>We just taught you to install smartctl on Ubuntu 20.04.<\/p>\n<p>Thank you for referring!<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction The operating system has the option of being able to check the hard drive and its current state, automatically notifying the user if the failure rate increases&hellip;<\/p>","protected":false},"author":1,"featured_media":14561,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[883,100],"class_list":["post-14545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-smartctl","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=14545"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14545\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/14561"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=14545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=14545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=14545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}