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

    Can't restore image, exit code 1. Missing partition number.

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    10
    4.2k
    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.
    • T
      TaTa
      last edited by

      Server
      • FOG Version: 1.3.4 revision 6064
      • OS: 14.04.5
      Client
      • Service Version:
      • OS: Windows 10
      Description

      I created Windows 10 image from scratch using 250GB HDD and selected Single Disk - Resizable when uploading this image. I was able to restore it using 250HDD or large. Whenever I restore it to a 160GB HDD, I will get “Target partition size (336MB) is smaller than source (349MB). Use option -C to disable size checking (Dangerous)” and “Image failed to restore and exited with exit code 1 (writeImage).” I’ve checked d1.fixed_size_partitions file; partition number seems to be missing. After adding “1” in that file and I was able to restore the image to a 160GB HDD. Is there a quick fix for this or should I wait until the next official release? Thank you.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        @TaTa, that currently IS the fix. You can try the 1.3.5-RC-1 release to see if uploading properly generates the fixed size partitions.

        The problem, as it stands, is trying to figure out the lesser of two evils.

        Either I can implicitly define the first partition as fixed always or try to have it auto detect. The code base has been updated to try to correct this behaviour but I don’t have any images with strange partition layouts that i could try.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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
        • T
          TaTa
          last edited by

          Thanks @Tom-Elliott for your prompt response.

          I upgraded my test server to 1.3.5RC5 using git method. Same issue. Partition number is still missing.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Sorry I took so long to respond, please re-pull and rerun the installer. I think I finally got it (with any luck at least).

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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
            • T
              TaTa
              last edited by

              Thanks @Tom-Elliott I pulled/update using git but still does not work. I got same error as before.

              1 Reply Last reply Reply Quote 0
              • C
                chanter20001
                last edited by

                Hello, has there been a solution found to this issue. I am trying to image a Dell Optiplex 3050 (right out of the box) and getting the same issue. I am running Fog Server 1.4.3 and for some reason I am unable to get this pc to image.

                I have it booting with UEFI disabled.
                It has a Toshiba THNSNK256GCS8 Sata 256GB SSD Drive in it.
                The biggest issue here: I am new to Linux and especially to FOG!

                Any help would be appreciated.

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  Mind you this likely means you need to re-capture the image as the partition number it’s missing is specific to the file missing in the image. Typically, this could also indicate the HDD is not being recognized as a valid HDD we can image, (Most likely setup in RAID mode within the BIOS rather than AHCI/ATA)

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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 Reply Quote 0
                  • C
                    chanter20001 @Tom Elliott
                    last edited by

                    @Tom-Elliott

                    Interesting, this is a single drive system.

                    Are there instructions on how to set the partition number during the imaging process?

                    Thanks for your help on this matter.

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @chanter20001
                      last edited by

                      @chanter20001 Enter your BIOS first and see if disk mode is set to SATA/AHCI or RAID mode. Change from RAID to AHCI if possible.

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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 Reply Quote 0
                      • C
                        chanter20001 @Tom Elliott
                        last edited by

                        @Tom-Elliott

                        It was on Raid, so I changed to AHCI. No Joy, still get the same message.

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

                        148

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project