The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:
# shutdown -rF now
-F Force fsck on reboot.
-r Reboot after shutdown.
-k Don’t really shutdown; only send the warning messages to everybody.
or
Login as user root and create a file called forcefsck:
# touch /forcefsck
Now reboot the system:
# reboot
One Comment
dosfsck (8) – check and repair MS-DOS file systems
e2fsck (8) – check a Linux ext2/ext3 file system
e2fsck.conf (5) – Configuration file for e2fsck
fsck (8) – check and repair a Linux file system
fsck.ext2 (8) – check a Linux ext2/ext3 file system
fsck.ext3 (8) – check a Linux ext2/ext3 file system
fsck.ext4 (8) – check a Linux ext2/ext3 file system
fsck.ext4dev (8) – check a Linux ext2/ext3 file system
fsck.minix (8) – a file system consistency checker for Linux
fsck.msdos (8) – check and repair MS-DOS file systems
fsck.nfs (8) – Dummy fsck.nfs script that always returns success.
fsck.reiserfs (8) – The checking tool for the ReiserFS filesystem.
fsck.vfat (8) – check and repair MS-DOS file systems
reiserfsck (8) – The checking tool for the ReiserFS filesystem.