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

    FOG restore only one partition

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    83
    39.9k
    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.
    • P
      plegrand @Sebastian Roth
      last edited by

      @Sebastian-Roth said:

      mkdir -p /ntfs
      ntfs-3g -o force,ro /dev/sda3 /ntfs
      find /ntfs -type f -iname "SYSTEM"
      

      find /ntfs -type f -iname “SYSTEM”
      /ntfs/Windows/System32/config/RegBack/SYSTEM
      /ntfs/Windows/System32/config/system

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

        @plegrand My intuition was right… This is one thing I hate about windows. It does not care much about case-sensitivity in filenames and paths! Someone or some tool made a backup of the original reg-file called ‘SYSTEM’ but named the new file ‘system’. Windows seams to not care and still boots. But FOG/linux cares about it. We have the path for this defined as ‘/ntfs/Windows/System32/config/SYSTEM’ and therefore our scripts won’t find ‘…/config/system’!

        I am not sure what to do about it. I don’t think we should change our scripts as this has never happened before and I guess this is very rarely the case. But it’s kind of easy for you to fix. After restoring the Win7 image via ghost please boot in debug upload again and run:

        mkdir -p /ntfs
        ntfs-3g -o force,rw /dev/sda3 /ntfs
        mv /ntfs/Windows/System32/config/system /ntfs/Windows/System32/config/SYSTEM.moved
        mv /ntfs/Windows/System32/config/SYSTEM.moved /ntfs/Windows/System32/config/SYSTEM
        umount /ntfs
        

        I guess you can rename the file directly from ‘system’ to ‘SYSTEM’ but I have seen cases (probably on VFAT filesystems) where this fails - therefore I suggest two renames. After that you can start the upload via command fog…

        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

        P 2 Replies Last reply Reply Quote 1
        • P
          plegrand @Sebastian Roth
          last edited by

          @Sebastian-Roth Hello
          then after restoring ghost image i launch debug capture task and then

          mkdir -p /ntfs
          ntfs-3g -o force,rw /dev/sda3 /ntfs
          find /ntfs -type f -iname "SYSTEM"
          /ntfs/Windows/System32/config/RegBack/SYSTEM
          /ntfs/Windows/System32/config/system
          
          
          mv /ntfs/Windows/System32/config/system /ntfs/Windows/System32/config/SYSTEM.moved
          mv /ntfs/Windows/System32/config/SYSTEM.moved /ntfs/Windows/System32/config/SYSTEM
          
          find /ntfs -type f -iname "SYSTEM"
          /ntfs/Windows/System32/config/RegBack/SYSTEM
          /ntfs/Windows/System32/config/SYSTEM
          
          umount /ntfs/
          
          

          fog to launch capture task
          reboot
          After capture windows 7 works fine. 🙂

          Deploy task
          Same problem : stuck on “booting …”

          I keep the Tom’s script (revertbcd) may be i should remove it ?

          1 Reply Last reply Reply Quote 0
          • P
            plegrand @Sebastian Roth
            last edited by

            @Sebastian-Roth May be i could give you access to this machine if it’s usefull ?

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

              Definitely was useful to get access to the machine. That particular partition layout turned out to be not very easy to handle and FOG stumbled! Those DELL partitions are quite an issue. But I think Tom and I have fixed it all. @plegrand Please upgrade to the very latest version. Then re-upload and try deploy again! Please test both of your machines to see if this is really the same issue.

              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

              P 1 Reply Last reply Reply Quote 1
              • P
                plegrand @Sebastian Roth
                last edited by

                @Sebastian-Roth Hello
                do i have to keep the “revertbcd” script ?

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

                  @plegrand Please try without it first!

                  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

                  P 3 Replies Last reply Reply Quote 0
                  • P
                    plegrand @Sebastian Roth
                    last edited by

                    @Sebastian-Roth argh …
                    for this test i let it …

                    1 Reply Last reply Reply Quote 0
                    • P
                      plegrand @Sebastian Roth
                      last edited by

                      @Sebastian-Roth Hello

                      • The “revertbcd” script of Tom is still present, i didnt know if i had to remove it
                      • Upgrade to 4981 / 6663
                      • Remove old image with file
                      • Create image
                        fog-windows7 - 15
                        default: Windows 7
                        Single Disk - Resizable
                        Everything
                      • Associate image to client
                      • Launch Basic task capture
                      • Capture works fine and windows start normally
                      • Launc basic task deploy
                      • … It works !!! 😉
                      1 Reply Last reply Reply Quote 0
                      • P
                        plegrand @Sebastian Roth
                        last edited by

                        @Sebastian-Roth

                        • I removed the “revertbcd” script of Tom.
                        • Remove old image with file
                        • Create image
                          fog-windows7 - 16
                          default: Windows 7
                          Single Disk - Resizable
                          Everything- Associate image to client
                        • Associate image to client
                        • Launch Basic task capture
                        • Capture works fine and windows start normally
                        • Launc basic task deploy
                        • … It works !!! 😉
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 2 / 5
                        • First post
                          Last post

                        154

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project