How to set options for fsck at boot (from mountall)
I've set this option at /etc/default/rcS
And set periodic checks for an old hard disk:
$ sudo tune2fs -c 30 /dev/sdb1
But I need to fsck makes an action like this when programmed:
$ fsck -cy /dev/sdb1
How can I set (mountall?) to use the option -c when the boot process includes fsck revisions?
Re: How to set options for fsck at boot (from mountall)
sudo touch /forcefsck only works for the / partition.
Don't know how to force a "YES" though. I suppose you could write a tiny script to run fsck every X times/days and put it into /etc/init.d/ to force a check at the next boot using /forcefsck. I haven't tried this.
I didn't know about the /etc/d...rcS .... interesting. The comment in the version of that file here seems to imply only a "YES" for fsck at boot, not that it will actually run fsck every time.
Interesting need. Google found this: http://askubuntu.com/questions/15102...y-at-boot-time which explains more about FSCKFIX=yes
Sorry, I dont know more.