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

Exit returned code 4 Trying to restore GPT

Scheduled Pinned Locked Moved
FOG Problems
1
3
1.4k
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.
  • Q
    Quintin Giesbrecht
    last edited by Quintin Giesbrecht Aug 18, 2020, 6:59 AM Aug 18, 2020, 12:45 PM

    Ubuntu Linux 14.0.4.6 LTS
    FOG 1.5.8

    Getting exit returned code 4 when restoring image to a smaller drive. Image created with 500GB drive on a physical machine. Restoring to same machine, but a smaller hard drive produces the above error. Here are more details about the error:

    "Warning! Current disk size doesn’t match that of backup! Adjusting sizes to match, but subsequent problems are possible!

    Warning! Secondary partition table overlaps the last partition by 506792321 blocks!
    You will need to delete this partition or resize it in another utility.

    Problem: partition 4 is too big for the disk.
    Aborting write operation!"

    Here the contents of the partition files for the image in question:

    root@cadillac:/images/STB-WIN10-AUDIT-APPS-INSTALLED# cat d1.minimum.partitions   
    label: gpt
    label-id: 5CCF75D9-E5A5-4585-A981-54F18E9A3BB8
    device: /dev/sda
    unit: sectors
    first-lba: 34
    last-lba: 976773134
    
    /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=EB96ABA7-9327-47C0-A045-FFC4003540C1, name="EFI system partition", attrs="GUID:63"
    /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=6EC57B75-45AD-42E2-83D5-3A2F89008346, name="Microsoft reserved partition", attrs="GUID:63"
    /dev/sda3 : start=      239616, size=    55697990, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=D2446D99-382D-454E-BABF-1C92DC3BD1C8, name="Basic data partition"
    /dev/sda4 : start=   974752256, size=      902160, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=9099F5EF-3AA8-427C-B309-3D553D637E8A, name="Basic data partition", attrs="RequiredPartition GUID:63"
    
    root@cadillac:/images/STB-WIN10-AUDIT-APPS-INSTALLED# cat d1.fixed_size_partitions   
    1:2:4
    
    root@cadillac:/images/STB-WIN10-AUDIT-APPS-INSTALLED# cat d1.partitions
    label: gpt
    label-id: 5CCF75D9-E5A5-4585-A981-54F18E9A3BB8
    device: /dev/sda
    unit: sectors
    first-lba: 34
    last-lba: 976773134
    
    /dev/sda1 : start=        2048, size=      204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=EB96ABA7-9327-47C0-A045-FFC4003540C1, name="EFI system partition", attrs="GUID:63"
    /dev/sda2 : start=      206848, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=6EC57B75-45AD-42E2-83D5-3A2F89008346, name="Microsoft reserved partition", attrs="GUID:63"
    /dev/sda3 : start=      239616, size=   974512640, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=D2446D99-382D-454E-BABF-1C92DC3BD1C8, name="Basic data partition"
    /dev/sda4 : start=   974752256, size=     2020352, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=9099F5EF-3AA8-427C-B309-3D553D637E8A, name="Basic data partition", attrs="RequiredPartition GUID:63"
    

    Screen attached of image settings:

    Fog-Image.png

    Hopefully that gives you enough information to troubleshoot this issue. Thanks so much for looking at this for me. If you need more details, please let me know.

    Thanks!

    Quintin

    Quintin Giesbrecht
    IT Manager
    Smith Neufeld Jodoin LLP

    1 Reply Last reply Reply Quote 0
    • Q
      Quintin Giesbrecht
      last edited by Quintin Giesbrecht Aug 18, 2020, 6:56 AM Aug 18, 2020, 12:55 PM

      This might be the same as this:

      https://forums.fogproject.org/topic/14670/error-trying-to-restore-gpt-partition-tables-exit-returned-code-4-on-new-pc-s

      Looking at my system, will post back if I have the same results.

      Quintin Giesbrecht
      IT Manager
      Smith Neufeld Jodoin LLP

      1 Reply Last reply Reply Quote 0
      • Q
        Quintin Giesbrecht
        last edited by Aug 18, 2020, 1:40 PM

        Yep, that was it 🙂 I searched and searched yesterday, but couldn’t find anything that specifically applied 🙂

        Anyways, mental note, delete recovery partition after Windows 10 is installed 🙂

        Great forum, glad I was able to find a solution.

        Quintin

        Quintin Giesbrecht
        IT Manager
        Smith Neufeld Jodoin LLP

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

        246

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project