Skip to content

running fsck on reboot

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

  1. 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.

    Posted on 24-Nov-09 at 4:24 am | Permalink