Main BLOGGER
Google
WWW THIS BLOG
Friday, February 23, 2007
 
Linux force file system check

In Linux, you can not run fsck in the normal runlevel or with the file system in use.
You need to do that in single user mode by running "init 1"
or use the trick mentioned as following:

http://www.karkomaonline.com/article.php/20060411124210124

shutdown:

     The -f flag means 'reboot fast'. This only creates an advisory file /fastboot which can 
be tested by the system when it comes up again. The boot rc file can test if this file
is present, and decide not to run fsck(1) since the system has been shut down in the
proper way. After that, the boot process should remove /fastboot.

The -F flag means 'force fsck'. This only creates an advisory file /forcefsck which
can be tested by the system when it comes up again. The boot rc file can test if this
file is present, and decide to run fsck(1) with a special 'force' flag so that even
properly unmounted file systems get checked. After that, the boot process should
remove /forcefsck.
--
Pop (Pu Liu)



<< Home

Powered by Blogger

Google
WWW THIS BLOG