The easiest method is to restore a complete drive's Clonezilla image to a different size drive (if the target driver is bigger, and it is in your case).
Please check with
sudo parted -ls
that the physical sector sizes are the same in the source drive and the target drive. Otherwise there might be problems when you run the computer from the cloned copy.
If there is a GUID partition table, GPT, you need to fix the backup partition table at the end of the drive, which can be done with gdisk
, or easier with the shell-script gpt-fix
.
After cloning (or restoring from an image), you can use gparted
to increase the size of the Ubuntu partitions or create some new partition in order to use the extra space in the target drive.
If you need to increase the size of the Windows partition, you may need to move the Ubuntu partition(s) in order to get unallocated drive space near the Windows partition, and after that use Windows tools to increase the size with Windows tools (when running Windows). Please notice that moving the the head end of the boot partition (or root partition) of Ubuntu will make it necessary to reinstall the bootloader grub
.
So this is somewhat complicated, and it is much easier to create a new partition with the NTFS file system, where you can store data, that can be shared between Ubuntu and Windows.
Edit:
After cloning, please avoid booting the computer with both the source drive and the target drive connected. The drive's partition tables are identical and the UUIDs are identical too, so there may be confusion and there might be problems to boot from either of the drives separately afterwards.
(It is OK to boot from an external drive (for example an Ubuntu live drive) and connect the second of the identical drives after booting, if you want to fix something.)