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

Resizable partition is not expanding

Scheduled Pinned Locked Moved Solved
Bug Reports
2
26
7.4k
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
    Tom Elliott
    last edited by Feb 21, 2017, 2:53 AM

    Was this image, by chance, double captured? Meaning, it was started the capture process, then restarted for some reason?

    I’m asking this because, what I’m understanding of this particular image and the partition files you presented, the files are identical. I believe this might be a proponent of the problem. I will go ahead and look at the files dealing with 1.3.2 and 1.3.5 to see if I can see anything that sticks immediately out. While I’m sure there have been some changes, all of them in regards to resizing have been fairly minimal.

    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
      Tom Elliott
      last edited by Feb 21, 2017, 1:56 PM

      Good news, I know what’s wrong. I still have a hard to believing that it “worked” once before, though that’s just my crazy thoughts.

      So I built my own GPT based system and captured the image of it.

      This worked beautifully, What hasn’t worked as well is the resizing of GPT.

      So here’s what’s happening, from what I can see (during deploy process):

      sfdisk is applied.
      maths are done to attempt filling the disk.
      Because the partition start isn’t shifted to the right, the freshly built sfdisk isn’t allowed to be applied.
      Why does this occur particularly in GPT, it seems? This I haven’t quite figured. I can tell you it’s because of the strangeness of GPT partitions as they’re typically defined. Rather than shifting the next partitions start partition (whether they’re of fixed size or not) to a point that it might be able to able use, it’s trying to use the original start partition as defined in the sfdisk file, and not shifting start point of the other partitions.

      I don’t know if this is trying to use the “full disk” for one partition rather than trying to evenly distribute it though. It feels like this might be what’s happening, though again I’m not 100%.

      The reason this may be happening, I suspect, is because GPT lay’s out the disk much different than a typical MBR layout would be.

      Typical MBR Layout will, typically, have the “larger” of the partitions at the end of the table.

      For example:
      Partition 1 will be a smaller boot partition.
      Partition 2 will be the “data” partition (the one we want to resize).

      I don’t know, and suspect this could cause issues, how this affects multiple-boot systems currently. It might have a layout like:
      partition1 smaller windows boot partition/recovery?
      partition 2 windows data (wants to be resized)
      partition 3 linux swap or data
      partition 4 linux swap or data.

      Ultimately where the partitions are at shouldn’t matter, I just don’t know of a good way to approach it. This is particularly true in the case of “fixed” partitions, as we try not to adjust the start partitions at all for fixed partitions.

      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
        Tom Elliott
        last edited by Feb 21, 2017, 2:00 PM

        Things I do know:

        We need to capture the image based on the starting point of the partition, regardless of if the partition has been shrunk. This is because the “start” points is where the data begins for that partition.

        On deploy, we should NOT need to be so cautious to the start point whether the partition is a fixed size or not because we get to place the data whereever it may be needed.

        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
        • H
          Hongyun
          last edited by Feb 21, 2017, 4:58 PM

          No, the image is not double captured. I will try to capture a fixed partition image today to see if it will work, since most of my lab computers are using the same size hard drives, but it would be nice to have the resizable partitions work.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Feb 21, 2017, 6:44 PM

            Please repull and try deploying again.

            I doubt it will fix the issue entirely, but it should bring back expanding disks in, what I suspect, will be a more appropriate manner.

            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
              Tom Elliott
              last edited by Feb 21, 2017, 6:46 PM

              By repull, I mean rerun the fog installer.

              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

              H 2 Replies Last reply Feb 21, 2017, 9:46 PM Reply Quote 0
              • H
                Hongyun @Tom Elliott
                last edited by Hongyun Feb 21, 2017, 3:48 PM Feb 21, 2017, 9:46 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • H
                  Hongyun @Tom Elliott
                  last edited by Feb 21, 2017, 9:55 PM

                  @Tom-Elliott There is something wrong. After I reinstalled FOG, uploaded a resizable partition, then downloaded the image to another computer. Both the base image computer and the new computer’s partition table got changed.

                  Here is the partition table before upload the image:
                  Device Boot Start End Sectors Size Id Type
                  /dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                  /dev/sda2 206848 467030015 466823168 222.6G 7 HPFS/NTFS/exFAT
                  /dev/sda3 467030016 765794303 298764288 142.5G 83 Linux
                  /dev/sda4 765794304 781420543 15626240 7.5G 82 Linux swap / Solaris

                  Here is the partition table on the base image computer after upload the image:
                  Device Boot Start End Sectors Size Id Type
                  /dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                  /dev/sda2 206848 467030015 466823168 222.6G 7 HPFS/NTFS/exFAT
                  /dev/sda3 467030016 516360375 49330360 23.5G 83 Linux
                  /dev/sda4 765794304 781420543 15626240 7.5G 82 Linux swap / Solaris

                  Here is the partition table on the new computer:
                  Device Boot Start End Sectors Size Id Type
                  /dev/sda1 * 2048 383646 381599 186.3M 7 HPFS/NTFS/exFAT
                  /dev/sda2 383647 870205150 869821504 414.8G 7 HPFS/NTFS/exFAT
                  /dev/sda3 870205152 961146436 90941285 43.4G 83 Linux
                  /dev/sda4 961146438 976772677 15626240 7.5G 82 Linux swap / Solaris

                  When I define the image, I used Linux as the Operating System, but it looks like the partition table changes are only affecting the Linux partitions, should I choose a different Operating System for the image?

                  Now I feel regret, I should have upload a non-resizable image first, I didn’t expect it will change the partition table when uploading an image…

                  T 1 Reply Last reply Feb 21, 2017, 10:14 PM Reply Quote 0
                  • T
                    Tom Elliott @Hongyun
                    last edited by Feb 21, 2017, 10:14 PM

                    @Hongyun said in Resizable partition is not expanding:

                    Here is the partition table before upload the image:
                    Device Boot Start End Sectors Size Id Type
                    /dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                    /dev/sda2 206848 467030015 466823168 222.6G 7 HPFS/NTFS/exFAT
                    /dev/sda3 467030016 765794303 298764288 142.5G 83 Linux
                    /dev/sda4 765794304 781420543 15626240 7.5G 82 Linux swap / Solaris
                    Here is the partition table on the base image computer after upload the image:
                    Device Boot Start End Sectors Size Id Type
                    /dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                    /dev/sda2 206848 467030015 466823168 222.6G 7 HPFS/NTFS/exFAT
                    /dev/sda3 467030016 516360375 49330360 23.5G 83 Linux
                    /dev/sda4 765794304 781420543 15626240 7.5G 82 Linux swap / Solaris
                    Here is the partition table on the new computer:
                    Device Boot Start End Sectors Size Id Type
                    /dev/sda1 * 2048 383646 381599 186.3M 7 HPFS/NTFS/exFAT
                    /dev/sda2 383647 870205150 869821504 414.8G 7 HPFS/NTFS/exFAT
                    /dev/sda3 870205152 961146436 90941285 43.4G 83 Linux
                    /dev/sda4 961146438 976772677 15626240 7.5G 82 Linux swap / Solaris

                    I’m seeing changes on all three.

                    First one is the “original”
                    Second one is the shrunken state.
                    Third one is the “expanded” form. Linux looks expanded, and NTFS looks expanded. Is this not happening?

                    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

                    H 1 Reply Last reply Feb 21, 2017, 10:33 PM Reply Quote 0
                    • H
                      Hongyun @Tom Elliott
                      last edited by Feb 21, 2017, 10:33 PM

                      @Tom-Elliott The first one is the original, the second one is the original after I upload image, upload shouldn’t make any changes on the partition, right?

                      T 1 Reply Last reply Feb 21, 2017, 10:34 PM Reply Quote 0
                      • T
                        Tom Elliott @Hongyun
                        last edited by Feb 21, 2017, 10:34 PM

                        @Hongyun It does make changes, but it should reapply the original partition table.

                        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

                        H 1 Reply Last reply Feb 21, 2017, 10:35 PM Reply Quote 0
                        • H
                          Hongyun @Tom Elliott
                          last edited by Feb 21, 2017, 10:35 PM

                          @Tom-Elliott then in this case, it didn’t reapply the original partition table, I have to use gparted to resize the partition.

                          T 1 Reply Last reply Feb 21, 2017, 10:38 PM Reply Quote 0
                          • T
                            Tom Elliott @Hongyun
                            last edited by Feb 21, 2017, 10:38 PM

                            @Hongyun What’s the contents of the new image’s:

                            d1.partitions and d1.minimum.partitions

                            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

                            H 1 Reply Last reply Feb 21, 2017, 10:49 PM Reply Quote 0
                            • H
                              Hongyun @Tom Elliott
                              last edited by Feb 21, 2017, 10:49 PM

                              @Tom-Elliott previous numbers I gave you are all the result of fdisk command

                              $ cat d1.partitions
                              label: dos
                              label-id: 0x242a986c
                              device: /dev/sda
                              unit: sectors

                              /dev/sda1 : start= 2048, size= 204800, type=7, bootable
                              /dev/sda2 : start= 206848, size= 466823168, type=7
                              /dev/sda3 : start= 467030016, size= 49330360, type=83
                              /dev/sda4 : start= 765794304, size= 15626240, type=82

                              $ cat d1.minimum.partitions
                              label: dos
                              label-id: 0x242a986c
                              device: /dev/sda
                              unit: sectors

                              /dev/sda1 : start= 2048, size= 204800, type=7, bootable
                              /dev/sda2 : start= 206848, size= 466823168, type=7
                              /dev/sda3 : start= 467030016, size= 48807402, type=83
                              /dev/sda4 : start= 765794304, size= 15626240, type=82

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tom Elliott
                                last edited by Feb 21, 2017, 10:53 PM

                                Did you mess with the partition layouts before having fog capture it? It looks, to me, like this is the case. The d1.partitions should be different from the d1.minimum.partitions files. d1.partitions is the “original” layout, so if they are the exactly the same, then you will have some issues.

                                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

                                H 1 Reply Last reply Feb 21, 2017, 11:00 PM Reply Quote 0
                                • H
                                  Hongyun @Tom Elliott
                                  last edited by Feb 21, 2017, 11:00 PM

                                  @Tom-Elliott No, I didn’t change any partition settings, I only installed some updates, and then started the upload process. And this is a newly created image, I might have changed it to non-resizable, and then changed back to resizable, but these changes are on FOG WebGUI, before I issue the upload task.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tom Elliott
                                    last edited by Feb 22, 2017, 2:38 PM

                                    Please re-run the installer and try again?

                                    I know it’s a lot of back and forth, but it should work (hopefully).

                                    At least the original and new sizes appear to be expanding on the same originating disk, I have not yet had the chance to test orig < smaller drive and orig > larger drive yet. Just same size disk for now. All appears to be working atleast in that regard.

                                    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

                                    H 1 Reply Last reply Feb 22, 2017, 6:22 PM Reply Quote 0
                                    • H
                                      Hongyun @Tom Elliott
                                      last edited by Feb 22, 2017, 6:22 PM

                                      @Tom-Elliott Yeah! It’s resized properly this time. Thank you so much for your quick response and quick fix!!!

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tom Elliott
                                        last edited by Feb 22, 2017, 7:33 PM

                                        Want to give a shot on both upload and deploy (or did you already do this?)

                                        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

                                        H 1 Reply Last reply Feb 22, 2017, 11:03 PM Reply Quote 0
                                        • H
                                          Hongyun @Tom Elliott
                                          last edited by Feb 22, 2017, 11:03 PM

                                          @Tom-Elliott Yes, I already did this. Updated FOG, then changed the image from non-resizable to resizable, then upload the image, and downloaded to another computer. All works perfectly. Thanks again!

                                          T 1 Reply Last reply Feb 22, 2017, 11:50 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            11/26
                                            Last post

                                          229

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project