Check health status of a disk with smartctl
To find the path to the disk, run lsblk.
Let’s say, path to the disk is /dev/sdc.
To check if the disk is compatible with smartctl, run:
$ sudo smartctl -i /dev/sdc | grep Enabled
SMART support is: Enabled
Then to print a health report:
$ sudo smartctl -H /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-176-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED