
It will check for bad blocks on your disk.Ī block (or sector) is an area of the physical storage device where data is stored. The badblocks tools come pre-installed on many distributions, including Ubuntu. You can view the full user manual for smartmontools and smartctl by running: man smartctl Checking Using badblocks Most commands in this article are run using sudo as they require root/administrative privileges. If you don’t know what this is, you can find a list of disks that can be queried by running: sudo smartctl -scan dev/sda is the path to the hard disk you want to check the health of. Once installed, you provide it with the path to the device name for your hard disk, and it queries the SMART status of the drive and outputs the results: sudo smartctl -a /dev/sdaĪbove, the -a option is passed, telling smartctl to print all available SMART information for that disk. You can install it on Ubuntu and Debian based systems by running: sudo apt install smartmontools The smartmontools contains the smartctl package, which can query the SMART status of a physical hard drive. This information can be queried to find out whether a drive is reporting any issues. S.M.A.R.T. ( Self- Monitoring, Analysis, and Reporting Technology) is the system most hard disks use to report their health to the installed system.

It could be failing, and you don’t know it. Not concerned that you have a failing drive? Back up anyway.

Then, use these Linux tools to check your disk/drive. Concerned that you have a failing hard drive? Make a backup.
