touch /forcefsck not working on Fedora16

2

I need to run fsck in order to repair my one and only hard-disk. I have no rescue CD/USB available.

I did the following:

touch /forcefsck
chmod a+rw /forcefsck # just to be really sure
reboot

But no fsck happened on reboot, though the /forcefsck file quietly disappeared (why BTW?)!

I saw some responses on the Net suggesting a shutdown -rF to auto-run fsck on reboot, but the shutdown I have on my F16 does not have any -F option.

Harry

Posted 2012-04-02T04:25:34.573

Reputation: 647

Answers

2

Not precisely an answer to your question, but there is an interesting discussion here: https://bugzilla.redhat.com/show_bug.cgi?id=806369

The recommended approach is to set the fsck.mode=force flag at boot time. This makes sense, as writing a file to the filesystem that you wish to check is a little counter-intuitive.

Robert

Posted 2012-04-02T04:25:34.573

Reputation: 36

Thanks, the "counter-intuitiveness" of it never occurred to me, especially since such features, mechanisms, and hooks are usually provided by the developers who designed and implemented these components in the first place. But, now it makes sense. – Harry – 2012-04-06T03:18:37.207

0

I won't be marking this as the final answer, but I'm going ahead and sharing anyway what I did to work around the above problem so as to be able to run fsck, which was my real goal. Any answers to the original question above would still be appreciated.

Upon reboot, edited the Grub menu by pressing e. Appended init=/bin/bash to the kernel line Saved changes by pressing F10, and THEN FINALLY

Ran fsck /

Harry

Posted 2012-04-02T04:25:34.573

Reputation: 647