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

Error deploying image to SSD

Scheduled Pinned Locked Moved Unsolved
FOG Problems
3
10
486
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
    phishphan
    last edited by Jun 6, 2019, 2:36 PM

    I have an image that was built and captured on a mechanical drive. I swapped out the drive for an SSD and tried to redeploy the image. The deploy failed while restoring partition tables GPT. The Exit Return Code was 4.

    I tested the image on a different laptop with a mechanical drive and it deployed without issue.

    The computer is an HP Zbook 15U G3. The drive is recognized in bios as I’m able to perform a hard drive error check on it.

    1 Reply Last reply Reply Quote 0
    • J
      Joe Gill
      last edited by Jun 6, 2019, 2:50 PM

      I experienced the same issue last year but was able to resolve it.

      Check your BIOS settings. Make sure that it’s set correctly for the new SSD drive. I had an issue with that.

      What’s the OS on the HOST you are trying to re-image?
      What version of FOG are you using?
      What version of FOG Server are you on?
      Did you use sysprep before you captured the original image?

      P 1 Reply Last reply Jun 6, 2019, 3:24 PM Reply Quote 0
      • J
        Joe Gill
        last edited by Jun 6, 2019, 2:55 PM

        @phishphan

        I just remembered the issue we had dealt with the the setting for the SATA operation in the BIOS. If that doesn’t match from machine to machine it will fail.

        You might check those things out.

        It definitely sounds like the drive is functioning correctly and that it is a setting issue. I have been able to push SSD images to mechanical and vice versa with Windows 10.

        1 Reply Last reply Reply Quote 0
        • P
          phishphan @Joe Gill
          last edited by Jun 6, 2019, 3:24 PM

          @Joe-Gill

          The OS is Windows 10 x64.
          My FOG version is 1.5.4
          I did not use sysprep. This image was created with on the mechanical drive.
          The image is set to: Windows 10. Single Disk - Resizeable. Partition - Everything.

          I tried installing Windows 10 on the blank SSD just to format and add some partitions but the deploy still failed with the same error.

          The laptop does not give me any ACHI options in BIOS on the drive. When I try to boot with UEFI devices only FOG will not load so I have to set it to Legacy boot.

          J 1 Reply Last reply Jun 6, 2019, 3:33 PM Reply Quote 0
          • J
            Joe Gill @phishphan
            last edited by Jun 6, 2019, 3:33 PM

            @phishphan

            I ran into the same issue with FOG version 1.5.4. But I believe it was due to the BIOS setting and not FOG specifically. We have several HP laptops in our district that have SSD drives and or mechanical drives. I use the same image on all of them. The only thing I do differently is I sysprep them first.

            My procedure is to sysprep all of my machines before I capture the HOST image. Sysprepping certainly has helped insure that you don’t have any issues with deploying images to host machines with unlike hardware. I know sysprepping or not will get into a huge debate. But it hasn’t hurt any of my images.

            If you are able to deploy just fine to another host, I would think FOG is working just fine and it’s a setting issue within your BIOS.

            @Wayne-Workman Any thoughts?

            1 Reply Last reply Reply Quote 0
            • P
              phishphan
              last edited by Jun 6, 2019, 4:20 PM

              Additional update. I installed Windows 10 off a USB. Captured image successfully. Tried to deploy back to itself and Windows will not start. It comes up with the Automatic Repair screen.
              For image settings I used: Multiple Partition, Single Disk not resizable, Partclone Compressed

              J 1 Reply Last reply Jun 6, 2019, 4:24 PM Reply Quote 0
              • J
                Joe Gill @phishphan
                last edited by Jun 6, 2019, 4:24 PM

                @phishphan

                I have had this happen before. Usually it’s a setting issue within Windows 10 that has to be addressed. I had a lot of issues imaging the latest version of the Windows 10 kernel. I ended up having to run sysprep and make some modifications to my unattend.xml file. Once I did that it worked well.

                I’m sure @Wayne-Workman will have some ideas.

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Jun 6, 2019, 5:06 PM

                  @phishphan Please post a picture of the first error you encountered. As well post the contents of the three text files you find in the image directory on your Server: d1.partitions, d1.minimum.partitions, and d1.fixed_size_partitions

                  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 Jun 6, 2019, 6:12 PM Reply Quote 1
                  • P
                    phishphan @Sebastian Roth
                    last edited by Sebastian Roth Jun 6, 2019, 3:37 PM Jun 6, 2019, 6:12 PM

                    @Sebastian-Roth

                    https://drive.google.com/file/d/1613JgCnNn_mqkwHHFt7T-7kA7e298BF-/view?usp=sharing

                    d1.partitions:

                    label: gpt
                    label-id: 56CE61A2-3D37-4F14-8AE0-A0084F00A7A5
                    device: /dev/sda
                    unit: sectors
                    first-lba: 34
                    last-lba: 976773134
                    
                    /dev/sda1 : start=        2048, size=      921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=F2461728-72A6-4200-93E7-B1159265B72C, name="Basic data partition"
                    /dev/sda2 : start=      923648, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=2104822C-DD09-4840-B543-67340B8E099B, name="EFI system partition"
                    /dev/sda3 : start=     1128448, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=5AEC1D8F-C565-4809-8EAC-A996FCA88367, name="Microsoft reserved partition"
                    /dev/sda4 : start=     1161216, size=   973700027, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=9A8688F9-4EF1-4550-B220-00E1FE21B447, name="Basic data partition"
                    /dev/sda5 : start=   974862336, size=     1908736, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=CAEE35CD-7BE7-4432-9B68-DE060AF1A69E, attrs="RequiredPartition GUID:63"
                    

                    d1.minimum partitions

                    label: gpt
                    label-id: 56CE61A2-3D37-4F14-8AE0-A0084F00A7A5
                    device: /dev/sda
                    unit: sectors
                    first-lba: 34
                    last-lba: 976773134
                    
                    /dev/sda1 : start=        2048, size=      921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=F2461728-72A6-4200-93E7-B1159265B72C, name="Basic data partition"
                    /dev/sda2 : start=      923648, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=2104822C-DD09-4840-B543-67340B8E099B, name="EFI system partition"
                    /dev/sda3 : start=     1128448, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=5AEC1D8F-C565-4809-8EAC-A996FCA88367, name="Microsoft reserved partition"
                    /dev/sda4 : start=     1161216, size=   330329656, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=9A8688F9-4EF1-4550-B220-00E1FE21B447, name="Basic data partition"
                    /dev/sda5 : start=   974862336, size=     1908736, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=CAEE35CD-7BE7-4432-9B68-DE060AF1A69E, name="attrs="RequiredPartition GUID:63"
                    

                    d1.fixed size partitions

                    :2:3:1
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Jun 6, 2019, 9:46 PM

                      @phishphan Issue here is that you have a second recovery partition (type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC) as fifth partition. FOG is not able to move that partition around and therefore cannot actually shrink your layout to fit on the smaller disk.

                      Let’s do the maths. sda5 starts at sector 974862336 and is at least 1908736 sectors in size: (974862336 sectors + 1908736 sectors) * 512 bytes sector size = 500106788864 bytes ~ 465.76 GBytes

                      That’s about the size of disk you need to be able to deploy this particular disk layout to it. In case you would remove the fifth partition (not saying you should as I don’t know your setup enough) the maths would be: (1161216 + 330329656) * 512 ~ 158.07 GBytes

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

                      153

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project