Results 1 to 2 of 2

Thread: How to set options for fsck at boot (from mountall)

  1. #1

    How to set options for fsck at boot (from mountall)

    I've set this option at /etc/default/rcS
    FSCKFIX=yes

    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?
    Narcis Garcia

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •