Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

How to force a File System Check fsck on next boot on Linux

Date: 2010-09-11 00:00:00 -0400

From the man page:

fsck is used to check and optionally repair one or more Linux file systems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr, /home), or an ext2 label or UUID specifier (e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Normally, the fsck program will try to handle filesystems on different physical disk drives in parallel to reduce the total amount of time needed to check all of the filesystems.

Hard Disk

So, if you want to force a file system check on the next boot of your Linux Operating System operated PC or Server.

Issue this command.

sudo touch /forcefsck

That is all, now just reboot your system, you can do it by entering this other command

sudo reboot

Or some other way to reboot you use.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.