Hi,
I'm trying to use ntfsclone to copy an NTFS disk partition to an image
file, then resize the image file to fit a larger (or smaller, within
reason) partition and then use ntfsclone again to restore the resized
image file contents to the new partition.
Of note is that I'm using the saved-image format for the image file.
However:
# ntfsclone -o /tmp/ntfs1.img -s /dev/sdd1
ntfsclone v1.9.4
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 36405055488 bytes (36406 MB)
Current device size: 36405057024 bytes (36406 MB)
Scanning volume ...
100.00 percent completed
Accounting clusters ...
Space in use : 3020 MB (8.3%)
Saving NTFS to image ...
100.00 percent completed
Syncing ...
Fine so far. But then if I try to use ntfsresize:
# ntfsresize -n -i /tmp/ntfs1.img
ntfsresize v1.9.4
ERROR(22): ntfs_mount failed: Invalid argument
Apparently device '/tmp/ntfs1.img' doesn't have a valid NTFS.
Maybe you selected the wrong partition? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? This error might also occur
if the disk was incorrectly repartitioned (see the ntfsresize FAQ).
Does ntfsresize work on 'save-image' files, or only on regular clones of
the filesystem? If it doesn't work, is there an alternative that doesn't
involve resizing or writing to the original disk partition, and that
also doesn't force me to clone a huge filesystem to an equally huge
image file?
Thanks,
Chris
|