By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check.
Login as the root. Create a file called forcefsck:
- Code: Select all
touch /forcefsck
Now reboot the system:
- Code: Select all
reboot
Force fsck on next boot using shutdown command
The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:
- Code: Select all
shutdown -rF now