Skip to content
hack reveal logo png
HACK REVEAL
  • Home
  • Android
  • Windows
  • Hacks
    • Hacking
    • Reveals
  • Linux
    • kali Linux
    • Exploits
    • Metasploit
  • Tech
    • Cryptocurrency
  • AI Tools
  • Best Product
hack reveal logo png
HACK REVEAL
How to Test SSD/HDD Health in Linux

How to Test SSD/HDD Health in Linux?

Prakash, 28, May 202328, May 2023

The health of your SSD (Solid State Drive) or HDD (Hard Disc Drive) is important for the overall performance and reliability of your system. Monitoring the health of your storage devices allows you to spot potential problems early and take the required steps to prevent data loss. In this post, we’ll look at various techniques for test SSD/HDD health in Linux and ensuring that your storage devices are in excellent condition.

TABLE OF CONTENTS

  • 1 Test SSD/HDD Health in Linux
  • 2 Use nvme-cli to Test SSD/HDD Health 
  • 3 How to View a List of Discs in Linux
  • 4 GUI Tools for Disk Health Analysis
    • 4.1 Conclusion
    • 4.2 About The Author
      • 4.2.1 Prakash
    • 4.3 Related

Test SSD/HDD Health in Linux

Monitoring your storage devices with SMART (Self-Monitoring, Analysis, and Reporting Technology) is one of the most effective techniques to analyse their health. SMART has a number of features that provide detailed information about the present situation of your SSD or HDD. SMART monitoring requires the installation of SMART monitoring software on your Linux system.

To install the required packages, open a terminal and enter the following command:

sudo apt install smartmontools

Once the installation is complete, you can use the smartctl command-line utility to access SMART data.

The smartctl tool allows you to get precise information about the health of your SSD or HDD. Run the following command in the terminal to verify the health of a specific device:

$ sudo smartctl -a /dev/sdX
        or
$ sudo smartctl -t long -a /dev/sda

Use nvme-cli to Test SSD/HDD Health 

Another popular programme called “nvme-cli” can be used for checking the health of SSDs and HDDs. As the name implies, this is intended specifically for NVME-type SSDs. Use the following commands to install it:

$ sudo apt install nvme-cli               #Ubuntu/Debian
$ sudo dnf install nvme-cli                #Fedora

After you’ve learned the command, use it to check the SSD/HDD’s health:

  • The watch is used to continuously check the SMART log 
  • -n 1 instructs the watch command to monitor the SMART log every second
  • nvme is used to manage the NVMe devices
  • smart-log is used in conjunction with the nvme command to read the SMART logs. 
  • /dev/nvme0n1p is the drive being monitored
$ sudo watch -n 1 nvme smart-log /dev/nvme0n1p6
Test SSD/HDD Health in Linux

Users can see the percentage_used in the preceding figure, which is 3% (excellent health). If it exceeds 50%, you should be concerned and consider replacing the drive. Users can also view the “power_on_hours,” “unsafe_shutdowns,” and other statistics in the terminal.

How to View a List of Discs in Linux

On Linux, various tools are available to display the list of discs, including lsblk, df, fdisk, hwinfo, and many others. To view a list of discs, we use the lsblk command:

$ lsblk

The result shows the operating system disc partitions “sda1”, “sda2”, and “sda3”, and a system can have many hard drives.

GUI Tools for Disk Health Analysis

There are various graphical interface utilities for checking disc health available for Linux. GNOME Discs and GSmartControl are popular options for accessing SMART data and doing disc health diagnostics through a user-friendly interface.

sudo apt-get install gnome-disk-utility

For GSmartControl, run the following command:

sudo apt install gsmartcontrol

Once installed, you may access these tools from the application’s menu and visually examine disc health information.

Conclusion

Regularly testing the health of your SSD or HDD is important for ensuring the stability and reliability of your system. Using smart monitoring tools, doing disc benchmarking, file system checks, monitoring disc temperatures, and automating health checks will help you ensure that your storage devices are in good working order. To avoid data loss and to extend the life of your SSD or HDD, implement these best practises in your Linux system.

Also Read:

How to Change Linux Password Quickly and Easily

Can Linux Be Hacked? Debunking the Myths and Facts

3 Way to Install Python on Ubuntu

How to Install InstaPy and Build a Instagram Bot

About The Author

Prakash

See author's posts

Related

How To Linux Linux

Post navigation

Previous post
Next post

Related Posts

Cyber Security how to be anonymous in real life

Internet Anonymity 101: The Ultimate Guide for Staying Anonymous Online

18, September 202318, September 2023

Hello there, dear hackers. Welcome back to another blog ; I hope you are all well, happy, and enjoying life. So, in this blog, I’ll talk about internet anonymity and privacy and provide you with detailed instructions. This blog will teach you how to be completely anonymous on the internet….

Read More
How To How to Check the Maximum RAM Capacity of a Computer

How to Chek Maximum RAM Capacity of Your Pc

30, October 202230, October 2022

Upgrading or changing your laptop’s RAM can be a confusing process, especially if you’re not sure how much RAM your computer can actually support. If you’re looking to upgrade your RAM to the maximum capacity, there are a few things you need to know first. We’ve put together easy tutorials…

Read More
How To How to Copy and Paste Text in the Linux

3 Way to Copy and Paste Text in Linux Terminal

19, March 202319, March 2023

Copy and paste text in the Linux terminal is a simple task that can be done quickly and easily. There are several methods for doing this, including using the mouse, keyboard shortcuts, and command line tools. This guide will walk you through each of these methods so that you can…

Read More

Leave a ReplyCancel reply

Search

Recent Posts

  • How To Use AI To Earn $10,000 Monthly Online
  • How To Format Hard Drive On Your Windows PC
  • CEH v11 Certified Ethical Hacker PDF Download
  • RapidScan: The Ultimate Multi-Tool Web Vulnerability Scanner
  • Zphisher: The Ultimate Automated Phishing Tool Explained

Archives

  • Certified Ethical Hacker PDF
    CEH v11 Certified Ethical Hacker PDF Download
  • How to Use Photoshop's AI Generative Fill
    How to Use Photoshop’s AI Generative Fill In 2023
  • 40 Best Text to Video AI Tools
  • How to Fix “This account is not allowed to use WhatsApp” Error
    How to Fix “This account is not allowed to use WhatsApp” Error
  • 4 ways to hack cameras
    4 Ways To Hack CCTV Cameras And How To Prevent
  • AI Website Builders
    The 7 Best AI Website Builders In 2023
  • PhoneSploit Pro
    PhoneSploit Pro: Taking Phone Hacking to the Next Level
  • Bypass Your Android Screen Lock Without a Password
    How to Hack/Bypass Android Screen Lock Without a Password
  • Instagram Password Hacking
    Bruteinsta: The Ultimate Instagram Password Hacking Tool?
  • Burner Phone
    What is a Burner Phone: Everything You Need to Know
  • how to access Dark Web
    Exploring the Dark Web: How to Get Started Safely
  • anime face changer
    The Best Ai Anime Editor Apps For Android And iOS

AI News (5) AI Tools (10) Android (66) Best Product (29) ChatGPT (1) Cryptocurrency (5) Cyber Security (49) Deal (19) Exploits (11) Games (10) Hacking (80) Hacks (15) How To (65) kali Linux (41) Linux (70) Metasploit (6) Reveals (112) SEO (3) Tech (141) Uncategorized (2) Windows (71) Windows Tips (17)

©2023 HACK REVEAL | WordPress Theme by SuperbThemes