Force Fsck

Force fsck on a boot using /forcefsck

On boot linux looks for a file called “forcefsck” in the root “/” directory. If this file exists then the system will invoke a full file system check on boot. To create the file you first need to be the root user:

$ su –

Create a the file forcefsck in the root directory:

# touch /forcefsck

Reboot the system:

# shutdown -r now

Else we can do it in single command.

# shutdown -rF now

[Options used r:reboot F:Force fsck]

Advertisements
  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: