Open links in new tab
  1. You can check your hard drive health in Linux using the smartctl command from the smartmontools package, along with tools like badblocks and fsck for deeper diagnostics.

    Using SMART with smartctl

    SMART (Self-Monitoring, Analysis, and Reporting Technology) is built into most modern hard drives and SSDs. It monitors key metrics to predict drive failures and allows running self-tests.
    1. Install smartmontools (if not already installed):
    1. Check if SMART is supported and enabled:
    sudo smartctl -i /dev/sda
    
    Look for SMART support: Available and Enabled. If disabled, enable it:
    sudo smartctl -s on /dev/sda
    
    1. Get a quick health overview:
    sudo smartctl -H /dev/sda
    
    sudo smartctl -a /dev/sda
    
    sudo smartctl -t short /dev/sda   # Short test (~2 minutes)
    sudo smartctl -t long /dev/sda    # Extended test (can take hours)
    

    Checking for Bad Sectors

    • badblocks scans for physical bad sectors:
    sudo badblocks -v /dev/sda
    

    Checking Filesystem Integrity

    • fsck (File System Consistency Check) repairs filesystem errors:
    sudo fsck /dev/sda1
    

    Graphical Tools

    Best Practices

    • Regularly monitor SMART attributes to detect early signs of failure.
    • Keep backups of important data; SMART warnings are predictive, not guaranteed.
    • Combine SMART checks with badblocks and fsck for comprehensive disk health assessment.
    • For SSDs, monitor wear-leveling and remaining lifespan attributes in SMART data.
      By following these steps, you can proactively monitor your Linux system’s hard drives, detect potential failures early, and maintain data integrity.
    LinuxConfig.org
    smartctl Linux: Check and Test S.M.A.R.T Health
    It contains two utilities useful to check the status of storage with S.M.A.R.T support (Self Monitoring Analysis and Reporting Technology): smartcl and smartd. The former is the ut…
    nerdy-tech.com
    How To Check Hard Drive Health In Linux [2025 Guide]
    In this simple guide, you’ll find out how to check hard drive health in Linux using both command-line tools and easy-to-use graphical interfaces. Whether you’re a system admin hand…
    OSTechNix
    How To Check Disk Health In Linux: A Beginners Guide
    Linux has built-in tools to check your disk health. You can spot disk-related problems early and save your data. In this detailed guide, we will discuss how to: Troubleshooting com…
    nixCraft
    How To Test If Linux Hard Disk Going Bad or Failing - nixCraft
    I/O errors in /var/log/messages indicate that something is wrong with the hard disk and it may be failing. You can check the hard drive for errors using the smartctl command, which…
    Super User
    linux - How to check the health of a hard drive - Super User
    This will give you an abundance of information about your hard drive's health. The tool also permits you to start and monitor self tests of the drive. If you want to do benchmarks …
  1. smartctl Linux: Check and Test S.M.A.R.T Health

    Learn to use smartctl on Linux for S.M.A.R.T storage health checks and tests with our detailed guide on installing smartmontools and interpreting results.
    Installation

    As mentioned before the smartmontoolspackage is available in the repositories of all the major Linux distributions, therefore all we have to do to install it, is to use our favorite package manager. If you are running on Debian or …

    Checking If Smart Is Enabled

    Let’s become familiar with the smartctl utility. The first thing we want to check is if S.M.A.R.T support is active on the device. To perform this operation we can run the smartctl utility with the -i option (short for --info): The output of the command is the f…

    Getting Familiar with smartctl

    To get all the available SMART information about a storage device, we can launch the utility with the -a option (short for -all) and of course pass the path of the device we want to check as the last argument of the command. Suppose we want to check th…

    Available Smart Tests

    The smartctlutility can be used to launch a variety of self-tests: 1. short 2. long 3. conveyance (ATA devices only) 4. select (ATA devices only) Let’s quickly see what are the differences between them. The shorttest is meant to quickly check the m…

  2. linux - How to check the health of a hard drive - Super User

    Bad enough that the failing drives are termed "deathstar". This will give you an …

    • Reviews: 1
      Usage example
      sudo smartctl -a /dev/sda | less
    • How To Check Disk Health In Linux: A Beginners Guide

      • See More

      Jun 3, 2025 · Learn how to check disk health in Linux using smartctl, badblocks, and fsck utilities. Identify failing HDDs/SSDs early and prevent data loss.

    • How To Test If Linux Hard Disk Going Bad or Failing

      Sep 8, 2024 · Explains how to check a hard disk drive or SSD under Linux for error …

      • Reviews: 18
      • Occupation: CTO
    • How To Check Hard Drive Health In Linux [2025 Guide]

      Dec 4, 2024 · Keeping your Linux system’s hard drive healthy is important for avoiding data loss and ensuring good performance. In this simple guide, you’ll …

    • How to check disk health status in Linux - simplified.guide

      Monitoring disk health in Linux reduces the risk of sudden data loss by revealing failing HDDs and SSDs before they stop responding. Early detection allows storage to be replaced during maintenance …

    • How to check hard drive health on Linux - AddictiveTips

      Mar 23, 2026 · Checking your hard drive health on Linux is genuinely straightforward once you know the tools. With smartctl, you get precise, scriptable diagnostics that work on any Linux system — from a …

    • Linux Disk Health Check: A Comprehensive Guide - linuxvox.com

      Jan 16, 2026 · This blog post will provide you with a detailed overview of how to check disk health in Linux, including fundamental concepts, usage methods, common practices, and best practices.

    • Checking the Health of a Storage Device in Linux

      Jun 13, 2025 · Learn multiple methods and tools to check the health of storage devices in Linux.

    • How to Check SSD/HDD Health on Linux - HowtoForge

      To check SSD or HDD health in Linux, you can use tools like smartctl (part of the smartmontools package) and gnome-disks. smartctl provides detailed …

    • People also ask
      Loading
      Unable to load answer