{"id":47273,"date":"2024-09-24T15:30:05","date_gmt":"2024-09-24T15:30:05","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47273"},"modified":"2024-09-24T15:30:05","modified_gmt":"2024-09-24T15:30:05","slug":"check-ssd-health-info","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/09\/check-ssd-health-info\/","title":{"rendered":"Check SATA\/NVMe SSD Disk Health &#038; Other Info in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43665\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/disk-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This tutorial shows you how to check the health status, amount of read\/written data, temperature, media error, and other useful info of your SSD in Ubuntu.<\/p>\n<p>For Windows, there&#8217;s a popular <a href=\"https:\/\/sourceforge.net\/projects\/crystaldiskinfo\/\" target=\"_blank\" rel=\"noopener\">CrystalDiskInfo<\/a> utility for reading and monitoring HDD\/SSD disk status. For those who&#8217;re looking for free open-source alternatives for Linux, here are 3 options:<\/p>\n<ul>\n<li>Option 1: <code>smartctl<\/code> command line utility.<\/li>\n<li>Option 2: GSmartControl &#8211; Graphical app based on smartctl + GTK3.<\/li>\n<li>Option 3: QDiskinfo &#8211; Qt app with CrystalDiskInfo style user interface.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>Option 1: Use smartctl command<\/h3>\n<p>For advanced users or Linux server without desktop environment, then <code>smartctl<\/code> and <code>smartd<\/code> commands are good choice to control and monitor modern ATA\/SATA, SCSI\/SAS and NVMe disks.<\/p>\n<p>The tool is available through the <a href=\"https:\/\/www.smartmontools.org\/\" target=\"_blank\" rel=\"noopener\">smartmontools<\/a> package, which is available in most Linux system repositories, including Ubuntu.<\/p>\n<p><b>1.<\/b> For Ubuntu, simply press <code>Ctrl+Alt+T<\/code> to open up a terminal window, then run command to install the package:<\/p>\n<pre>sudo apt install smartmontools<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/apt-smartctl.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47274\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/apt-smartctl-700x341.webp\" alt=\"\" width=\"610\" height=\"297\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/apt-smartctl-700x341.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/apt-smartctl-300x146.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/apt-smartctl.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2.<\/b> Then, list all available storage device by running command:<\/p>\n<pre>lsblk |grep -v ^loop<\/pre>\n<p>In command <code>|grep -v ^loop<\/code> tells to exclude any with keyword &#8220;loop&#8221;, which will shorten the output in Ubuntu.<\/p>\n<p>In my case, I have a NVMe M.2 named <strong>nvme0n1<\/strong>. Depends on your computer, there may be <code>sda<\/code>, <code>sdb<\/code>, etc for SATA SSD disks.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-disk.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47275\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-disk-700x334.webp\" alt=\"\" width=\"610\" height=\"291\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-disk-700x334.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-disk-300x143.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-disk.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>3.<\/b> Finally, run <code>smartctl<\/code> command to tell your disk information:<\/p>\n<pre>sudo smartctl --info \/dev\/nvme0n1<\/pre>\n<p>In the command, replace <b>nvme0n1<\/b> depends what you got in last command. In the output, you&#8217;ll see the module name, serial number, firmware version, and some other basic info about the disk.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-nvme-info.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47276\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-nvme-info-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-nvme-info-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-nvme-info-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/get-nvme-info.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For choice, you may run the command below instead:<\/p>\n<pre>sudo smartctl --all \/dev\/nvme0n1<\/pre>\n<p>Which will show more info about the disk, including supported power states, temperature, available spare, how much data it have read\/written, as well as power circles, unsafe shutdown, errors and warnings, etc.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47277\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all-700x473.webp\" alt=\"\" width=\"610\" height=\"412\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all-700x473.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all-768x519.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/smartctl-all.webp 1106w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For more about how to use the command, just run <code>man smartctl<\/code>.<\/p>\n<h3>Option 2: Use GsmartControl (No NVMe support)<\/h3>\n<p>For graphical application, there&#8217;s a free open-source <a href=\"https:\/\/github.com\/ashaduri\/gsmartcontrol\" target=\"_blank\" rel=\"noopener\">GsmartControl<\/a> which is based on smartctl and GTK3 toolkit.<\/p>\n<p><b>GsmartControl so far does NOT support NVMe, through the developer has been <a href=\"https:\/\/github.com\/ashaduri\/gsmartcontrol\/issues\/4\" target=\"_blank\" rel=\"noopener\">working on it<\/a>. <\/b><\/p>\n<p>The tool is available in Ubuntu system repository, simply search for and install it from App Center (filter by Debian package) or Ubuntu Software.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47278\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter-700x465.webp\" alt=\"\" width=\"610\" height=\"405\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter-700x465.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter-300x199.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter-768x510.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/gsmartcontrol-appcenter.webp 981w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Then, launch the tool. Double click your disk in the main window, then you can see the detailed information about it in tabs.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43669\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo-600x369.webp\" alt=\"\" width=\"600\" height=\"369\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo-600x369.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo-300x185.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo-768x473.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/diskinfo.webp 1061w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43671\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure-600x369.webp\" alt=\"\" width=\"600\" height=\"369\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure-600x369.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure-300x185.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure-768x473.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/ssd-prefailure.webp 1061w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Option 3: Use QDiskinfo<\/h3>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47279\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo-700x565.webp\" alt=\"\" width=\"610\" height=\"492\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo-700x565.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo-300x242.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo-768x620.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/qdiskinfo.webp 921w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b><a href=\"https:\/\/github.com\/edisionnano\/QDiskInfo\" target=\"_blank\" rel=\"noopener\">QDiskinfo<\/a> is a new project!<\/b> It&#8217;s also a frontend for <code>smartctl<\/code>, but uses Qt (Qt6 so far) toolkit for its user interface.<\/p>\n<p>As you can see in the screenshot above, it provides a CrystalDiskInfo style user interface, allowing user to easily read the disk health status, temperature, firmware, serial number, how much data reads\/writes, how many power circles, as well as available spare, critical warning, media errors, etc.<\/p>\n<h4>Install QDiskinfo<\/h4>\n<p>The tool has been made into <b>Debian 12<\/b>, <b>Debian Testing\/Unstable<\/b>, <b>Ubuntu 24.10<\/b>, and some other Linux repositories. Users of them can just search for and install the package from system package manager (e.g., App Center).<\/p>\n<p>For current <b>Ubuntu 24.04<\/b> and <b>Ubuntu 22.04<\/b>, besides building from the source (see link above) or waiting for official binary package, I&#8217;ve uploaded version 0.3 into this <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/qdiskinfo\" target=\"_blank\" rel=\"noopener\">unofficial PPA<\/a> with <code>amd64<\/code>, <code>arm64\/armhf<\/code> platforms support.<\/p>\n<p>User can either open terminal (<code>Ctrl+Alt+T<\/code>) and run commands below one by one to add the PPA &amp; install the package:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/qdiskinfo<\/pre>\n<pre>sudo apt update<\/pre>\n<pre>sudo apt install qdiskinfo<\/pre>\n<p>Or, just go to the <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/qdiskinfo\/+packages\" target=\"_blank\" rel=\"noopener\">PPA package page<\/a>, scroll down and click expand the source from your Ubuntu version. Finally, click download corresponding <code>.deb<\/code> package. You may run <code>dpkg --print-architecture<\/code> command in terminal to print your CPU architecture type.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47280\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb-700x504.webp\" alt=\"\" width=\"610\" height=\"439\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb-700x504.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb-768x553.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/download-qdiskinfo-deb.webp 1195w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>After downloaded the <code>.deb<\/code> package, double-click to open with &#8220;Software Install&#8221; or App Center to install. Finally, launch it from either start menu or GNOME overview depends on your desktop.<br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/launch-qdiskinfo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-47281\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/launch-qdiskinfo.webp\" alt=\"\" width=\"575\" height=\"290\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/launch-qdiskinfo.webp 575w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/launch-qdiskinfo-300x151.webp 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><\/p>\n<h4>Uninstall QDiskinfo<\/h4>\n<p>To uninstall the software package, open terminal and run command:<\/p>\n<pre>sudo apt install --remove qdiskinfo<\/pre>\n<p>Also remove the PPA if added, by running command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:ubuntuhandbook1\/qdiskinfo<\/pre>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows you how to check the health status, amount of read\/written data, temperature, media error, and other useful info of your SSD in Ubuntu. For Windows, there&#8217;s a popular CrystalDiskInfo utility for reading and monitoring HDD\/SSD disk status. For those who&#8217;re looking for free open-source alternatives for Linux, here are 3 options: Option [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43665,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2216,876],"class_list":["post-47273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-crystaldiskinfo","tag-ssd"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=47273"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43665"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}