• 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.0k
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.
  • P
    processor
    last edited by Apr 18, 2019, 1:49 PM

    OK, you are certainly both right. But this not help. As I did not made the bases I don’t know what happened.
    Now :

    • is there any way for this image to be compliant with FOG? (any way to recreate the system partition without breaking everything)

    • list item there any way make FOG not detect them as reserved?

    • list item Or the only option is to rebuild the source images?

    By the way many thanks for the interest you put in this subject 😉

    G 1 Reply Last reply Apr 18, 2019, 2:03 PM Reply Quote 0
    • G
      george1421 Moderator @processor
      last edited by george1421 Apr 18, 2019, 8:05 AM Apr 18, 2019, 2:03 PM

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

      list item there any way make FOG not detect them as reserved?

      Lets start by removing this one from the list. The word “reserved” is a special word. If you look at the drive with windows running in the computer management applet. Does that partition say “Reserved”. If it label say OS or something else then we can remove the “reserved” line from your issue. Then its down to FOG treating the first partition as unsizable.

      is there any way for this image to be compliant with FOG?

      Its just not the matter of making it compliant with FOG, it’s not Microsoft best practices compliant. We probably can make fog do what we want, but you will have issues in the future with Microsoft upgrades. So the question is do you make it right now or latter. It really isn’t a fog question.

      @Developers if its the first partition thing, can we just mark the image as resizable in the image config files?

      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!

      J 1 Reply Last reply Apr 18, 2019, 2:11 PM Reply Quote 1
      • J
        Junkhacker Developer @george1421
        last edited by Apr 18, 2019, 2:11 PM

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

        @Developers if its the first partition thing, can we just mark the image as resizable in the image config files?

        yeah, that should work.

        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
        • P
          processor
          last edited by Apr 18, 2019, 2:35 PM

          Great, how to do it? Is it something that I can do or is it something that can only be done by the devs?

          G 1 Reply Last reply Apr 18, 2019, 2:39 PM Reply Quote 0
          • 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
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          • First post
                                            Last post

                                          193

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project