Thomas-Tsai/partclone — pull request #54 by pfrouleau (2014-07-12 23:05:48+00:00)
Title: Include the NTFS Boot Record backup in the cloned image

Include the NTFS Boot Record backup in the cloned image

This one depends on your view. A NTFS file system is 1 block smaller than the partition and a copy of the Boot Record is stored in the last sector of the partition. When we clone a NTFS file system, this extra block is not cloned. However, that block is created/modified by mkfs.ntfs, so it seem logical to include it in the image.

This commit update the code to include the extra block in the clone, by increasing the totalblock count and setting the last bit of the bitmap. This have the following effect: the restored file system have the same checksum than the original one. And if we restore the image on a partition with identical geometry than the original, we do not need to run ntfsfixboot.