linux poison RSS
linux poison Email

How to Force fsck (Filesystem check) on next boot

If you want to force fsck on the next boot, just create a file called /forcefsck . If this file is present, then during next boot - the fsck is forced.

# touch /forcefsck

Now reboot the machine and when it comes up, fsck will be forced.

# reboot


4 comments:

Quran said...

Thanks for this post, I was looking how to force a check disk on reboot and this help me!

Frank Zen said...

Where do you create the file ?? root..boot..home??

Unknown said...

on root /
touch /forcefsck

Frank Zen said...

Thanks...handy tip!

Post a Comment

Related Posts with Thumbnails