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

Error trying to restore GTP partition tables (restorePartitionsTablesAndBootLoaders)

Scheduled Pinned Locked Moved Solved
Bug Reports
gpt mbr grub windows restore
6
49
36.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.
  • T
    Tom Elliott @stormbyte
    last edited by Feb 13, 2016, 6:22 PM

    @stormbyte I didn’t push to git. Just rerun the installer.

    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

    S 2 Replies Last reply Feb 13, 2016, 6:23 PM Reply Quote 0
    • S
      stormbyte @Tom Elliott
      last edited by Feb 13, 2016, 6:23 PM

      @Tom-Elliott ok sorry 😞 result in 2mn 🙂

      1 Reply Last reply Reply Quote 0
      • S
        stormbyte @Tom Elliott
        last edited by Feb 13, 2016, 6:32 PM

        @Tom-Elliott unfortunately, same problem same error during partclone… what’s the next step?!?

        T 1 Reply Last reply Feb 13, 2016, 6:59 PM Reply Quote 0
        • T
          Tom Elliott @stormbyte
          last edited by Feb 13, 2016, 6:59 PM

          @stormbyte Can you put the system you uploaded from back into upload but with debug?

          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

          S 1 Reply Last reply Feb 13, 2016, 7:07 PM Reply Quote 0
          • S
            stormbyte @Tom Elliott
            last edited by Feb 13, 2016, 7:07 PM

            @Tom-Elliott of course Tom, I’ve launched the station with debug mode. What command I should enter then on the workstation?

            T 1 Reply Last reply Feb 13, 2016, 7:08 PM Reply Quote 0
            • T
              Tom Elliott @stormbyte
              last edited by Feb 13, 2016, 7:08 PM

              @stormbyte run:

              blockdev --getpbsz /dev/sda1

              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

              S 1 Reply Last reply Feb 13, 2016, 7:10 PM Reply Quote 0
              • S
                stormbyte @Tom Elliott
                last edited by Feb 13, 2016, 7:10 PM

                @Tom-Elliott answer: 512

                T 1 Reply Last reply Feb 13, 2016, 7:11 PM Reply Quote 0
                • T
                  Tom Elliott @stormbyte
                  last edited by Feb 13, 2016, 7:11 PM

                  @stormbyte Okay, so that is added, but i got many things to do this weekend. I’ll likely not be able to get to this until next week if this is okay.

                  I have added the code to make the sector size use 512, so it should work.

                  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

                  S 1 Reply Last reply Feb 13, 2016, 7:12 PM Reply Quote 0
                  • S
                    stormbyte @Tom Elliott
                    last edited by stormbyte Feb 16, 2016, 12:24 AM Feb 13, 2016, 7:12 PM

                    @Tom-Elliott no problem Tom, there’s a life outside FOG world! 😉 please just tell me when you will deliver a new release to solve this problem, and thanks again for your time. I’m ready to make new tests if you need. Kind regards

                    T 1 Reply Last reply Feb 16, 2016, 2:47 PM Reply Quote 0
                    • T
                      Tom Elliott @stormbyte
                      last edited by Feb 16, 2016, 2:47 PM

                      @stormbyte when you get a chance, can you please update again and let us know if things are the same or fixed? I’m fairly sure they’re not fixed, but I’m not certain either.

                      Another “trick” we could try is to add to the d1.fixed_size_partitions with a :1 to the end of the line in the file.

                      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

                      S 2 Replies Last reply Feb 16, 2016, 5:53 PM Reply Quote 0
                      • S
                        stormbyte @Tom Elliott
                        last edited by Feb 16, 2016, 5:53 PM

                        @Tom-Elliott Tom, I’ve updated but the problem is exactly the same 😞 … I’m ready to try your other suggestion!

                        1 Reply Last reply Reply Quote 0
                        • S
                          stormbyte @Tom Elliott
                          last edited by Feb 16, 2016, 6:16 PM

                          @Tom-Elliott You’re the boss Tom 🙂 I’ve added a :1 at the end of the d1.fixed_size_partitions and it’s working! Installation is OK, no problem for partition anymore.

                          BUT your solution is throwing an error just before the partclone (I didn’t catch it, it’s really fast on screen - if you need it I can record a video). Due to :1 … any chance to include this into a future FOG release or do I need to manually change my file for each capture?

                          Also, this solution is working for both resizable / not resizable captures ???

                          T 1 Reply Last reply Feb 16, 2016, 6:24 PM Reply Quote 0
                          • T
                            Tom Elliott @stormbyte
                            last edited by Feb 16, 2016, 6:24 PM

                            @stormbyte I don’t know.

                            I think the intent of the fixed_size_partitions is supposed to allow for a menu entry on the GUI, which just hasn’t made it yet.

                            We do some rather rigorous attempts to detect fixed_size_partitions autonomously though but it’s mainly dependent on size and old installs. For now, manually editing the file should do fine.

                            If you can capture the error (probably best if you do the install via Debug so you can have it pause before partclone begins) would be best.

                            Can you upload the d1.fixed_size_partitions file here so we can take a look? I think it’s just looking for the partition number but for whatever reason, my code isn’t expecting it.

                            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

                            S 1 Reply Last reply Feb 16, 2016, 6:42 PM Reply Quote 0
                            • S
                              stormbyte @Tom Elliott
                              last edited by Feb 16, 2016, 6:42 PM

                              @Tom-Elliott Error message is: "Attempting to expand/fill partitions…awk: /usr/share/fog/lib/procsfdisk.awk:280: fatal: cannot open file ‘1:’ for reading (No such file or directory)

                              By the way the d1.fixed_siez_partitions already have a 1: inside… I just added a new one that created the error message above and it’s working fine 🙂

                              Here is the d1.fixe_size_partitions used:
                              0_1455648147461_d1.fixed_size_partitions

                              1 Reply Last reply Reply Quote 0
                              • M
                                mr626
                                last edited by Feb 17, 2016, 11:58 PM

                                Just want to confirm I’m having the same issue as described in the OP.

                                Have created a new image in Fog web interface of type “single disk, resizable” and re-captured my base image. However on an attempt to image a machine I get the ‘error trying to restore GTP’ error.

                                Running Fog truck build 6303

                                Anything I can try as a workaround?

                                T 1 Reply Last reply Feb 18, 2016, 12:47 AM Reply Quote 0
                                • T
                                  Tom Elliott @mr626
                                  last edited by Feb 18, 2016, 12:47 AM

                                  @mr626 What is the exact error

                                  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

                                  M 1 Reply Last reply Feb 18, 2016, 12:58 AM Reply Quote 0
                                  • M
                                    mr626 @Tom Elliott
                                    last edited by mr626 Feb 17, 2016, 6:59 PM Feb 18, 2016, 12:58 AM

                                    @Tom-Elliott

                                    Sorry, was posting from mobile before.

                                    The exact error is as per the OP:

                                    ERROR TRYING TO RESTORE GPT PARTITION TABLES (restorePartitionTablesAndBootLoaders)

                                    And just prior to that, it is attempting to restore a GPT partition table but can’t find one (and has the message du: cannot access ‘/images/<name of image>/d1.grub.mbr’ : no such file or directory)

                                    Happy to run any tests / debug etc if that is helpful. I am re-reading this thread as when I was viewing on mobile I missed a whole bunch of posts somehow, so there’s a few suggestions on here I haven’t tried yet. Will update as I do

                                    T 1 Reply Last reply Feb 18, 2016, 1:00 AM Reply Quote 0
                                    • T
                                      Tom Elliott @mr626
                                      last edited by Feb 18, 2016, 1:00 AM

                                      @mr626 what version of fog are you running, it should show in the cloud.

                                      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

                                      M 1 Reply Last reply Feb 18, 2016, 1:05 AM Reply Quote 0
                                      • M
                                        mr626 @Tom Elliott
                                        last edited by Feb 18, 2016, 1:05 AM

                                        @Tom-Elliott

                                        Hi, Fog is 6303 as per my first post 😃

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mr626
                                          last edited by Feb 18, 2016, 2:43 AM

                                          Ok, I’ve got a workaround that seems to do the trick (for me)

                                          1. Create an image of type ‘single disk, resizable’
                                          2. Capture image
                                          3. In options for the image, select ‘partition 1 only’
                                          4. Deploy

                                          This works for me (tested on one machine so far- Dell optiplex 790, will test on more this afternoon). I should note though- when I created this Windows 7 image originally I made sure that everything was on one partition (ie there isn’t a separate 100mb system partition, just a single partition with everything on it). So the above may not work for everyone.

                                          Hope that helps someone

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          2 / 3
                                          • First post
                                            23/49
                                            Last post

                                          197

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project