Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partclone.ntfs misses 4096 bytes #69

Closed
ghost opened this issue Dec 20, 2015 · 2 comments
Closed

partclone.ntfs misses 4096 bytes #69

ghost opened this issue Dec 20, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 20, 2015

Probably double of #54 (Include Boot Sector)

When creating an ntfs-image with partclone v0.2.83 the restored images misses one physical sector of 4096 bytes. Checked with various ntfs partitions.

Physical Device:
Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xf47a1902
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdc2 206848 1953521663 1953314816 931.4G 7 HPFS/NTFS/exFAT

Partclone Creation:
partclone.ntfs -c -o willi.img -s /dev/sdc2
Partclone Restore:
partclone.ntfs -r -s willi.img -o myimage.iso (-W) Raw File does not make any difference.
myimage.iso cannot be loop mounted because of missing 4096 bytes.

On the other hand ntfsclone v2014.2.15 (libntfs-3g) works correct:
ntfsclone -s -o willi.img /dev/sdc2
resp. restore
ntfsclone -r -o myimage.iso willi.img
myimage.iso can be loop mounted and shows all NTFS files.

@Thomas-Tsai
Copy link
Owner

thank you for this report.
The new raw device size for restore image was re-build by bitmap and block size. For ntfs is not correct, we are already found the related issue/bug, and would be fix soon.

thank you!

@ghost
Copy link
Author

ghost commented Dec 21, 2015

Great. Thank you very much for your effort.

@ghost ghost closed this as completed Apr 26, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant