{"id":3399,"date":"2024-12-07T06:21:52","date_gmt":"2024-12-07T06:21:52","guid":{"rendered":"https:\/\/platinumsupport.in\/blog\/?p=3399"},"modified":"2024-12-07T06:34:12","modified_gmt":"2024-12-07T06:34:12","slug":"how-to-run-smartctl-test-on-disk","status":"publish","type":"post","link":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/","title":{"rendered":"How to run smartctl test on disk"},"content":{"rendered":"<div class=\"blocksy-content-wrapper\">\n<h2>How to Run <code>smartctl<\/code> Test to Check Disk Status on a Linux Server<\/h2>\n<p>Follow these steps to check the status of a disk using <code>smartctl<\/code>:<\/p>\n<div class=\"blocksy-section\">\n<h3>1. Install <code>smartmontools<\/code><\/h3>\n<p>Ensure the <code>smartmontools<\/code> package is installed. This tool includes <code>smartctl<\/code>.<\/p>\n<ul>\n<li><strong>On Debian\/Ubuntu:<\/strong>\n<pre><code>sudo apt update\nsudo apt install smartmontools<\/code><\/pre>\n<\/li>\n<li><strong>On RHEL\/CentOS\/AlmaLinux\/Rocky:<\/strong>\n<pre><code>sudo yum install smartmontools<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>2. Identify the Disk<\/h3>\n<p>List your disks to find the target device name (e.g., <code>\/dev\/sda<\/code>):<\/p>\n<pre><code>lsblk<\/code><\/pre>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>3. Check SMART Support<\/h3>\n<p>Verify if the disk supports SMART:<\/p>\n<pre><code>sudo smartctl -i \/dev\/sda<\/code><\/pre>\n<p>Look for the line:<\/p>\n<blockquote><p>SMART support is: Enabled<\/p><\/blockquote>\n<p>If it\u2019s not enabled, you can enable it:<\/p>\n<pre><code>sudo smartctl -s on \/dev\/sda<\/code><\/pre>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>4. Run a SMART Test<\/h3>\n<p>Run the desired SMART test depending on the situation:<\/p>\n<ul>\n<li><strong>Short Test<\/strong> (Quick check, takes a few minutes):\n<pre><code>sudo smartctl -t short \/dev\/sda<\/code><\/pre>\n<\/li>\n<li><strong>Long Test<\/strong> (Thorough check, can take hours):\n<pre><code>sudo smartctl -t long \/dev\/sda<\/code><\/pre>\n<\/li>\n<li><strong>Conveyance Test<\/strong> (Detects damage during transport):\n<pre><code>sudo smartctl -t conveyance \/dev\/sda<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>5. Check Test Progress<\/h3>\n<p>While the test is running, check its status:<\/p>\n<pre><code>sudo smartctl -c \/dev\/sda<\/code><\/pre>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>6. View Test Results<\/h3>\n<p>Once the test is complete, view the results:<\/p>\n<pre><code>sudo smartctl -a \/dev\/sda<\/code><\/pre>\n<\/div>\n<div class=\"blocksy-section\">\n<h3>Key Sections in Output:<\/h3>\n<ul>\n<li><strong>SMART overall-health self-assessment test result:<\/strong> Should indicate <code>PASSED<\/code>.<\/li>\n<li><strong>Reallocated Sector Count:<\/strong> Should ideally be <code>0<\/code>. High numbers indicate potential disk failure.<\/li>\n<li><strong>Current Pending Sector Count:<\/strong> Any non-zero value suggests bad sectors.<\/li>\n<li><strong>Errors in the SMART log:<\/strong> Review error counts.<\/li>\n<\/ul>\n<\/div>\n<div class=\"blocksy-section\">\n<h3><\/h3>\n<h3>7. Automate Monitoring (Optional)<\/h3>\n<p>You can schedule periodic SMART checks using <code>cron<\/code> or system monitoring tools.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Run smartctl Test to Check Disk Status on a Linux Server Follow these steps to check the status of a disk using smartctl: 1. Install smartmontools Ensure the smartmontools package is installed. This tool includes smartctl. On Debian\/Ubuntu: sudo apt update sudo apt install smartmontools On RHEL\/CentOS\/AlmaLinux\/Rocky: sudo yum install smartmontools 2. Identify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,21],"tags":[43,41,42,40],"class_list":["post-3399","post","type-post","status-publish","format-standard","hentry","category-cpanel-whm-technical-support-solutions","category-linux-security","tag-disk-error","tag-disk-health","tag-slow-server","tag-smartct"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.13 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to run smartctl test on disk - Knowledge Base<\/title>\n<meta name=\"description\" content=\"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to run smartctl test on disk\" \/>\n<meta property=\"og:description\" content=\"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance\" \/>\n<meta property=\"og:url\" content=\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/platinumsupport.in\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-07T06:21:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-07T06:34:12+00:00\" \/>\n<meta name=\"author\" content=\"Anand\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anand\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\"},\"author\":{\"name\":\"Anand\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/aa475c6a968475a732f330a12ff18ede\"},\"headline\":\"How to run smartctl test on disk\",\"datePublished\":\"2024-12-07T06:21:52+00:00\",\"dateModified\":\"2024-12-07T06:34:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\"},\"wordCount\":198,\"publisher\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\"},\"keywords\":[\"disk error\",\"disk health\",\"slow server\",\"smartct\"],\"articleSection\":[\"cPanel\/WHM\",\"Security\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\",\"url\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\",\"name\":\"How to run smartctl test on disk - Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#website\"},\"datePublished\":\"2024-12-07T06:21:52+00:00\",\"dateModified\":\"2024-12-07T06:34:12+00:00\",\"description\":\"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance\",\"breadcrumb\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/platinumsupport.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to run smartctl test on disk\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#website\",\"url\":\"https:\/\/platinumsupport.in\/blog\/\",\"name\":\"PlatinumSupport.in\",\"description\":\"Discover Success through Expert Guidance: Dive into the PlatinumSupport Blog for Solutions and Empowerment!\",\"publisher\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/platinumsupport.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\",\"name\":\"Tech Savy Systems\",\"url\":\"https:\/\/platinumsupport.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png\",\"contentUrl\":\"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png\",\"width\":250,\"height\":75,\"caption\":\"Tech Savy Systems\"},\"image\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/platinumsupport.in\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/aa475c6a968475a732f330a12ff18ede\",\"name\":\"Anand\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/610c86cd51134253c03e1441f07cd9c4e75bdbf5a06560ddc04e568bd85a89e5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/610c86cd51134253c03e1441f07cd9c4e75bdbf5a06560ddc04e568bd85a89e5?s=96&d=mm&r=g\",\"caption\":\"Anand\"},\"description\":\"I have been working in the web hosting support industry for over 15 years as a level 3 administrator, and I am proud to hold RED HAT certification. My expertise lies in providing support for Dedicated Servers, Cloud Servers, and VPS running various Linux operating systems such as CentOS, AlmaLinux, CloudLinux, and Ubuntu. Additionally, I am proficient in working with popular control panels like CPanel, Plesk, CWP, AApanel etc.\",\"sameAs\":[\"https:\/\/platinumsupport.in\/blog\"],\"honorificPrefix\":\"Mr\",\"honorificSuffix\":\"Er\",\"birthDate\":\"1980-11-11\",\"gender\":\"male\",\"knowsAbout\":[\"WebHosting Technical Support\"],\"knowsLanguage\":[\"English\",\"Hindi\",\"Marathi\"],\"jobTitle\":\"Level3 System Administrator\",\"worksFor\":\"PlatinumSupport.ni\",\"url\":\"https:\/\/platinumsupport.in\/blog\/author\/anand-v\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to run smartctl test on disk - Knowledge Base","description":"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/","og_locale":"en_US","og_type":"article","og_title":"How to run smartctl test on disk","og_description":"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance","og_url":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/facebook.com\/platinumsupport.in","article_published_time":"2024-12-07T06:21:52+00:00","article_modified_time":"2024-12-07T06:34:12+00:00","author":"Anand","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anand","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#article","isPartOf":{"@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/"},"author":{"name":"Anand","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/aa475c6a968475a732f330a12ff18ede"},"headline":"How to run smartctl test on disk","datePublished":"2024-12-07T06:21:52+00:00","dateModified":"2024-12-07T06:34:12+00:00","mainEntityOfPage":{"@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/"},"wordCount":198,"publisher":{"@id":"https:\/\/platinumsupport.in\/blog\/#organization"},"keywords":["disk error","disk health","slow server","smartct"],"articleSection":["cPanel\/WHM","Security"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/","url":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/","name":"How to run smartctl test on disk - Knowledge Base","isPartOf":{"@id":"https:\/\/platinumsupport.in\/blog\/#website"},"datePublished":"2024-12-07T06:21:52+00:00","dateModified":"2024-12-07T06:34:12+00:00","description":"Learn how to run smartctl to check disk health on Linux servers. A complete guide on installing smartmontools, running short and long tests, enabling SMART, and interpreting results to monitor disk performance","breadcrumb":{"@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/platinumsupport.in\/blog\/how-to-run-smartctl-test-on-disk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/platinumsupport.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to run smartctl test on disk"}]},{"@type":"WebSite","@id":"https:\/\/platinumsupport.in\/blog\/#website","url":"https:\/\/platinumsupport.in\/blog\/","name":"PlatinumSupport.in","description":"Discover Success through Expert Guidance: Dive into the PlatinumSupport Blog for Solutions and Empowerment!","publisher":{"@id":"https:\/\/platinumsupport.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/platinumsupport.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/platinumsupport.in\/blog\/#organization","name":"Tech Savy Systems","url":"https:\/\/platinumsupport.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png","contentUrl":"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png","width":250,"height":75,"caption":"Tech Savy Systems"},"image":{"@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/platinumsupport.in"]},{"@type":"Person","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/aa475c6a968475a732f330a12ff18ede","name":"Anand","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/610c86cd51134253c03e1441f07cd9c4e75bdbf5a06560ddc04e568bd85a89e5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/610c86cd51134253c03e1441f07cd9c4e75bdbf5a06560ddc04e568bd85a89e5?s=96&d=mm&r=g","caption":"Anand"},"description":"I have been working in the web hosting support industry for over 15 years as a level 3 administrator, and I am proud to hold RED HAT certification. My expertise lies in providing support for Dedicated Servers, Cloud Servers, and VPS running various Linux operating systems such as CentOS, AlmaLinux, CloudLinux, and Ubuntu. Additionally, I am proficient in working with popular control panels like CPanel, Plesk, CWP, AApanel etc.","sameAs":["https:\/\/platinumsupport.in\/blog"],"honorificPrefix":"Mr","honorificSuffix":"Er","birthDate":"1980-11-11","gender":"male","knowsAbout":["WebHosting Technical Support"],"knowsLanguage":["English","Hindi","Marathi"],"jobTitle":"Level3 System Administrator","worksFor":"PlatinumSupport.ni","url":"https:\/\/platinumsupport.in\/blog\/author\/anand-v\/"}]}},"_links":{"self":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/comments?post=3399"}],"version-history":[{"count":3,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3399\/revisions"}],"predecessor-version":[{"id":3403,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3399\/revisions\/3403"}],"wp:attachment":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/media?parent=3399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/categories?post=3399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/tags?post=3399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}