What Is Smartctl in Linux?
Contents

smartctl is a command line utility designed to perform SMART tasks such as printing the SMART self-test and error logs, enabling and disabling SMART automatic testing, and initiating device self-tests.

How do I install Smartctl?

Setting up

  1. You can install the smartmontools package from the Synaptic Package Manager (see SynapticHowto), or by typing the following into the terminal: sudo apt-get install smartmontools.
  2. To ensure that your drive supports SMART, type: sudo smartctl -i /dev/sda.

24 дек. 2019 г.

How do I find my hard drive on Linux?

Step 1: Open up a terminal and gain a root shell with su or sudo -s. Step 2: List the hard drives attached to your Linux PC with the lsblk command. Keep in mind that /dev/sdX is the device label, and /dev/sdX# means partition number. Step 3: Look through your drive listing, and find the drive you’d like to check.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest