Jaime Frutos Morales's blog

22/12/2010

How to force a file system check on the next reboot on GNU/Linux

Filed under: Linux, SysAdmin — acidborg @ 14:52

Description: sometimes you need to force a file system check after you reboot your computer. This can be done in two ways:

If you are going to reboot right now:

  • Execute this command (the -F argument forces a file system check): sudo shutdown -Fr now

If you aren’t going to reboot right now:

  • Execute this command: sudo touch /forcecheck
  • Next time you reboot or start your computer, a file system check will be performed.

Alternatively, if you want to avoid a file system check, use this command to reboot your machine: sudo shutdown -fr now

Advertisements

1 Comment

  1. Great site! I come here all of the time! Keep up the great work!

    Comment by Nicole Chesick — 14/01/2011 @ 21:12


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Blog at WordPress.com.

%d bloggers like this: