The original HDD as reported by Gnome Partition Editor 0.26.1-5:
Partition | Name | Label | File System | Flags
/dev/sda1 | EFI system partition | | fat32 | boot, hidden, esp
/dev/sda2 | Microsoft reserved partition | | unknown | msftres
/dev/sda3 | Basic data partition | Windows |ntfs | msftdata
/dev/sda4 | Basic data partition | WinRE_DRV |ntfs | hidden, diag
Editing d1.fixed_size_partitions of the captured image to be:
:1:2:4
… then deploying the image to a smaller HDD results in this:
* Attempting to expand/fill partitions ... Done
* Seems like you are trying to restore to an empty disk. Be aware this will most probably cause trouble.
Attempting to deploy image
Using Partclone
An error has been detected!
No image file(s) found that would match the partition(s) to be restored (performRestore>
Args Passed: /dev/sda /images/test all
Computer will reboot in 1 minute
Deploying the same image to a larger (500 GB) HDD results in:
Partition | Name | Label | File System | Flags
/dev/sda1 | EFI system partition | | fat32 | boot, esp
/dev/sda2 | Microsoft reserved partition | | unknown | msftres
/dev/sda3 | Basic data partition | Windows | ntfs | msftdata (still shrunk at 25.4 GB)
unallocated (211.82 GB)
/dev/sda4 | Basic data partition | WinRE_DRV | ntfs | hidden, diag (correctly sized to 1000 MB)
unallocated (227.29 GB)
GParted initially launches with this error:
Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 2014 blocks) or continue with the current setting?
Selecting FIX or IGNORE doesn’t change the partitions.
So it more or less mirrored the original 256 GB HDD layout onto the 500 GB HDD leaving the extra space after sda4 empty, instead of dumping sda4 onto the end of the space, then expanding sda3 into the donut hole.