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 CONTENTS1 Test SSD/HDD Health in Linux2 Use nvme-cli to Test SSD/HDD Health 3 How to View a List of Discs in Linux4 GUI Tools for Disk Health Analysis4.1 Conclusion4.2 About The Author4.2.1 Prakash4.3 RelatedTest SSD/HDD Health in LinuxMonitoring 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 smartmontoolsOnce 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/sdaUse 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 #FedoraAfter 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 secondnvme is used to manage the NVMe devicessmart-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/nvme0n1p6Users 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 LinuxOn 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:$ lsblkThe result shows the operating system disc partitions “sda1”, “sda2”, and “sda3”, and a system can have many hard drives.GUI Tools for Disk Health AnalysisThere 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 gsmartcontrolOnce installed, you may access these tools from the application’s menu and visually examine disc health information.ConclusionRegularly 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 EasilyCan Linux Be Hacked? Debunking the Myths and Facts3 Way to Install Python on UbuntuHow to Install InstaPy and Build a Instagram BotAbout The Author Prakash See author's posts Related How To Linux Linux
Cyber Security Internet Anonymity 101: The Ultimate Guide for Staying Anonymous Online 18, September 202318, September 2023Hello 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 Chek Maximum RAM Capacity of Your Pc 30, October 202230, October 2022Upgrading 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 3 Way to Copy and Paste Text in Linux Terminal 19, March 202319, March 2023Copy 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