Use Apple Diagnostic or the Windows Error Checking tool to scan your hard drive for errors. For Linux, run the FSCK (File System Consistency Check) utility.