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!

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

Canonical at India Mobile Congress 2024 – a retrospective

With an ambition to become Asia’s technology hub for telecommunications in the 5G/6G era, India…

2 hours ago

Imagining the future of Cybersecurity

October 2024 marks the 20th anniversary of Ubuntu. The cybersecurity landscape has significantly shifted since…

2 hours ago

Join Canonical in Brazil at Dell Technologies Forum São Paulo

Canonical is excited to be a part of the Dell Technologies Forum in São Paulo…

5 days ago

6 facts for CentOS users who are holding on

In 2020, it was announced that CentOS 7 would reach end of life (EoL) by…

5 days ago

What is Ubuntu used for?

The launch of Ubuntu in 2004 was a step-change for everyday users and developers everywhere.…

6 days ago