A partclone bug found when it backs up WindowsServer2008R2 (64bit) on local c0d0 or sda.
partclone version = 0.2.46
run partclone: partclone.ntfs -L /tmp/partclone_img_info.LeOHcu -c -s /dev/sda1 --output - | pigz -c --fast -b 1024 -p 16 | split -b 2000m - /home/partimag/210208_bay3_win_2008r2_64_local_c0d0/sda1.ntfs-ptcl-img.gz.
Partclone v0.2.46 http://partclone.org
Starting to clone device (/dev/sda1) to image (-)
Reading Super Block
we need memory: 11460 bytes
image head 4160, bitmap 3200, crc 4100 bytes
Calculating bitmap... Please wait... ntfsclone-ng.c: used blocks count mismatch: 6178 in header, 4074 from readbitmap
===================================================
diff -uNr partclone-0.2.46.orig/src/ntfsclone-ng.c partclone-0.2.46/src/ntfsclone-ng.c
--- partclone-0.2.46.orig/src/ntfsclone-ng.c 2012-04-02 10:14:18.000000000 +0900
+++ partclone-0.2.46/src/ntfsclone-ng.c 2012-04-24 18:52:43.662358329 +0900
@@ -222,12 +222,14 @@
unsigned char *ntfs_bitmap;
unsigned long long current_block, used_block, free_block, pos;
long long int count;
- unsigned long bitmap_size = (ntfs->nr_clusters + 7) / 8;
+ unsigned long bitmap_size;
int start = 0;
int bit_size = 1;
fs_open(device);
+ bitmap_size = (ntfs->nr_clusters + 7) / 8;
+
if (bitmap_size > ntfs->lcnbmp_na->data_size) {
log_mesg(0, 1, 1, fs_opt.debug, "%s: calculated bitmap size (%lu) > lcnbmp_na->data_size (%llu)\n", __FILE__, bitmap_size, ntfs->lcnbmp_na->data_size);
}
Thanks for reporting this.
Thomas Tsai will review this.
Steven.
Robert,
This patch is applied in Partclone 0.2.48, which is used in Clonezilla live 1.2.12-54.
Please give it a try and let us know the results.
Thanks.
Steven.