Menu

Restoring MBR image over corrupted GPT disk

David
2012-06-06
2013-04-05
  • David

    David - 2012-06-06

    When trying to restore an MBR image over a corrupted GPT disk I hit the error "Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should…."

    It is true that the disk is corrupted, but as I'm restoring over the top of that I shouldn't need to care.  Looking in ocs-functions in the function create_partition() I see that if the disk had been successfully recognized as a GPT disk it would be re-labelled with the command "LC_ALL=C parted -s $tgt_hd_file mklabel msdos".

    My fix has been just to run that command regardless of whether parted can recognize the disk as GPT or not.  This has worked ok for me, and I was wondering why Clonezilla doesn't just always re-label the disk as MBR when restoring an MBR image.   Hopefully this suggestion is of some use.

    Clonezilla version: 2.5.8.1drbl
    Parted version: 3.1
    Running on MicroCore Linux: 4.5.

    Regards, David.

     
  • Steven Shiau

    Steven Shiau - 2012-06-19

    Yes, this case has been improved in newer Clonezilla. For the stable release now (2.5.38) it should be OK. If this issue still exist, please report.
    Thanks.

    Steven.

     
  • Mike

    Mike - 2012-06-22

    I am seeing a similar error trying to restore an image taken of a Mac Mini (formatted to 100% Win7). Disk is clonezilla-live-1.2.12-60-i686-pae.iso, latest available from the Stable Images list with a file date of 2012-05-25.

     
  • Steven Shiau

    Steven Shiau - 2012-07-04

    Please give Clonezilla live 1.2.13-5 a try. There is an improvement about EFI/GPT.

    Steven.

     

Log in to post a comment.

MongoDB Logo MongoDB