Categories: TutorialsUbuntu

How to Install Smartctl on Ubuntu 20.04

Introduction

The operating system has the option of being able to check the hard drive and its current state, automatically notifying the user if the failure rate increases through the Smartmontools. This is a package of 2 programs: smartctl and smartd.

Smartctl allows control to self-monitor, analyze, report on ATA-3 and other hard drives and SSDs. Now we’re gonna teach you to install smartctl on Ubuntu 20.04.

Installing the Smartctl

Step 1: Update the package

Run the apt command:

$ sudo apt update

Output:

Sponsored

Step 2: Install the smartmontools package:

$ sudo apt install smartmontools

Output:

Step 3: check if your drive is SMART type:

$ sudo smartctl -i /dev/sda

Output:

Sponsored

Step 4: To enable smartctl to auto-launch

$ sudo smartctl -s on /dev/sda

Output:

Uninstalling the Smartctl

Run the apt command to uninstall:

$ sudo apt remove smartmontools

Output:

Conclusion

We just taught you to install smartctl on Ubuntu 20.04.

Thank you for referring!

Ubuntu Server Admin

Recent Posts

Why we brought hardware-optimized GenAI inference to Ubuntu

On October 23rd, we announced the beta availability of silicon-optimized AI models in Ubuntu. Developers…

4 days ago

Canonical and NVIDIA BlueField-4: a foundation for zero-trust high performance infrastructure

At NVIDIA GTC Washington D.C., Canonical is pleased to support the arrival of the NVIDIA…

5 days ago

Global-ready from day one

How Anbox Cloud streamlines localization testing Wherever users are based, they expect apps to just…

1 week ago

Canonical announces new optimized Ubuntu image for Thundercomm RUBIK Pi 3

Ubuntu now runs natively on the Thundercomm RUBIK Pi 3 developer board – a lightweight…

1 week ago

Introducing Canonical Academy

Validate your skills and advance your career with recognized qualifications from the publishers of Ubuntu…

1 week ago