Linux Force Fsck Disk Check on Boot

Scenario / Question:

How to force fsck on the next reboot?

Solution / Answer:

By creating an empty forcefsck file in the root directoy

FSCK Command:

fsck – check and repair a Linux file system

DESCRIPTION:

fsck is used to check and optionally repair one or more Linux file systems.

Create empty forcefsck file:

In order to force your system to run fsck on your file systems during the next reboot you need to create a file called “forcefsck” in your root “/” folder.

Become Root

$ su -

Create forcefsck file in root folder

# touch /forcefsck

Reboot System

# shutdown -r now
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Fabio Milano has written 70 articles for us. Fabio Milano is a certified RHCE, MCP, and CFOI. He runs an IT consulting and services company called RDS Support inc. Website:http://www.rdssupport.com

No Comments

Leave a reply