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

restoring original partition layout in capture mode

Scheduled Pinned Locked Moved Solved
Bug Reports
2
15
1.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.
  • B
    badgerhill
    last edited by May 1, 2020, 5:40 AM

    Hi,
    I have the following issue when capturing an image. The original partition layout is not restored.
    I am capturing an entire disk 120gb
    dev/sda1 26GB (ext4)
    dev/sda2 swap ~1GB
    dev/sda3 93GB (ext4)

    Image Type is “Single Disk - Resizable”
    After capturing I can read:
    “Image captured
    Restoring original partition layout” which takes a while.
    After reboot I do a “df -h” which shows the first partition has shrunk to ~11GB, which is around 2GB more than the used space. Same for sda3.
    So for some reason the restoring of the original partitionlayout does not seem to work in capture mode.

    If I deploy that image back onto the machine, the part. layout is fine.

    As I am new to fog, my question is, is this default behavior, or did i miss sth. in the documentation? It is reproducable.
    I am using Fog 1.5.9-RC1

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by May 1, 2020, 7:47 AM

      @badgerhill Can you please post the content of the text files d1.partitions, d1.minimum.partitions and d1.fixed_size_partitions here. You find those in the image directory of that particular image on your FOG server.

      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

      B 1 Reply Last reply May 1, 2020, 7:59 AM Reply Quote 0
      • B
        badgerhill
        last edited by May 1, 2020, 7:55 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • B
          badgerhill @Sebastian Roth
          last edited by May 1, 2020, 7:59 AM

          @Sebastian-Roth

          B
          badgerhill 2 minutes ago

          sure i can:

          d1.partitions:

          label: dos
          label-id: 0x98702b27
          device: /dev/sda
          unit: sectors
          sector-size: 512
          
          /dev/sda1 : start=        2048, size=    54685696, type=83, bootable
          /dev/sda2 : start=    54687744, size=     2000896, type=82
          /dev/sda3 : start=    56688640, size=   193380864, type=83
          

          d1.minimum.partitions

          label: dos
          label-id: 0x98702b27
          device: /dev/sda
          unit: sectors
          sector-size: 512
          
          /dev/sda1 : start=        2048, size=    20189232, type=83, bootable
          /dev/sda2 : start=    54687744, size=     2000896, type=82
          /dev/sda3 : start=    56688640, size=     2063796, type=83
          
          

          d1.fixed_size_partitions

          2
          
          1 Reply Last reply Reply Quote 0
          • B
            badgerhill
            last edited by May 2, 2020, 6:52 AM

            Sebastian,
            this issue is reproducible

            i did a fresh install of ubuntu 20.04 desktop
            installed fog 1.5.9-RC1
            did a capture of my linux machine - and the original partition layout was not restored after that.
            in addition to that i also captured a windows 10 machine with the samre result - actually win 10 is not really usable after the capture due to the lack of disk space.

            redeploying either machine fixes the issue.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by May 2, 2020, 6:58 AM

              @badgerhill I will look into this issue later on today when I have some more time. Can you please post the very same information from your Windows image? Issues like this that have been reported before were usually due to special partition layouts. This is why I am asking for this information.

              You might also upload the binary file d1.mbr of both the images to an external file share and post a link here.

              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

              B 1 Reply Last reply May 2, 2020, 8:49 AM Reply Quote 0
              • B
                badgerhill @Sebastian Roth
                last edited by May 2, 2020, 8:49 AM

                @Sebastian-Roth

                here is the link for the linux d1.mbr:
                d1.mbr
                https://we.tl/t-AeLW69whx3

                ::::::::::::::
                d1.partitions
                ::::::::::::::
                label: gpt
                label-id: B646C882-4828-4B16-BFB4-400B45E224A2
                device: /dev/sda
                unit: sectors
                first-lba: 34
                last-lba: 250069646
                sector-size: 512
                
                /dev/sda1 : start=        2048, size=     1083392, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=DEB202CA-7F3C-45A9-913B-B18645FFC8CE, name="Basic data partition", attrs="RequiredPartition GUID:63"
                /dev/sda2 : start=     1085440, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=ECCC7B27-F0AB-4B4C-BAAC-3D69BE295DE6, name="EFI system partition", attrs="GUID:63"
                /dev/sda3 : start=     1290240, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=A32700D3-64B2-4F23-A87D-BE1BE726A980, name="Microsoft reserved partition", attrs="GUID:63"
                /dev/sda4 : start=     1323008, size=   248746496, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=36DDF74E-1A1E-4299-A35C-578A01B8207E, name="Basic data partition"
                ::::::::::::::
                d1.minimum.partitions
                ::::::::::::::
                label: gpt
                label-id: B646C882-4828-4B16-BFB4-400B45E224A2
                device: /dev/sda
                unit: sectors
                first-lba: 34
                last-lba: 250069646
                sector-size: 512
                
                /dev/sda1 : start=        2048, size=     1083392, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=DEB202CA-7F3C-45A9-913B-B18645FFC8CE, name="Basic data partition", attrs="RequiredPartition GUID:63"
                /dev/sda2 : start=     1085440, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=ECCC7B27-F0AB-4B4C-BAAC-3D69BE295DE6, name="EFI system partition", attrs="GUID:63"
                /dev/sda3 : start=     1290240, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=A32700D3-64B2-4F23-A87D-BE1BE726A980, name="Microsoft reserved partition", attrs="GUID:63"
                /dev/sda4 : start=     1323008, size=    37690322, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=36DDF74E-1A1E-4299-A35C-578A01B8207E, name="Basic data partition"
                ::::::::::::::
                d1.fixed_size_partitions
                ::::::::::::::
                1:2:3
                

                and here the windows d1.mbr
                https://we.tl/t-0UBcB4uTAW

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by May 2, 2020, 3:28 PM

                  @badgerhill Thanks heaps for providing the detailed information! I was able to reproduce the issue and found there is a problem in current sfdisk tool from the util-linux package. It’s unable to read the d1.partitions line “sector-size: 512” which was generated by the very same tool - very strange. I found a first hint here: https://gitlab.alpinelinux.org/alpine/aports/issues/11200

                  I will keep digging and work on fixing this in the RC1 as soon as possible.

                  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 Sebastian Roth May 2, 2020, 1:41 PM May 2, 2020, 7:23 PM

                    @badgerhill After a bit more research I found the issue is sector-size header was added to the output generated by sfdisk since version 2.35 but the same version fails on reading input with that header.

                    The issue has been fixed upstream already and I will report this to the buildroot developers to include the upstream fix as soon as possible. Meanwhile I’ll compile a manually fixed version. Will report back soon.

                    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 May 2, 2020, 8:14 PM

                      Build is running, new init.xz will be available here in 3 hours for testing: https://dev.fogproject.org/blue/organizations/jenkins/fos/detail/master/128/artifacts

                      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 Sebastian Roth May 3, 2020, 1:02 AM May 3, 2020, 7:01 AM

                        @badgerhill Please re-pull from github and re-run the installer - this issue should be fixed! Marking as solved.

                        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

                        B 1 Reply Last reply May 3, 2020, 7:08 AM Reply Quote 0
                        • B
                          badgerhill @Sebastian Roth
                          last edited by May 3, 2020, 7:08 AM

                          @Sebastian-Roth
                          Thanks Sebastian for the fast fix. Will do so, retest, and report back.

                          B 1 Reply Last reply May 3, 2020, 8:21 AM Reply Quote 0
                          • B
                            badgerhill @badgerhill
                            last edited by May 3, 2020, 8:21 AM

                            @badgerhill
                            downloaded init.xz from jenkins and exchanged it on my fog server.
                            restoring original partition layout in capture mode is working now.
                            thanks

                            p.s.: did not find new commit on github, that’s why i downloaded init.xz from jenkins

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by May 3, 2020, 1:32 PM

                              @badgerhill said in restoring original partition layout in capture mode:

                              did not find new commit on github, that’s why i downloaded init.xz from jenkins

                              In this case there was no new commit in the fogproject repo needed, only in the fos repo. The installer will pull the latest init from the server if you use dev-branch or RC. But manual download will also work!

                              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 May 21, 2020, 6:02 AM

                                As I just stumbled upon this topic again I might update as well. This is fixed upstream and we already use the version fixed by buildroot in version 2020.02.2.

                                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

                                222

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project