Fixing corrupt backup GPT table?The primary GPT table is corrupt, but the backup appears OK, so that will be usedtestdisk is showing wrong size of driveExtracting qcow2 image to a smaller real driveUbuntu 16.04 do not boot after installationBoot Ubuntu 18.04 from external hard driveLinux Ubuntu 16.04 Blank ScreenCannot connect HDD with GPT (unrecognised disk label)Unable to recongnize patition table after overwriting the first MB of HD. How can I recover the dataRepair corrupt GPT partition table of OSX disk from LinuxGrub error and failed boot loaderThe partition table is corruptThe backup GPT table is corruptCan't format or delete partitions in pendrive because of GPT table errorCan't restore my gpt data with gdiskHow to fix a corrupted partition table?The CRC for the main partition and back up partition table are invalidgdisk unable to write GPT tableWindows corrupts primary GPT tableAccidentally created new partition table for boot driveHow Do I Dual boot Windows After Ubuntu in Legacy mode GPT paritition Table?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

Do people actually use the word "kaputt" in conversation?

How to find the largest number(s) in a list of elements, possibly non-unique?

Turning a hard to access nut?

TDE Master Key Rotation

What (if any) is the reason to buy in small local stores?

If I cast the Enlarge/Reduce spell on an arrow, what weapon could it count as?

Recursively updating the MLE as new observations stream in

PTIJ: Which Dr. Seuss books should one obtain?

Print last inputted byte

The English Debate

Friend wants my recommendation but I don't want to

Does fire aspect on a sword, destroy mob drops?

"Marked down as someone wanting to sell shares." What does that mean?

Hackerrank All Women's Codesprint 2019: Name the Product

Is xar preinstalled on macOS?

Air travel with refrigerated insulin

Can other pieces capture a threatening piece and prevent a checkmate?

Are hand made posters acceptable in Academia?

Does convergence of polynomials imply that of its coefficients?

Why doesn't the fusion process of the sun speed up?

Knife as defense against stray dogs

Isn't the word "experience" wrongly used in this context?

What is it called when someone votes for an option that's not their first choice?



Fixing corrupt backup GPT table?


The primary GPT table is corrupt, but the backup appears OK, so that will be usedtestdisk is showing wrong size of driveExtracting qcow2 image to a smaller real driveUbuntu 16.04 do not boot after installationBoot Ubuntu 18.04 from external hard driveLinux Ubuntu 16.04 Blank ScreenCannot connect HDD with GPT (unrecognised disk label)Unable to recongnize patition table after overwriting the first MB of HD. How can I recover the dataRepair corrupt GPT partition table of OSX disk from LinuxGrub error and failed boot loaderThe partition table is corruptThe backup GPT table is corruptCan't format or delete partitions in pendrive because of GPT table errorCan't restore my gpt data with gdiskHow to fix a corrupted partition table?The CRC for the main partition and back up partition table are invalidgdisk unable to write GPT tableWindows corrupts primary GPT tableAccidentally created new partition table for boot driveHow Do I Dual boot Windows After Ubuntu in Legacy mode GPT paritition Table?













23















After successfully installing a dual boot environment, adding Ubuntu 13.10 to a preinstalled Windows 8 configuration I decided to increase the unallocated SSD disk space after reading about the benefits of over-provisioning. So, using miniTools Partition Wizard in Windows, I shrunk the NTFS Windows partition somewhat. That seem to have completed successfully. However, when I boot up Linux and launch GParted, it gives the following error message at startup:




The backup GPT table is corrupt, but the primary appears OK, so that will be used.




Everything seems fine and dandy with the system, but I am worried that I will have a problem should the main GPT table become corrupt for some reason.



I have used gdisk to backup the GPT table to a file, but is there a way to create a new backup GPT table?










share|improve this question
























  • I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

    – Joe Johnson
    Nov 10 '18 at 15:33















23















After successfully installing a dual boot environment, adding Ubuntu 13.10 to a preinstalled Windows 8 configuration I decided to increase the unallocated SSD disk space after reading about the benefits of over-provisioning. So, using miniTools Partition Wizard in Windows, I shrunk the NTFS Windows partition somewhat. That seem to have completed successfully. However, when I boot up Linux and launch GParted, it gives the following error message at startup:




The backup GPT table is corrupt, but the primary appears OK, so that will be used.




Everything seems fine and dandy with the system, but I am worried that I will have a problem should the main GPT table become corrupt for some reason.



