May 142014
 
Article Server Administration

If a system administrator suspects that one of the filesystems might be damaged, he/she should proceed to analyze, and eventually repair the errors found on it. On a Linux system, the fsck (File System ChecK) command is used to perform this analysis and repair.

But the filesystem to be repaired must be unmounted before running the fsck command on it, and this is not possible if the file system is the root filesystem itself.

In this case, the execution of the fsck command on the root filesystem must be scheduled to be done on the next reboot of the system.

In a Linux system, this can be easily done creating a “forcefsck” file under the root directory:

Alternatively, the “shutdown” command with the “-rf” option can also be used to request the checking of the root filesystem on reboot:

References

 Posted by at 8:20 pm

 Leave a Reply

(required)

(required)