fsck

Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. It is a wrapper that calls fsck_hfs, fsck_apfs, fsck_msdos, fsck_exfat, and fsck_udf as needed. More information: https://keith.github.io/xcode-man-pages/fsck.8.html.

fsck /dev/sdX

fsck -f /dev/sdX

fsck -fy /dev/sdX

fsck -q /dev/sdX