I have used gdisk to backup the GPT table to a file, but is there a way to create a new backup GPT table?










share|improve this question
























  • I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

    – Joe Johnson
    Nov 10 '18 at 15:33













23












23








23


5






After successfully installing a dual boot environment, adding Ubuntu 13.10 to a preinstalled Windows 8 configuration I decided to increase the unallocated SSD disk space after reading about the benefits of over-provisioning. So, using miniTools Partition Wizard in Windows, I shrunk the NTFS Windows partition somewhat. That seem to have completed successfully. However, when I boot up Linux and launch GParted, it gives the following error message at startup:




The backup GPT table is corrupt, but the primary appears OK, so that will be used.




Everything seems fine and dandy with the system, but I am worried that I will have a problem should the main GPT table become corrupt for some reason.



I have used gdisk to backup the GPT table to a file, but is there a way to create a new backup GPT table?










share|improve this question
















After successfully installing a dual boot environment, adding Ubuntu 13.10 to a preinstalled Windows 8 configuration I decided to increase the unallocated SSD disk space after reading about the benefits of over-provisioning. So, using miniTools Partition Wizard in Windows, I shrunk the NTFS Windows partition somewhat. That seem to have completed successfully. However, when I boot up Linux and launch GParted, it gives the following error message at startup:




The backup GPT table is corrupt, but the primary appears OK, so that will be used.




Everything seems fine and dandy with the system, but I am worried that I will have a problem should the main GPT table become corrupt for some reason.



I have used gdisk to backup the GPT table to a file, but is there a way to create a new backup GPT table?







partitioning






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 37 mins ago









Pablo Bianchi

2,97021535




2,97021535










asked Dec 5 '13 at 22:33









tomoqvtomoqv

2692518




2692518












  • I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

    – Joe Johnson
    Nov 10 '18 at 15:33

















  • I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

    – Joe Johnson
    Nov 10 '18 at 15:33
















I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

– Joe Johnson
Nov 10 '18 at 15:33





I would NOT recommend using the MiniTool software (used over the years mostly successfully). I recently attempted to partition an SD Card with the software and wound up with a real annoying GPT Partition Table that needed major fixing (or 5-10 mins of Googling but annoying all the same). Stick with Linux if you can and use either gdisk or fdisk to create your partition table.

– Joe Johnson
Nov 10 '18 at 15:33










2 Answers
2






active

oldest

votes


















36














Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.



sudo gdisk /dev/sda
Command (? for help):



b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu




Be sure to see comment below by Rod Smith, he is author of gdisk.






share|improve this answer




















  • 2





    Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

    – tomoqv
    Dec 6 '13 at 7:05






  • 2





    Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

    – Rod Smith
    Dec 6 '13 at 18:13











  • CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

    – barrypicker
    Jan 3 '18 at 18:22


















0














