Clonezilla restore MBR disk to 4TB disk (convert to GPT) -- LINUX (not Windows!)
Solution 1:
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!!!!
- Restore the image like normal with clonezilla. Ignore the error about GPT needed.
- Boot into the restored system, the disk is currently MBR so it's 2TB max
- Run
gdisk <disk>
example:gdisk /dev/sda
- gdisk will give you a warning that it's MBR and will automatically conver to GPT. Type
w
and press enter. Confirm the write operation - Go back into gdisk (like in step 3 above)
- Type
p
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) - Type
n
for a new partition. - When prompted for first sector, choose the lowest number you can (which is probably 34) last sector is 2047 in my case. (right before the start of primary partition) -- Essentially start: 34, end: 2047.
- When prompted for the type, choose
ef02
-
p
to verify the new partition layout -
w
to write changes - At the shell:
sudo partprobe
ignore the warning about the new partition created - At the shell:
sudo grub-install <disk>
example:sudo grub-install /dev/sda
- Reboot, you should be good to go.
- Use gparted or any other partition utility to expand over the now available free space. I personally booted to Ubuntu Live CD and used gparted for easy partition growth. Now that the partition is resized, use LVM to extend the LV/FS across the partition like normal.