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

    Target partition is smaller than source

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    5
    24
    10.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.
    • Wayne WorkmanW
      Wayne Workman @Sebastian Roth
      last edited by

      @Sebastian-Roth @Tom-Elliott I agree. Since the disaster has been averted, there’s now time to dig deeper.

      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
      • Scott BS
        Scott B @Sebastian Roth
        last edited by

        @Wayne-Workman , @Tom-Elliott, @Sebastian-Roth

        @Scott-B Would you still be so kind to answer my question(s) so I might be able to find the issue to get it fixed eventually?

        No problem.

        1. I start on a VM that has a 40GB hdd. I install windows and make a sysprep image. I image that up to FOG. I call it sysprepmaster in FOG.

        2. I deploy that sysprepmaster image to the pcs we have in our classrooms. We are lucky to only have 5 basic models. That sysprepmaster comes down to those pcs with no issue.

        3. On each of those specific types of PCs I make any other changes that need done specific to their model or use. Then I run sysprep to make and image for each one of them. 4000SYSPREP or DAK81SYSPREP for example. These machines have different hard drive sizes, 80GB in the case of the 4000SYSPREP which is where my previous post examples come from.

        4. Finally I pull down the model specific images on the other similar models. That’s where I see the error in question.

        What other information can I give you to help?

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @Scott B
          last edited by

          @Scott-B The contents of all those small text files in the images directory plus the MBR in there too. Zip em all up and upload.

          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/

          Scott BS 1 Reply Last reply Reply Quote 0
          • Scott BS
            Scott B @Wayne Workman
            last edited by

            @Wayne-Workman 0_1464981879587_4000SYSPREP.zip

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

              Now that I have done some testing I don’t think this is the same issue than @robza has. He’s got a totally different partition layout (which I mentioned already) which we don’t do a very good detection on yet. His problem will never be fixed by re-trying I am sure! Will get to this later.

              Now back to @Scott-B’s issue. Your partition layout is very simple and should not cause any trouble. Don’t get me wrong. Not saying that I don’t believe you but I need to kindly ask you to give us some more information. The picture you posted is Roger Saffle’s. While I don’t mind reusing anyones pictures we really need your information here to figure out what’s going wrong (with your image/partition layout).

              So can you please to me a favor: Create a new image definition (so you don’t need to mess with your working ones) and make it Single disk - non-resizable. Upload from the same client you have before (so we have the same information in d1.partitions). Then deploy this new image in debug mode to one of your clients. If you get an error, please take a picture and run the following command when you get back to the command shell: sfdisk -d /dev/sda (again take a picture). If it does not fail could you please try over and over till you see the error.

              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

              Scott BS 1 Reply Last reply Reply Quote 0
              • Scott BS
                Scott B @Sebastian Roth
                last edited by

                @Sebastian-Roth said in Target partition is smaller than source:

                Now that I have done some testing I don’t think this is the same issue than @robza has. He’s got a totally different partition layout (which I mentioned already) which we don’t do a very good detection on yet. His problem will never be fixed by re-trying I am sure! Will get to this later.

                Now back to @Scott-B’s issue. Your partition layout is very simple and should not cause any trouble. Don’t get me wrong. Not saying that I don’t believe you but I need to kindly ask you to give us some more information. The picture you posted is Roger Saffle’s. While I don’t mind reusing anyones pictures we really need your information here to figure out what’s going wrong (with your image/partition layout).

                So can you please to me a favor: Create a new image definition (so you don’t need to mess with your working ones) and make it Single disk - non-resizable. Upload from the same client you have before (so we have the same information in d1.partitions). Then deploy this new image in debug mode to one of your clients. If you get an error, please take a picture and run the following command when you get back to the command shell: sfdisk -d /dev/sda (again take a picture). If it does not fail could you please try over and over till you see the error.

                I can, but won’t be able to get to it till Monday. @Roger-Saffle and I work together. Same machines in question.

                1 Reply Last reply Reply Quote 1
                • Scott BS
                  Scott B
                  last edited by Sebastian Roth

                  I created a test image as requested as a single disk non resizable. Info below. When deployed it worked fine.

                  root@FOG:/images/TEST1# ls -la
                  total 14356996
                  drwxrwxrwx  2 root root        4096 Jun  7 13:53 .
                  drwxrwxrwx 20 fog  root        4096 Jun  7 13:53 ..
                  -rwxrwxrwx  1 root root     1048576 Jun  7 13:40 d1.mbr
                  -rwxrwxrwx  1 root root    10371828 Jun  7 13:40 d1p1.img
                  -rwxrwxrwx  1 root root 14690122936 Jun  7 13:53 d1p2.img
                  -rwxrwxrwx  1 root root         190 Jun  7 13:40 d1.partitions
                  
                  root@FOG:/images/TEST1# cat d1.partitions
                  label: dos
                  label-id: 0x9132375b
                  device: /dev/sda
                  unit: sectors
                  
                  /dev/sda1 : start=        2048, size=     1024000, type=7, bootable
                  /dev/sda2 : start=     1026048, size=    82857984, type=7
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Scott-B said:

                    I created a test image as requested as a single disk non resizable. Info below. When deployed it worked fine.

                    Well then I am not able to help. Can you please try again and again till it fails? And if it fails then run sfdisk -d /dev/sda and post a picture here, please.

                    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 1
                    • S
                      Sebastian Roth Moderator @Scott B
                      last edited by Sebastian Roth

                      @Scott-B said in Target partition is smaller than source:

                      @Wayne-Workman 0_1464981879587_4000SYSPREP.zip

                      This is really confusing! In that ZIP there is d1.minimum.partitions and d1.fixed_size_partitions which you only get with resizable image type, while in your first post you said this is non-resizable. My guess is you uploaded as resizable once and then changed image type to non-resizable. The error is still weird but maybe that can explain the 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

                      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @Sebastian Roth
                        last edited by

                        @Sebastian-Roth That makes a lot of sense to me. Does the inits assume it’s re-sizable if those files are present?

                        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/

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

                          @Wayne-Workman said:

                          That makes a lot of sense to me. Does the inits assume it’s re-sizable if those files are present?

                          While I am still not sure this was the issue I am pretty sure that things can go wrong if you simply change from resizable to non-resizable (plus use different size destination disks) without uploading again. But the inits do not assume resizable just because those files are there - they do the image type configured in the DB and just try to use the partition information available (d1.partitions in case of non-resizable) ignoring the other stuff.

                          As I said: It doesn’t have to cause trouble but it’s likely to.

                          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 1
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post

                          181

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project