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

    NEW iMac problems

    Scheduled Pinned Locked Moved Unsolved
    Mac Problems
    4
    36
    12.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.
    • AbuelikaA
      Abuelika
      last edited by

      Server
      • FOG Version: 1.4.4
      • OS: Ubuntu
      • SVN Revision: 6077
      Client
      • Service Version: USB FOS & NETWORK BOOT
      • OS: MACOS ( Model ID : iMac18,2 )
      Description

      Hi All!

      Problem with 26 iMacs just bought.

      Trying to boot network does not work.
      Booting “USB FOS” if that works.
      Using “usb fos” we were able to register the machines correctly to the server fog.

      When we try to deploy an image of the fog server to the client the following error appears:

      alt text

      Once we restart the iMac it loses the boot and it can not be repaired from the recovery partition of MacOs. We have to format the disk and perform a reinstallation.

      Any idea?

      Tnx !!!

      GFG! ¬¬!

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Abuelika What do you get when running ls -al /images/MASTERMACOS2017/ on your FOG server? Please post a listing 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

        1 Reply Last reply Reply Quote 0
        • AbuelikaA
          Abuelika
          last edited by Abuelika

          Hi @SEBASTIAN ROTH,

          Sorry for the delay, I was on vacation.

          root@fogserver:~# ls -al /images/MASTERMACOS2017/
          total 31283684
          drwxrwxrwx  2 root root        4096 jul 20 16:09 .
          drwxrwxrwx 32 fog  root        4096 jul 26 09:49 ..
          -rwxrwxrwx  1 root root       20480 jul 20 15:38 d1.mbr
          -rwxrwxrwx  1 root root         283 jul 20 15:38 d1.original.uuids
          -rwxrwxrwx  1 root root    19035176 jul 20 15:38 d1p1.img
          -rwxrwxrwx  1 root root 31508075463 jul 20 16:08 d1p2.img
          -rwxrwxrwx  1 root root   507332011 jul 20 16:09 d1p3.img
          -rwxrwxrwx  1 root root         578 jul 20 15:38 d1.partitions
          

          GFG! ¬¬!

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Abuelika This is strange. I seems to properly do the Restoring Patition Tables (GPT) (no error) but then does not find those restored partition tables on disk why trying to deploy an image.

            For this host, can you add to the Host Kernel Args: isdebug=yes ismajordebug=1

            Then run a deploy, and capture pictures where it says: Current partition table: ...

            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
            • AbuelikaA
              Abuelika
              last edited by

              Hi @Sebastian-Roth ,

              Same error!

              alt text

              GFG! ¬¬!

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @Abuelika Are you surely added the parameters? Ahh, sorry I overlooked that you are using the USB booting method as we still have the iPXE boot issue (hope we can work on this as well!)…

                Please rebuild the USB key according to George’s manual and add isdebug=yes ismajordebug=1 in the grub.conf kernel command line.

                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

                AbuelikaA 2 Replies Last reply Reply Quote 0
                • AbuelikaA
                  Abuelika @Sebastian Roth
                  last edited by

                  @sebastian-roth said in NEW iMac problems:

                  isdebug=yes ismajordebug=1

                  I configured the USB with “isdebug = yes ismajordebug = 1” and it enters debug mode

                  alt text

                  GFG! ¬¬!

                  1 Reply Last reply Reply Quote 0
                  • AbuelikaA
                    Abuelika @Sebastian Roth
                    last edited by

                    @sebastian-roth

                    Log DEBUG MODE

                    alt text

                    GFG! ¬¬!

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @Abuelika Sorry, forgot to ask if you could also post the contents of the d1.partitions and upload d1.mbr file? I’ll try to replicate the issue then.

                      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

                      AbuelikaA 1 Reply Last reply Reply Quote 0
                      • AbuelikaA
                        Abuelika @Sebastian Roth
                        last edited by

                        Hi @sebastian-roth ,

                        Attached link to Download d1.mbr .

                        I attached the content of d1.partitions

                        root@fogserver:/images/MASTERMACOS2017# vi d1.partitions
                        label: gpt
                        label-id: EB5F756F-5E64-4990-8B9C-5F2826AFDEC2
                        device: /dev/sda
                        unit: sectors
                        first-lba: 34
                        last-lba: 234441614
                        
                        /dev/sda1 : start=          40, size=      409600, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=F803B6B4-FAF1-4700-814F-4CC7B6AA693D, name="EFI System Partition"
                        /dev/sda2 : start=      409640, size=   232762432, type=48465300-0000-11AA-AA11-00306543ECAC, uuid=2CA043B5-1BA4-4052-AC59-AA30F67E556D
                        /dev/sda3 : start=   233172072, size=     1269536, type=426F6F74-0000-11AA-AA11-00306543ECAC, uuid=989E4FD8-2721-4B58-A6B4-24E3334F1165, attrs="GUID:49"
                        

                        GFG! ¬¬!

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Sebastian Roth

                          @Abuelika Sorry for taking a while to get onto this. Too many other things going on at the moment. I tried your d1.mbr now and it worked like a charm. Then I looked at the pictures you posted more closely again and I am sure I see what’s wrong here. See the message printed in red:

                          GPT PMBR size mismatch (234441647 != 61279343) will be corrected by w(rite).
                          

                          When I first saw this I thought FOG is doing something wrong but then I noticed the second number being smaller than the first and so I tried your d1.mbr on a smaller destination disk and that failed with the exact same error (just different number). You cannot deploy a non-resizable image to a smaller destination disk!

                          So what you have to do is create a new image in the FOG web UI, e.g. name it MASTERMACOS2017_RESIZABLE and set Image Type to “Single Disk - Resizable”. Do not delete your other image yet. Keep this as a backup for now just in case something is going wrong with the resizable image. Now set your master Mac machine to use this newly created MASTERMACOS2017_RESIZABLE image and schedule an upload task. Let it do it’s job. Then configure the machine you wanted to deploy to use the new resizable image as well and do the deploy. You might want to keep the debug kernel options for now just in case it runs into an error again.

                          Please let us know how it went and post a picture in case you run into 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

                          AbuelikaA 1 Reply Last reply Reply Quote 1
                          • AbuelikaA
                            Abuelika @Sebastian Roth
                            last edited by

                            Hi @sebastian-roth when I try to capture the image, the following error appears:

                            alt text

                            GFG! ¬¬!

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth

                              @Abuelika Oh … why the he** do I always forget about we are not able to resize HFS+ filesystems. Don’t know why! Sorry for that. Just forget what I said!

                              So this leaves you to maybe try shrinking the Mac OS X system by hand I am afraid. Search the web on how to do this. I am not sure this can be done at all but I think I’ve read about it somewhere.

                              Would be an awesome feature to add to FOG to have resize work for Mac OS X as well. But seems like there are no reliable tools out there to do this as of now.

                              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

                              AbuelikaA 1 Reply Last reply Reply Quote 0
                              • AbuelikaA
                                Abuelika @Sebastian Roth
                                last edited by

                                Hi @sebastian-roth

                                I have been reviewing, and the source is a 120Gb disk and the destination is 250Gb.

                                It is rare that the problem is of disk size, when the source is smaller than the destination.

                                tnx!

                                GFG! ¬¬!

                                1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by

                                  Is it possible this is related to the 32 bit issue in HFS as it was in the other thread @Sebastian-Roth?

                                  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
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    @Tom-Elliott Don’t think so. But what do I know…?

                                    @Abuelika Please do me a favour and boot up both clients in debug task (capture or deploy, doesn’t matter). When you get to the shell run fdisk -l /dev/sda (that’s for the source machine and fdisk -l /dev/nvme0n1… Post pictures here.

                                    Ahhhhhha, now that I am writing this I have an idea. Possibly we are not able to move from a SATA disk (/dev/sda) to one of these new disks (/dev/nvme0n1). Not sure if I can test this.

                                    Give this a try: Make a backup copy of the partition layout file and then edit those files which you find in /images/MASTERMACOS2017/d1.partitions. Make it look like this:

                                    label: gpt
                                    label-id: EB5F756F-5E64-4990-8B9C-5F2826AFDEC2
                                    device: /dev/nvme0n1
                                    unit: sectors
                                    first-lba: 34
                                    last-lba: 234441614
                                    
                                    /dev/nvme0n1p1 : start=          40, size=      409600, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=F803B6B4-FAF1-4700-814F-4CC7B6AA693D, name="EFI System Partition"
                                    /dev/nvme0n1p2 : start=      409640, size=   232762432, type=48465300-0000-11AA-AA11-00306543ECAC, uuid=2CA043B5-1BA4-4052-AC59-AA30F67E556D
                                    /dev/nvme0n1p3 : start=   233172072, size=     1269536, type=426F6F74-0000-11AA-AA11-00306543ECAC, uuid=989E4FD8-2721-4B58-A6B4-24E3334F1165, attrs="GUID:49"
                                    

                                    Save the file and try deploying the MASTERMACOS2017 image 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

                                    AbuelikaA 1 Reply Last reply Reply Quote 0
                                    • AbuelikaA
                                      Abuelika @Sebastian Roth
                                      last edited by

                                      Hi @sebastian-roth ,

                                      Source:
                                      alt text

                                      Destination:
                                      alt text

                                      I have modified “/images/MASTERMACOS2017/d1.partitions” with the information provided and the error is the same.

                                      GFG! ¬¬!

                                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @Abuelika
                                        last edited by

                                        @abuelika This appears to be a 4k disk then? I mean, the sector size is correct for 512, but not for 4096.

                                        E.G.:

                                        234441647 * 512 = 120034123264 (about 120 GB)
                                        234441647 * 4096 = 960272986112 (about 960 GB)

                                        Where:
                                        61279344 * 512 = 31375024128 (about 32 GB)
                                        61279344 * 4096 = 251000193024 (about 250 GB)

                                        @Sebastian-Roth I don’t know how to handle this anymore. We have to use 512 for blockdev elements. Getting the block size is actually quite easy, though I’m still sure it’s working properly RC’s - but if this is 1.4.4 those changes should be present as well.

                                        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
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by

                                          I imagine, however, resizable or not, this is a problem as the way the disk is presented on one system (512 byte sector sizes) to another system (4096 byte sector sizes).

                                          I know there’s a way to adjust a disks byte sector size. Something like:

                                          blockdev --setbsz 512 /dev/nvme0n1

                                          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
                                          • Tom ElliottT
                                            Tom Elliott
                                            last edited by

                                            Maybe we can use information from this posting to help us out? It’s coming from Rod Smith directly and he would probably be the guy who knows his stuff considering he wrote gpt disk utilities.

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

                                            177

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project