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

Move partitions on GPT layouts - need people to test

Scheduled Pinned Locked Moved
General
11
44
8.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
    btoffolon @Tom Elliott
    last edited by Jan 15, 2021, 2:48 PM

    @tom-elliott I use fog 1.5.9, the ramdisk size it’s at 275000 i will try to download again the init file and try again 🙂

    thanks for the answer

    1 Reply Last reply Reply Quote 0
    • B
      btoffolon @Tom Elliott
      last edited by Jan 15, 2021, 3:51 PM

      @tom-elliott i download again the file but i have the same issue

      J 1 Reply Last reply Jan 15, 2021, 6:25 PM Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Jan 15, 2021, 10:53 AM Jan 15, 2021, 4:52 PM

        @btoffolon That is kinda strange. I don’t think I have seen this error message before but it sounds like the init is corrupt or not fully loaded when booting. Though it doesn’t make sense to me as the original FOG 1.5.9 init works for you and other people tested this alpha stage init recently as well.

        Please run those commands and post output here:

        ls -al /var/www/html/fog/service/ipxe/init-201114.xz
        ls -al /var/www/fog/service/ipxe/init-201114.xz
        md5sum /var/www/html/fog/service/ipxe/init-201114.xz
        md5sum /var/www/fog/service/ipxe/init-201114.xz
        

        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 Jan 18, 2021, 1:08 PM Reply Quote 0
        • J
          JJ Fullmer Testers @btoffolon
          last edited by Jan 15, 2021, 6:25 PM

          @btoffolon Does this machine image fine with the original init?
          You can also try a different bzImage. I’m using 5.618RT3 made by @george1421 found here https://forums.fogproject.org/topic/15017/lenovo-l13-yoga-maybe-the-usb-cable-is-bad-error-when-trying-to-register/18?_=1610731427661

          I may have forgotten that I was using a different bzImage kernel when I started testing for this…

          Have you tried the FogApi powershell module? It's pretty cool IMHO
          https://github.com/darksidemilk/FogApi
          https://fogapi.readthedocs.io/en/latest/
          https://www.powershellgallery.com/packages/FogApi
          https://forums.fogproject.org/topic/12026/powershell-api-module

          1 Reply Last reply Reply Quote 0
          • B
            btoffolon @Sebastian Roth
            last edited by Jan 18, 2021, 1:08 PM

            @sebastian-roth @JJ-Fullmer Thanks for your help, for unknonwn reason the file was deleted 😕 well i put it a third time and its work perfectly, i capture a 500Gb HDD disk and deploy in 120Gb SSD.

            d1.partitions

            fog@fog:/images/Salle-Technologie$ cat d1.partitions
            label: gpt
            label-id: 79FE4766-EDD2-4DD0-826C-6DD816A2E7C6
            device: /dev/sda
            unit: sectors
            first-lba: 34
            last-lba: 976773134
            sector-size: 512
            
            /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=5217DE87-4A45-4AC4-A4DD-0C8EB1C5CF5B, name="EFI system partition", attrs="GUID:63"
            /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=15C5E73F-7855-4DA4-A464-4694B0E56628, name="Microsoft reserved partition", attrs="GUID:63"
            /dev/sda3 : start=      239616, size=   975486976, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=E130C384-3F46-4D8F-AD25-B85FDB0127CD, name="Basic data partition"
            /dev/sda4 : start=   975726592, size=     1046528, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=D3FA37D6-10A7-4303-976C-6D8F23C4258F, name="attrs=\x22RequiredPartition GUID:63", attrs="RequiredPartition GUID:63"
            

            d1.minimum.partitions

            fog@fog:/images/Salle-Technologie$ cat d1.minimum.partitions
            label: gpt
            label-id: 79FE4766-EDD2-4DD0-826C-6DD816A2E7C6
            device: /dev/sda
            unit: sectors
            first-lba: 34
            last-lba: 976773134
            sector-size: 512
            
            /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=5217DE87-4A45-4AC4-A4DD-0C8EB1C5CF5B, name="EFI system partition", attrs="GUID:63"
            /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=15C5E73F-7855-4DA4-A464-4694B0E56628, name="Microsoft reserved partition", attrs="GUID:63"
            /dev/sda3 : start=      239616, size=    72336566, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=E130C384-3F46-4D8F-AD25-B85FDB0127CD, name="Basic data partition"
            /dev/sda4 : start=    72577024, size=     1046528, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=D3FA37D6-10A7-4303-976C-6D8F23C4258F, name="attrs=\x22RequiredPartition GUID:63", attrs="RequiredPartition GUID:63"```
            1 Reply Last reply Reply Quote 1
            • G
              Goll420
              last edited by Jan 21, 2021, 11:42 AM

              Hello,

              I came across this thread looking for answers to the same issue which was being faced. I couldn’t deploy an image captured from a larger disk to a smaller one.

              Ran through the steps listed above, and it worked first time like a charm. Many thanks for your continued work on this project.

              Here are the contents of the files.

              d1.paritions

              label: gpt
              label-id: 365BDDEC-3E4F-48D2-B6B1-163B9BE426E5
              device: /dev/sda
              unit: sectors
              first-lba: 34
              last-lba: 1953525134
              sector-size: 512
              
              /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=433B5D94-F683-49C8-9AD4-4DD8D4A8FB97, name="EFI system partition", attrs="GUID:63"
              /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=88539D67-14A1-46AF-A835-473CACB85CD9, name="Microsoft reserved partition", attrs="GUID:63"
              /dev/sda3 : start=      239616, size=  1952250880, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=54F52FB2-FFE4-4C9B-8F55-FB0B3C8542E8, name="Basic data partition"
              /dev/sda4 : start=  1952490496, size=     1034240, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=A60716BC-142E-486F-8962-C3777A684E73, attrs="RequiredPartition GUID:63"
              
              

              d1.minimum.partitions

              label: gpt
              label-id: 365BDDEC-3E4F-48D2-B6B1-163B9BE426E5
              device: /dev/sda
              unit: sectors
              first-lba: 34
              last-lba: 1953525134
              sector-size: 512
              
              /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=433B5D94-F683-49C8-9AD4-4DD8D4A8FB97, name="EFI system partition", attrs="GUID:63"
              /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=88539D67-14A1-46AF-A835-473CACB85CD9, name="Microsoft reserved partition", attrs="GUID:63"
              /dev/sda3 : start=      239616, size=    28668848, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=54F52FB2-FFE4-4C9B-8F55-FB0B3C8542E8, name="Basic data partition"
              /dev/sda4 : start=    28909568, size=     1034240, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=A60716BC-142E-486F-8962-C3777A684E73, attrs="RequiredPartition GUID:63"
              
              

              Temet Nosce.

              1 Reply Last reply Reply Quote 2
              • G
                GeorgeBells
                last edited by Feb 10, 2021, 2:54 PM

                Hi

                I’ve just tested this an it worked without issues - Thank you. I will try to post the contents of those files shortly. My question is, is this new init file good to be made the default somehow?

                G 1 Reply Last reply Feb 10, 2021, 3:22 PM Reply Quote 0
                • G
                  george1421 Moderator @GeorgeBells
                  last edited by Feb 10, 2021, 3:22 PM

                  @georgebells said in Move partition in GPT layout - need people to test:

                  is this new init file good to be made the default somehow?

                  With sufficient testing yes, plus it will be included the next release of fog (1.5.10). What I would do if it tests stable for you is to go into /var/www/html/fog/service/ipxe directory and rename the current init.xz to init.xz.orig and then copy over the updated init to init.xz Doing so will make it default for all systems. On the next update of FOG that “patched” init will be replaced with the official 1.5.10 version. Doing it this way will keep you from having to remember to switch back the default init to init.xz in the future.

                  There is a way to update the configuration in fog settings to make the default init something other than init.xz, but changing it this way causes you to have to remember to switch it back later.

                  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!

                  1 Reply Last reply Reply Quote 1
                  • S
                    Sebastian Roth Moderator
                    last edited by Feb 10, 2021, 7:11 PM

                    @GeorgeBells While I agree with George I still want to emphasize this is in an early testing stage. Using it as default is on your own risk. Don’t blame me if causes an 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

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Feb 15, 2021, 8:32 PM

                      I think we are getting closer to finishing this new feature. I looked through the code changes again and finally found some time to do more testing on this. Simple Debian UEFI install with sda1=/boot, sda2=/ and sda3=swap.

                      Initial install on a 64 GB (virtual) disk - d1.partitions:

                      label: gpt
                      label-id: B1330462-6EE4-45E4-87F8-213A452A66A2
                      device: /dev/sda
                      unit: sectors
                      first-lba: 34
                      last-lba: 134217694
                      sector-size: 512
                      
                      /dev/sda1 : start=        2048, size=     1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=47839DDA-7009-4F7B-98D9-B4B2D4C44956
                      /dev/sda2 : start=     1050624, size=   131096576, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D6E07619-9532-47FD-A8C6-B0FA635CFE25
                      /dev/sda3 : start=   132147200, size=     2068480, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=96D50996-9760-4C22-A14F-1EDA45509C00
                      

                      Deployed it to 32 GB disk and 256 GB disk and both worked fine. System booted and sda2 was expanded to whatever the disk size was (minus /boot and swap) and moved sda3=swap all the way to the end. With that d1.minimum.partitions I could deploy this to a disk as small as roughly 4,2 GB:

                      label: gpt
                      label-id: B1330462-6EE4-45E4-87F8-213A452A66A2
                      device: /dev/sda
                      unit: sectors
                      first-lba: 34
                      last-lba: 134217694
                      sector-size: 512
                      
                      /dev/sda1 : start=        2048, size=     1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=47839DDA-7009-4F7B-98D9-B4B2D4C44956
                      /dev/sda2 : start=     1050624, size=     5683045, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D6E07619-9532-47FD-A8C6-B0FA635CFE25
                      /dev/sda3 : start=     6733824, size=     2068480, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=96D50996-9760-4C22-A14F-1EDA45509C00
                      

                      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 Mar 7, 2021, 3:00 PM

                        We have more evidence this is working even with non-standard partition layouts: https://forums.fogproject.org/topic/15213/clone-500gb-hdd-to-256gb-ssd

                        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
                        • B
                          btoffolon
                          last edited by Mar 8, 2021, 10:29 AM

                          Hi, i have a new issue when i deploy W10 2004 on a smaller SSD. i put an error screen and break the disk partitions. I can’t format it on windows (i don’t try on linux) there is now a protected GPT partition. Did i do something wrong ?

                          Thanks for reading.

                          This is the d1.partition :

                          root@fog:/images# cat Salle-Technologie/d1.partitions 
                          label: gpt
                          label-id: 79FE4766-EDD2-4DD0-826C-6DD816A2E7C6
                          device: /dev/sda
                          unit: sectors
                          first-lba: 34
                          last-lba: 250069646
                          sector-size: 512
                          
                          /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=5217DE87-4A45-4AC4-A4DD-0C8EB1C5CF5B, name="EFI system partition", attrs="GUID:63"
                          /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=15C5E73F-7855-4DA4-A464-4694B0E56628, name="Microsoft reserved partition", attrs="GUID:63"
                          /dev/sda3 : start=      239616, size=    80984324, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=E130C384-3F46-4D8F-AD25-B85FDB0127CD, name="Basic data partition"
                          /dev/sda4 : start=   249022976, size=     1046528, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=D3FA37D6-10A7-4303-976C-6D8F23C4258F, name="attrs=\x22RequiredPartition GUID:63", attrs="RequiredPartition GUID:63"
                          
                          

                          This is the d1.minimum.partition

                          root@fog:/images# cat Salle-Technologie/d1.minimum.partitions 
                          label: gpt
                          label-id: 79FE4766-EDD2-4DD0-826C-6DD816A2E7C6
                          device: /dev/sda
                          unit: sectors
                          first-lba: 34
                          last-lba: 250069646
                          sector-size: 512
                          
                          /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=5217DE87-4A45-4AC4-A4DD-0C8EB1C5CF5B, name="EFI system partition", attrs="GUID:63"
                          /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=15C5E73F-7855-4DA4-A464-4694B0E56628, name="Microsoft reserved partition", attrs="GUID:63"
                          /dev/sda3 : start=      239616, size=    80978882, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=E130C384-3F46-4D8F-AD25-B85FDB0127CD, name="Basic data partition"
                          /dev/sda4 : start=   249022976, size=     1046528, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=D3FA37D6-10A7-4303-976C-6D8F23C4258F, name="attrs=\x22RequiredPartition GUID:63", attrs="RequiredPartition GUID:63"
                          

                          Files :

                          ls -al /var/www/html/fog/service/ipxe/init-201114.xz 
                          -rw-r--r-- 1 fogproject www-data 21180716 janv. 18 09:12 /var/www/html/fog/service/ipxe/init-201114.xz
                          
                          root@fog:/var/www/html/fog/service/ipxe# ls -al /var/www/fog/service/ipxe/init-201114.xz 
                          -rw-r--r-- 1 fog fog 21180716 janv. 15 16:49 /var/www/fog/service/ipxe/init-201114.xz
                          

                          md5sum :

                          root@fog:/var/www/html/fog/service/ipxe# md5sum /var/www/html/fog/service/ipxe/init-201114.xz 
                          04b6d3ed8269f493c1552e4c28f2d708  /var/www/html/fog/service/ipxe/init-201114.xz
                          
                          root@fog:/var/www/html/fog/service/ipxe# md5sum /var/www/fog/service/ipxe/init-201114.xz 
                          04b6d3ed8269f493c1552e4c28f2d708  /var/www/fog/service/ipxe/init-201114.xz
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Mar 8, 2021, 4:43 PM

                            @btoffolon said in Move partitions on GPT layouts - need people to test:

                            /dev/sda3 : start=      239616, size=    80978882, ...
                            /dev/sda4 : start=   249022976, size=     1046528, ...
                            

                            Looks like FOS was not able to move the 4th partition forward as the start sector number is the same in both files.

                            Create a new image definition for testing. Then assign this new image to the host you capture from and schedule a debug capture task. Boot it up and hit ENTER twice to get to the command shell. Now run the simple command fog to start capturing and step through the process. At some point you see it print the partition tables on screen. Take a picture of all that and post here. If unsure what to take a photo of, take some more, upload all pictures to a 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 Mar 9, 2021, 8:34 AM Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Mar 9, 2021, 7:51 AM

                              @btoffolon As well make sure it actually boots into init-201114.xz on PXE startup. When it loads the kernel and init you should see init-201114.xz...ok!

                              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
                              • B
                                btoffolon @Sebastian Roth
                                last edited by Mar 9, 2021, 8:34 AM

                                Hi,

                                @sebastian-roth I take a video. Like that you have everything.
                                https://youtu.be/KzmZGP9T_To

                                You can see in this picture that the init is lauching well :
                                https://cloud.fairy-family.fr/index.php/s/DwCadbqr3SgKSCf

                                The capture worked, i capture from 240Gb SSD. I want to deploy it on 120Gb SSD do you want me to try it ?

                                Thanks for your help !

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Mar 9, 2021, 6:42 PM

                                  @btoffolon said in Move partitions on GPT layouts - need people to test:

                                  The capture worked, i capture from 240Gb SSD. I want to deploy it on 120Gb SSD do you want me to try it ?

                                  Thanks for posting the video. Definitely helpful to debug this. As far as I can tell from the video it was able to move sda4 forward. So I would expect d1.minimum.partitions to look different this time and it should deploy to a smaller size disk. So give it a try.

                                  If deploy fails then post the contents of d1.minimum.partitions here again.

                                  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 Mar 10, 2021, 10:47 AM Reply Quote 0
                                  • B
                                    btoffolon @Sebastian Roth
                                    last edited by Mar 10, 2021, 10:47 AM

                                    @sebastian-roth Hi,

                                    The deploy seems to work. We will continue to deploy with fog and keep you inform of our bugs thanks for your help !

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      lebrun78 @Sebastian Roth
                                      last edited by Mar 26, 2021, 11:15 AM

                                      @sebastian-roth
                                      Hello Sebastian,
                                      Tried with your proposed modifications on a 1.5.9.63 testing server.
                                      I have got this error with an existing image on the server
                                      1616756682935.jpg

                                      Remove the image files on the server, it worked.

                                      Arnaud

                                      Fog Version: Fog 1.5.10
                                      Server OS: AlmaLinux release 8.8

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by Mar 26, 2021, 12:26 PM

                                        @lebrun78 said in Move partitions on GPT layouts - need people to test:

                                        Tried with your proposed modifications on a 1.5.9.63 testing server.
                                        I have got this error with an existing image on the server

                                        I don’t understand what you mean with this. In the picture we see a capture what is most probably failing due to an unclean NTFS filesystem (hard to read the text at the top of the picture but looks like it). I would not expect the init-201114.xz to cause this problem.

                                        Remove the image files on the server, it worked.

                                        ??

                                        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

                                        L 1 Reply Last reply Mar 26, 2021, 1:23 PM Reply Quote 0
                                        • L
                                          lebrun78 @Sebastian Roth
                                          last edited by Mar 26, 2021, 1:23 PM

                                          @sebastian-roth
                                          Yes Youare right.
                                          I focused on the "corrupted size vs. and did not see previous message.
                                          A scan disk on the master and it works.

                                          Thanks.

                                          Fog Version: Fog 1.5.10
                                          Server OS: AlmaLinux release 8.8

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

                                          154

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project