

If required, you can also set the above-mentioned forcefsck command to run every time you fire up the system. In Debian, the below-mentioned command will allow you to check the errors of the file system and repair them when you boot the PC, as you can see that the command will execute a force fsck command on boot. If you find the fsck command useful for you and your system still has some bad sectors, you can run the fsck tool on your system every time you boot the system. If you have a multi-user Debian system, you can execute the following command to check which user is currently executing the fsck command.įsck /usr Method 2: Run File Checking and Repairing on Boot After finishing, please remount the file system with the following command. The above process might take a while to complete. You can now run the fsck command on the terminal shell to repair file system errors. If you do not run the FSCk operations without mounting the file system you want to repair, it will show you an error.

But no worries about repairing and fixing you can again mount the file system where it was. Without unmounting, you cannot repair or execute operations to repair file system errors in Debian and other distributions as well. You may now need to unmount the file system that you want to repair. Please execute the following fdisk command first to get an overall idea about your file system on the Debian system. This tool comes pre-installed with the Debian distribution. In Ubuntu, you can use the fsck command in the command-line shell that can check the file system consistency. Method 1: Use FSCK Command for Checking Errors
