HOWTO: Forcing a filesystem check

Ubuntu makes a filesystem check every 30 boots or something. If for any case, you want a filesystem check you can do it by issuing the following command:

shutdown -rF now

This command will restart Ubuntu and will make a filesystem check.


About jordilin

I'm a Senior Software Engineer with an MSc in Telecommunications Engineering. I've got a range of interests including Linux, a very powerful and limitless operating system, travelling, gastronomy and technology.
This entry was posted in HOWTOs. Bookmark the permalink.

4 Responses to HOWTO: Forcing a filesystem check

  1. Thank you *so* much for this!

  2. Peter Piper says:

    I noticed that ‘F’ is not one of the options shown in ‘shutdown –help’ (see below). How would anyone know that the F option exists if ‘shutdown –help’ doesn’t show it?

    shutdown –help
    Usage: shutdown [OPTION]… TIME [MESSAGE]
    Bring the system down.

    -r reboot after shutdown
    -h halt or power off after shutdown
    -H halt after shutdown (implies -h)
    -P power off after shutdown (implies -h)
    -c cancel a running shutdown
    -k only send warnings, don’t shutdown
    -q, –quiet reduce output to errors only
    -v, –verbose increase output to include informational messages
    –help display this help and exit
    –version output version information and exit

  3. Martin says:

    sudo shoutdown -Fr now

    did nothing but reboot for me. Im on Ubuntu 8.04.

  4. jordilin says:

    Well, aparently the -F option is no longer available. You can do sudo touch /forcefsck (just places and empty file in /) and then restart normally. Then, the operating system will perform a filesystem check

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s