I tested and uploaded another version: this time it’s the latest Partclone with the fix suggested by @Sebastian-Roth, i.e.
diff --git a/src/ddclone.c b/src/ddclone.c
index 04f8775..cab5386 100644
--- a/src/ddclone.c
+++ b/src/ddclone.c
@@ -30,7 +30,9 @@ void read_super_blocks(char* device, file_system_info* fs_info)
}
strncpy(fs_info->fs, raw_MAGIC, FS_MAGIC_SIZE);
fs_info->block_size = PART_SECTOR_SIZE;
- //fs_info->device_size = get_partition_size(&src);
+#ifdef IMG
+ fs_info->device_size = get_partition_size(&src);
+#endif
fs_info->totalblock = fs_info->device_size / PART_SECTOR_SIZE;
fs_info->usedblocks = fs_info->device_size / PART_SECTOR_SIZE;
close(src);
The symbol IMG
is defined in Makefile
when building partclone.imager
and prevents this change from being built into partclone.dd
. For now, I’ve successfully captured a disk from one machine and restored it to another one. After the coming Microsoft Patch Day (probably over the next weekend) I am planning to capture another disk image with this and deploy it to my pool in multi-cast mode.
This time, I also built the 64-bit kernel 4.19.94 and used it together with this image. It’s here.