• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOG_DISABLE_CHKDSK setting

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    283
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bienxanh
      last edited by

      Seems like the “FOG_DISABLE_CHKDSK” setting in .32 is not set correctly. It is set to 1 by default, and according to the information, that should mean that chkdsk will not run. However the behavior is opposite, at least in some limited testing. When you run a Quick Image, and this value is set to 1, chkdsk runs. Chkdsk does not run if you change the value to 0.

      There are several short-hand php if-then logic statements in /var/www/fog/management/includes/tasks.confirm.include.php that deal with this.
      [CODE]$other .= (" chkdsk=" . ($core->getGlobalSetting(“FOG_DISABLE_CHKDSK”) == “1” ? ‘0’ : ‘1’));[/CODE]

      And I noticed it in the fog script when I was looking at the init image file:
      [CODE]if [ “$chkdsk” == “0” ]
      then
      RUN_CHKDSK=“-x”;
      fi[/CODE]

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Bienxanh said:

        Seems like the “FOG_DISABLE_CHKDSK” setting in .32 is not set correctly…

        Do you really mean FOG 0.32 or is this a joke? That version is roughly a decade old and we surely can’t backport any fixes to such an old version.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          Now I see, this is just a copy&paste from an old topic… https://forums.fogproject.org/topic/988/fog_disable_chkdsk-setting

          @Bienxanh Why do you waste our time I wonder?

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          201

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project