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

Windows 8.1 "Dirty Bit" in UEFI

Scheduled Pinned Locked Moved
General
6
30
17.1k
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.
  • W
    Wayne Workman @ch3i
    last edited by Oct 19, 2015, 1:18 PM

    @ch3i Trying it now.

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    1 Reply Last reply Reply Quote 1
    • W
      Wayne Workman @ch3i
      last edited by Oct 19, 2015, 1:25 PM

      @ch3i Is it just me, or does the “Fast Startup” checkbox vanish after it’s disabled for others too?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      W 1 Reply Last reply Oct 19, 2015, 1:33 PM Reply Quote 0
      • W
        Wayne Workman @Wayne Workman
        last edited by Oct 19, 2015, 1:33 PM

        @Wayne-Workman said:

        @ch3i Is it just me, or does the “Fast Startup” checkbox vanish after it’s disabled for others too?

        So, you must run powercfg.exe -H on for the “Fast Startup” option to even show up.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • W
          Wayne Workman
          last edited by Oct 19, 2015, 2:00 PM

          This is with Fast Startup and Hibernation turned on.

          IMG_20151019_085735.jpg

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          C 1 Reply Last reply Oct 19, 2015, 2:38 PM Reply Quote 0
          • C
            ch3i Moderator @Wayne Workman
            last edited by Oct 19, 2015, 2:38 PM

            @Wayne-Workman said:

            This is with Fast Startup and Hibernation turned on.

            IMG_20151019_085735.jpg

            I’ll try that : ntfs-3g -o remove_hiberfile /dev/sdaX /tmp/mount_point to remove the hibernate file.

            W 1 Reply Last reply Oct 19, 2015, 2:42 PM Reply Quote 0
            • W
              Wayne Workman @ch3i
              last edited by Wayne Workman Oct 19, 2015, 8:42 AM Oct 19, 2015, 2:42 PM

              @ch3i

              mkdir /mnt/tmp
              ntfs-3g -o remove_hiberfile /dev/sda4 /mnt/tmp
              umount /mnt/tmp
              ntfsfix /dev/sda4
              

              That says it succeeded, but then NFS failed to mount during the fog command… gah… trying again.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              W 1 Reply Last reply Oct 19, 2015, 2:55 PM Reply Quote 0
              • W
                Wayne Workman @Wayne Workman
                last edited by Oct 19, 2015, 2:55 PM

                @Wayne-Workman said:

                @ch3i

                mkdir /mnt/tmp
                ntfs-3g -o remove_hiberfile /dev/sda4 /mnt/tmp
                umount /mnt/tmp
                ntfsfix /dev/sda4
                

                That says it succeeded, but then NFS failed to mount during the fog command… gah… trying again.

                I think this has to be done for all the partitions for it to work right… Because now I’m getting errors about mounting /dev/sda1 during the FOG command. I’m testing now.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                C 1 Reply Last reply Oct 20, 2015, 7:41 AM Reply Quote 0
                • C
                  ch3i Moderator @Wayne Workman
                  last edited by Oct 20, 2015, 7:41 AM

                  @Wayne-Workman Hi, There is a function in func.sh (in the init) to remove pagefile and hiberfile :

                  # $1 is the device name of the windows system partition
                  removePageFile() {
                      local part="$1";
                      local fstype="";
                      if [ "$part" != "" ]; then
                          fstype=`fsTypeSetting $part`
                      fi
                      if [ "$fstype" != "ntfs" ]; then
                          echo " * No ntfs file system on ($part) to remove page file"
                          debugPause;
                      elif [[ "$osid" == +([1-2]|[5-7]|9|50) ]]; then
                          if [ "$ignorepg" == "1" ]; then
                              dots "Mounting partition ($part)";
                              mkdir /ntfs &>/dev/null;
                              ntfs-3g -o force,rw $part /ntfs;
                              if [ "$?" == "0" ]; then
                                  echo "Done";
                                  debugPause;
                                  dots "Removing page file";
                                  if [ -f "/ntfs/pagefile.sys" ]; then
                                      rm -f "/ntfs/pagefile.sys" >/dev/null 2>&1;
                                      echo "Done";
                                  else
                                      echo "No pagefile found";
                                  fi
                                  debugPause;
                                  dots "Removing hibernate file";
                                  if [ -f "/ntfs/hiberfil.sys" ]; then
                                      rm -f "/ntfs/hiberfil.sys" >/dev/null 2>&1;
                                      echo "Done";
                                  else
                                      echo "No hibernate found";
                                  fi
                                  resetFlag "$part";
                                  umount /ntfs;
                              else
                                  echo "Failed";
                              fi
                              debugPause;
                          fi
                      fi
                  }
                  

                  And ntfsfix too :

                  # $1 is the part
                  resetFlag() {
                      if [ -n "$1" ]; then
                          fstype=`blkid -po udev $1 | awk -F= /FS_TYPE=/'{print $2}'`;
                          if [ "$fstype" == "ntfs" ]; then
                              dots "Clearing ntfs flag";
                              ntfsfix -b -d $1 &>/dev/null;
                              echo "Done";
                              debugPause;
                          fi
                      fi
                  }
                  

                  Not sure if the two functions are used during upload process, @Developers ?

                  W 2 Replies Last reply Oct 20, 2015, 2:34 PM Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Oct 20, 2015, 8:13 AM

                    As far as I can see in the fog.upload script those two functions are only used with image type set to resizable.

                    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

                    C 1 Reply Last reply Oct 20, 2015, 8:57 AM Reply Quote 0
                    • C
                      ch3i Moderator @Sebastian Roth
                      last edited by Oct 20, 2015, 8:57 AM

                      @Uncle-Frank said:

                      As far as I can see in the fog.upload script those two functions are only used with image type set to resizable.

                      I think we have to enable it on each upload resizable or not.

                      1 Reply Last reply Reply Quote 1
                      • W
                        Wayne Workman @ch3i
                        last edited by Oct 20, 2015, 2:34 PM

                        @ch3i How would I use those functions from CLI?

                        I suppose I can make a bash script during debug and call those functions to run, then run ntfsfix on all the partitions in the same script.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        C 1 Reply Last reply Oct 20, 2015, 3:09 PM Reply Quote 0
                        • C
                          ch3i Moderator @Wayne Workman
                          last edited by Oct 20, 2015, 3:09 PM

                          @Wayne-Workman said:

                          @ch3i How would I use those functions from CLI?

                          I suppose I can make a bash script during debug and call those functions to run, then run ntfsfix on all the partitions in the same script.

                          You can modify the fog.upload to call these scripts before uploading.

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wayne Workman @ch3i
                            last edited by Oct 22, 2015, 3:46 AM

                            @ch3i said:

                            @Wayne-Workman Hi, There is a function in func.sh (in the init) to remove pagefile and hiberfile :

                            # $1 is the device name of the windows system partition
                            removePageFile() {
                                local part="$1";
                                local fstype="";
                                if [ "$part" != "" ]; then
                                    fstype=`fsTypeSetting $part`
                                fi
                                if [ "$fstype" != "ntfs" ]; then
                                    echo " * No ntfs file system on ($part) to remove page file"
                                    debugPause;
                                elif [[ "$osid" == +([1-2]|[5-7]|9|50) ]]; then
                                    if [ "$ignorepg" == "1" ]; then
                                        dots "Mounting partition ($part)";
                                        mkdir /ntfs &>/dev/null;
                                        ntfs-3g -o force,rw $part /ntfs;
                                        if [ "$?" == "0" ]; then
                                            echo "Done";
                                            debugPause;
                                            dots "Removing page file";
                                            if [ -f "/ntfs/pagefile.sys" ]; then
                                                rm -f "/ntfs/pagefile.sys" >/dev/null 2>&1;
                                                echo "Done";
                                            else
                                                echo "No pagefile found";
                                            fi
                                            debugPause;
                                            dots "Removing hibernate file";
                                            if [ -f "/ntfs/hiberfil.sys" ]; then
                                                rm -f "/ntfs/hiberfil.sys" >/dev/null 2>&1;
                                                echo "Done";
                                            else
                                                echo "No hibernate found";
                                            fi
                                            resetFlag "$part";
                                            umount /ntfs;
                                        else
                                            echo "Failed";
                                        fi
                                        debugPause;
                                    fi
                                fi
                            }
                            

                            And ntfsfix too :

                            # $1 is the part
                            resetFlag() {
                                if [ -n "$1" ]; then
                                    fstype=`blkid -po udev $1 | awk -F= /FS_TYPE=/'{print $2}'`;
                                    if [ "$fstype" == "ntfs" ]; then
                                        dots "Clearing ntfs flag";
                                        ntfsfix -b -d $1 &>/dev/null;
                                        echo "Done";
                                        debugPause;
                                    fi
                                fi
                            }
                            

                            Not sure if the two functions are used during upload process, @Developers ?

                            @Uncle-Frank stated that these two functions are called for resizable image types. Resizeable is the image type I’m using for this…

                            So that means these two functions are either running and failing on /dev/sda4, or not running at all, or not running at the correct time.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Oct 22, 2015, 6:41 AM

                              We are talking about upload, right? See here yourself: https://github.com/FOGProject/fogproject/blob/c796b1ab68e2215ea60e6ef33c732bd5a475501e/src/buildroot/package/fog/scripts/bin/fog.upload#L120 (removePageFile which is called before schrinking)
                              and
                              https://github.com/FOGProject/fogproject/blob/c796b1ab68e2215ea60e6ef33c732bd5a475501e/src/buildroot/package/fog/scripts/bin/fog.upload#L174 (resetFlag which is called aftershrinking)

                              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
                              • W
                                Wayne Workman
                                last edited by May 13, 2016, 9:55 PM

                                Old thread - new news.

                                Had this error show up when uploading from an EliteBook 8730w with Win10 on it.

                                While I was digging up the commands in the wiki to fix it, when the laptop rebooted on it’s own (due to error), it began uploading!

                                How strange?

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

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

                                167

                                Online

                                12.2k

                                Users

                                17.4k

                                Topics

                                155.5k

                                Posts
                                Copyright © 2012-2024 FOG Project