Monday, November 18, 2013

HOWTO Force a Filesystem check (fsck) on the next boot

There are 2 easy ways to force a fsck on the next boot sequence:

1.Creating /forcefsck file will force the Linux System to perform a full FSCK on the next boot sequence:

Login as root and run the following commands:

touch /forcefsck
reboot

2. Force fsck on the next boot using the "shutdown" command:

Login as rot and run the following command:

shutdown -rF now

Where the "-F" option will force the System to run a full fsck on boot.