Force fsck on a boot using /forcefsck
On boot linux looks for a file called “forcefsck” in the root “/” directory. If this file exists then the system will invoke a full file system check on boot. To create the file you first need to be the root user:
$ su -
Create a the file forcefsck in the root directory:
# touch /forcefsck
Reboot the system:
# shutdown -r now
Else we can do it in single command.
# shutdown -rF now
On boot linux looks for a file called “forcefsck” in the root “/” directory. If this file exists then the system will invoke a full file system check on boot. To create the file you first need to be the root user:
$ su -
Create a the file forcefsck in the root directory:
# touch /forcefsck
Reboot the system:
# shutdown -r now
Else we can do it in single command.
# shutdown -rF now
No comments:
Post a Comment