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

Wrong Image Size indicated in the image manager.

Scheduled Pinned Locked Moved
General Problems
4
44
9.1k
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.
  • G
    george1421 Moderator @processor
    last edited by george1421 Apr 18, 2019, 8:39 AM Apr 18, 2019, 2:39 PM

    @processor Its something you can do, but I don’t remember the exact file to change. Its a simple change, but if you make the wrong one its not good. That is why I sent a note to the devs.

    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!

    P 1 Reply Last reply Apr 18, 2019, 2:58 PM Reply Quote 0
    • P
      processor @george1421
      last edited by Apr 18, 2019, 2:58 PM

      @george1421 ok looking forward the info.

      1 Reply Last reply Reply Quote 0
      • J
        Junkhacker Developer
        last edited by Apr 18, 2019, 4:29 PM

        ok, in the directory for that image, there should be a file named “d1.fixed_size_partitions”. the contents of that file would be “:1” telling it that partition one should not be resized. delete that line.

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth Apr 18, 2019, 2:21 PM Apr 18, 2019, 8:20 PM

          @george1421 We skip some of the checks for single partition setups. See here for example: https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.upload#L108

          @processor Beside what I posted about the mentioned d1.fixed_size_partitions will still be created on upload/capture and seems like we don’t skip the tests for single partition setups on deploy. Therefore it won’t do the resizing on deploy for you. Quick fix as suggested by @Junkhacker, delete that file from your /images/… directory and it should expand.

          Many thanks for George who kept asking the right questions to nail this down. I’ll see if it makes sense to add the check skipping for single partition setups on deployment as well.

          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

          P 1 Reply Last reply Apr 19, 2019, 7:36 AM Reply Quote 1
          • P
            processor @Sebastian Roth
            last edited by processor Apr 19, 2019, 2:16 AM Apr 19, 2019, 7:36 AM

            @Sebastian-Roth

            Hi, unfortunatelly, it did not worked, still saying a 500GB hd is too small whereas there is only 80GB of data. I try to remove :1 or to delete d1.fixed_size_partitions and result is the same. May be there is some info info stored in d1.mbr or img that can’t be changed.

            When I get the error message regarding the size, there is an info inside telling that I can use -C parameter to avoid size checkin. I guess this is a partclone message. Do you know if it’s possible to apply this parameter?

            [edit]

            In debug mode I ran

            partclone.ntfs -r -C -s /images/testimage/d1p1.img -o /dev/sda1
            

            and it keeps telling me I have not enough space 😞

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Apr 19, 2019, 8:47 AM

              @processor said in Wrong Image Size indicated in the image manager.:

              still saying a 500GB hd is too small whereas there is only 80GB of data

              Maybe I have missed that in the earlier discussion. Has it always been this exact error?? Can you please post a picture of that error on screen??

              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

              P 1 Reply Last reply Apr 19, 2019, 9:26 AM Reply Quote 0
              • P
                processor @Sebastian Roth
                last edited by processor Apr 19, 2019, 3:26 AM Apr 19, 2019, 9:26 AM

                @Sebastian-Roth Here it is :
                df1ada46-5b0b-4751-9b3c-f51225fd4bfd-image.png !

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Apr 19, 2019, 9:43 AM

                  @processor Please post the contents of the text files d1.partitions and d1.minimum.partitions from that image.

                  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

                  P 1 Reply Last reply Apr 19, 2019, 9:53 AM Reply Quote 0
                  • P
                    processor @Sebastian Roth
                    last edited by Apr 19, 2019, 9:53 AM

                    @Sebastian-Roth

                    d1.minimum.partitions :

                    label: dos
                    label-id: 0xd1ff252a
                    device: /dev/sda
                    unit: sectors
                    
                    /dev/sda1 : start=        2048, size=  1875380224, type=7, bootable
                    

                    d1.partitions :

                    label: dos
                    label-id: 0xd1ff252a
                    device: /dev/sda
                    unit: sectors
                    
                    /dev/sda1 : start=        2048, size=  1875380224, type=7, bootable
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Apr 22, 2019, 10:05 PM

                      @processor Can you please schedule another upload/capture task but tick the checkbox for debug. Boot up the client and when you get to the shell run blkid -po udev /dev/sda1 and take a picture of the output.

                      Then run command fog to start the upload and step through the whole process. Please take pictures of the screen. What I am most interested in is the output of the lines where it says ... Partition count of ...

                      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

                      P 1 Reply Last reply May 2, 2019, 8:38 AM Reply Quote 0
                      • P
                        processor @Sebastian Roth
                        last edited by May 2, 2019, 8:38 AM

                        @Sebastian-Roth

                        Hi this is what you asked for :
                        IMG_20190502_102036.jpg

                        Screenshot_20190502_102514_com.huawei.himovie.overseas.jpg

                        Screenshot_20190502_102527_com.huawei.himovie.overseas.jpg

                        Screenshot_20190502_102530_com.huawei.himovie.overseas.jpg

                        Screenshot_20190502_102535_com.huawei.himovie.overseas.jpg

                        Screenshot_20190502_102549_com.huawei.himovie.overseas.jpg

                        Screenshot_20190502_102553_com.huawei.himovie.overseas.jpg

                        Then the capture process start.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by May 2, 2019, 6:59 PM

                          @processor Please download the latest init files (32 bit and 64 bit) and put those in /var/www/html/fog/service/ipxe/ (rename the originals for the time being).

                          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

                          P 3 Replies Last reply May 7, 2019, 8:26 AM Reply Quote 0
                          • P
                            processor @Sebastian Roth
                            last edited by processor May 7, 2019, 2:27 AM May 7, 2019, 8:26 AM

                            @Sebastian-Roth
                            It’s resizing with this init files.
                            is it related with what I just saw in the 1.5.6 change log :
                            "Change detection of fixed partitions from labels to partition flags. "

                            I wait the end of the dump and will deploy, to check that everything is OK.

                            Proc.

                            1 Reply Last reply Reply Quote 0
                            • P
                              processor @Sebastian Roth
                              last edited by May 7, 2019, 9:34 AM

                              @Sebastian-Roth

                              So the resizing worked, but I had a major issue at the end of the dump :
                              IMG_20190507_105812.jpg

                              This prevent the task to end.

                              I’ll put back the right ini file and check that’s not a local issue.

                              1 Reply Last reply Reply Quote 0
                              • P
                                processor @Sebastian Roth
                                last edited by May 9, 2019, 7:26 PM

                                @Sebastian-Roth

                                I can confirm that the fogftp error is related to the ini file uploaded as putting back the old file solved this problem.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth May 9, 2019, 2:19 PM May 9, 2019, 8:15 PM

                                  @processor Which version of the init file are we talking about here? Sure the new one is from 1.5.6 but what version is the older one from that you tested?

                                  From the error message we see in the picture I still can’t imagine that a change of the init file (this being the only change) can cause this error. That ftp code is running on the FOG server and only invoked by the client through URL calls. Those URL calls have not changed in a long time as far as I know.

                                  Are you absolutely sure that simply changing the init file (/var/www/html/fog/service/ipxe/init.xz) from a new version to an older one (which version?) triggers fixes this error? How did you move to the older init version? Simply by copying the file or re-running an older installer?

                                  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

                                  P 1 Reply Last reply May 10, 2019, 5:44 AM Reply Quote 1
                                  • P
                                    processor @Sebastian Roth
                                    last edited by May 10, 2019, 5:44 AM

                                    @Sebastian-Roth
                                    Hi Sebastien,

                                    I’m using FOG 1.5.5 with init files included with it.
                                    As suggested in a previous post (https://forums.fogproject.org/post/123192), I backed up init files stored in /var/www/html/fog/service/ipxe/ and put instead the last ini files.

                                    I had the behavior described : shrinking OK but FTP error then. I put back the 1.5.5 ini files and then everything worked back. It’s may be just a coincidence I can try again.

                                    1 Reply Last reply Reply Quote 1
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by May 12, 2019, 9:42 AM

                                      @processor Did you get to test if it’s definitely the changed inits causing/fixing the FTP 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

                                      P 1 Reply Last reply May 15, 2019, 8:37 AM Reply Quote 0
                                      • P
                                        processor @Sebastian Roth
                                        last edited by May 15, 2019, 8:37 AM

                                        @Sebastian-Roth

                                        Hi Sebastien, I just did the test again and put the new ini files create the FTP error and put back the original 1.5.5 ini file correct it.

                                        So you confirm the 1.5.6 include the fix? then I should just upgrade from 1.5.5 to 1.5.6, no?

                                        Proc

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sebastian Roth May 15, 2019, 2:44 AM May 15, 2019, 8:42 AM

                                          @processor said:

                                          Hi Sebastien, I just did the test again and put the new ini files create the FTP error and put back the original 1.5.5 ini file correct it.

                                          So are you saying that using the 1.5.6 inits is causing the FTP issue but using the 1.5.5 inits you don’t get the FTP error but the UUID issue?!??!

                                          Well we changed the FTP username from fog to fogproject from 1.5.5 to 1.5.6 but that is not hardcoded in the inits and shouldn’t cause this issue I think. You might still try updating to 1.5.6 to see if that fixes the problem.

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

                                          162

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project