I see this similar question was asked before, however it was either not answered or it pertained 100% to Windows workarounds.
This is specifically Linux and I am trying to restore a Clonezilla image to a 4TB hard drive.
I have used this image many times before on other disks, however due to MBR restrictions on this larger drive, it needs to be GPT so I cannot restore the disk image.
The exact error that Clonezilla states is "Error: Destination disk size is 4.00TB, which is larger than the MBR partition table entry maximum 2TiB. You have to use GUID partition table format (GPT)"
I understand "what" the problem is but I do not know the steps to resolve. I'm going to try cloning the master machine using Macrium reflect and restoring, hopefully it can migrate the partition structure automatically.
NOTE: This drive is blank, therefore I have no concern over data loss. Experimentation is fine as I have nothing to lose on the drive.
EDIT/UPDATE:
So it seems Clonezilla actually allows the process to continue, however it will write everything as-is to MBR and the disk will be seen as 2TB.
With this in place, the question then changes to converting the MBR to GPT on the OS/boot volume (yes I am booting into the system that I am working with, data loss is not a problem since I can just restore from image if something breaks, which is has many times so far in my trials)
I have opened the disk with gdisk and ran the conversion to GPT. This was succesful, however this kills the GRUB boot partition and indeed the system does not boot after conversion.
I am following this: https://wiki.archlinux.org/index.php/GUID_Partition_Table#Convert_from_MBR_to_GPT
What I need help with now: So right now I seem to have restored my Clonezilla image to the new disk in MBR format and have done and in-place conversion to GPT using gdisk.
I am now looking for guidance on creating the GRUB partition and re-installing GRUB so that the system can boot after conversion.
Once I have this all laid out I can format it to a full step by step answer with all the components together to help others in the future.
Thanks!!
Lots of experimentation and trial and error. However here is a tested working solution when restoring my Ubuntu 14.04 MBR image to a 4TB disk:
This should also work if you're just trying to convert a bootable Ubuntu OS disk to GPT (just skip step 1), however in that case ensure you have a backup!!!!
gdisk <disk>
example:gdisk /dev/sda
w
and press enter. Confirm the write operationp
to print your partition table, the first partition should start on sector 2048 (this is default setup, if yours is different the rest of the steps won't be exact for you)n
for a new partition.ef02
p
to verify the new partition layoutw
to write changessudo partprobe
ignore the warning about the new partition createdsudo grub-install <disk>
example:sudo grub-install /dev/sda