Not exactly sure, but when I have two disks part of software raid (MDADM) I get this message. I damaged the array trying to remove this message. I was forced to recreate the array, and I still get this message. Since the array works, but I still get this message, I am just going to live with the message instead of trying to remove/fix it.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f386752%2ffixing-corrupt-backup-gpt-table%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    36














    Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.



    sudo gdisk /dev/sda
    Command (? for help):



    b back up GPT data to a file
    c change a partition's name
    d delete a partition
    i show detailed information on a partition
    l list known partition types
    n add a new partition
    o create a new empty GUID partition table (GPT)
    p print the partition table
    q quit without saving changes
    r recovery and transformation options (experts only)
    s sort partitions
    t change a partition's type code
    v verify disk
    w write table to disk and exit
    x extra functionality (experts only)
    ? print this menu




    Be sure to see comment below by Rod Smith, he is author of gdisk.






    share|improve this answer




















    • 2





      Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

      – tomoqv
      Dec 6 '13 at 7:05






    • 2





      Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

      – Rod Smith
      Dec 6 '13 at 18:13











    • CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

      – barrypicker
      Jan 3 '18 at 18:22















    36














    Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.



    sudo gdisk /dev/sda
    Command (? for help):



    b back up GPT data to a file
    c change a partition's name
    d delete a partition
    i show detailed information on a partition
    l list known partition types
    n add a new partition
    o create a new empty GUID partition table (GPT)
    p print the partition table
    q quit without saving changes
    r recovery and transformation options (experts only)
    s sort partitions
    t change a partition's type code
    v verify disk
    w write table to disk and exit
    x extra functionality (experts only)
    ? print this menu




    Be sure to see comment below by Rod Smith, he is author of gdisk.






    share|improve this answer




















    • 2





      Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

      – tomoqv
      Dec 6 '13 at 7:05






    • 2





      Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

      – Rod Smith
      Dec 6 '13 at 18:13











    • CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

      – barrypicker
      Jan 3 '18 at 18:22













    36












    36








    36







    Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.



    sudo gdisk /dev/sda
    Command (? for help):



    b back up GPT data to a file
    c change a partition's name
    d delete a partition
    i show detailed information on a partition
    l list known partition types
    n add a new partition
    o create a new empty GUID partition table (GPT)
    p print the partition table
    q quit without saving changes
    r recovery and transformation options (experts only)
    s sort partitions
    t change a partition's type code
    v verify disk
    w write table to disk and exit
    x extra functionality (experts only)
    ? print this menu




    Be sure to see comment below by Rod Smith, he is author of gdisk.






    share|improve this answer















    Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.



    sudo gdisk /dev/sda
    Command (? for help):



    b back up GPT data to a file
    c change a partition's name
    d delete a partition
    i show detailed information on a partition
    l list known partition types
    n add a new partition
    o create a new empty GUID partition table (GPT)
    p print the partition table
    q quit without saving changes
    r recovery and transformation options (experts only)
    s sort partitions
    t change a partition's type code
    v verify disk
    w write table to disk and exit
    x extra functionality (experts only)
    ? print this menu




    Be sure to see comment below by Rod Smith, he is author of gdisk.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 29 mins ago









    Pablo Bianchi

    2,97021535




    2,97021535










    answered Dec 6 '13 at 0:46









    oldfredoldfred

    7,81421421




    7,81421421







    • 2





      Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

      – tomoqv
      Dec 6 '13 at 7:05






    • 2





      Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

      – Rod Smith
      Dec 6 '13 at 18:13











    • CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

      – barrypicker
      Jan 3 '18 at 18:22












    • 2





      Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

      – tomoqv
      Dec 6 '13 at 7:05






    • 2





      Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

      – Rod Smith
      Dec 6 '13 at 18:13











    • CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

      – barrypicker
      Jan 3 '18 at 18:22







    2




    2





    Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

    – tomoqv
    Dec 6 '13 at 7:05





    Thanks, that fixed the issue! Now to another question, is it possible to merge two separate blocks of unallocated space and in that case, should I?

    – tomoqv
    Dec 6 '13 at 7:05




    2




    2





    Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

    – Rod Smith
    Dec 6 '13 at 18:13





    Note that gdisk also has a v command that should turn up details about most GPT problems. Also, this page describes gdisk's repairing options. As to merging two separate blocks of unallocated space, that's done in GParted or the like by moving intervening partition(s). This is a risky operation, so do it only if necessary. Alternatively, you could create two partitions and use LVM to create a logical volume that would span both partitions, even though they're non-contiguous.

    – Rod Smith
    Dec 6 '13 at 18:13













    CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

    – barrypicker
    Jan 3 '18 at 18:22





    CAREFUL - my disks were part of a software raid array. This command changed the partition type from "Linux raid autodetect" to "Linux filesystem" and now my raid array superblocks are missing. (I have a backup).

    – barrypicker
    Jan 3 '18 at 18:22













    0














    Not exactly sure, but when I have two disks part of software raid (MDADM) I get this message. I damaged the array trying to remove this message. I was forced to recreate the array, and I still get this message. Since the array works, but I still get this message, I am just going to live with the message instead of trying to remove/fix it.






    share|improve this answer



























      0














      Not exactly sure, but when I have two disks part of software raid (MDADM) I get this message. I damaged the array trying to remove this message. I was forced to recreate the array, and I still get this message. Since the array works, but I still get this message, I am just going to live with the message instead of trying to remove/fix it.






      share|improve this answer

























        0












        0








        0







        Not exactly sure, but when I have two disks part of software raid (MDADM) I get this message. I damaged the array trying to remove this message. I was forced to recreate the array, and I still get this message. Since the array works, but I still get this message, I am just going to live with the message instead of trying to remove/fix it.






        share|improve this answer













        Not exactly sure, but when I have two disks part of software raid (MDADM) I get this message. I damaged the array trying to remove this message. I was forced to recreate the array, and I still get this message. Since the array works, but I still get this message, I am just going to live with the message instead of trying to remove/fix it.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 3 '18 at 18:37









        barrypickerbarrypicker

        4381510




        4381510



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f386752%2ffixing-corrupt-backup-gpt-table%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org