How to force Feisty filesystem check on boot?

Nils Kassube kassube at gmx.net
Wed Oct 3 19:42:11 UTC 2007


galt wrote:
> Sorry that did not work for me.

OK, sorry about the untested advice.

Actually I only checked the shutdown man page on my Dapper machine because 
I didn't remember which option was necessary. I didn't expect Feisty to 
be different. Now that you pointed it out, I tested it on my Feisty 
machine and you are right. The Feisty shutdown command doesn't know 
the -F flag :(

However, the shutdown man page for Dapper has this paragraph about the -F 
flag:

| 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
| filesystems get checked. After that, the boot process should
| remove /forcefsck.      

Now I used this command:

sudo touch /forcefsck

and after the reboot the partitions were checked.


Nils




More information about the ubuntu-users mailing list