Chkdsk is a command-line tool that can check and fix errors on your computer.