Is there a command to analyze hard drives?

Greetings, I need to know if my hard drives have any errors. And I don’t know if there is a command to scan the disks
thank you

You can trigger filesystem checks with dietpi-drive_manager.

https://dietpi.com/docs/dietpi_tools/system_configuration/#dietpi-drive-manager

1 Like

Thanks, I thought there was a command for this. I’m going to try what you tell me.

The command is fsck. For an ext4 file system on /dev/sda2`you would do

fsck.ext4 /dev/sda2

For vfat it is fsck.vfat and so on…

thank you very much I’ll try it

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.