Page 1 of 1

Cloning NTFS filesystem to new partition using ntfsclone

PostPosted: Dec 12th, '15, 09:59
by andre999
Suggestions for cloning an NTFS filesystem to a new partition using ntfsclone.
Since ntfsclone syntax doesn't distinguish between an output file or output partition,
the output partition must be created before cloning. Otherwise ntfsclone will create a file instead of a new partition.

So statements like
Code: Select all
# ntfsclone -output /dev/sdc1 /dev/sda1

or
Code: Select all
# ntfsclone -restore-image -output /dev/sdc1 /pathto/imagefile

will attempt to create a file in /dev/ called sdc1.
(Note that the last item in the line is the source filesystem.)

Instead
1) Create the output partition. (/dev/sdc1 in above example.)
It must be large enough to hold the filesystem.
2) according to source, use
Code: Select all
# ntfsclone -overwrite /dev/sdc1 /dev/sda1

or
Code: Select all
# ntfsclone -restore-image -overwrite /dev/sdc1 /pathto/imagefile


The need to explicitly create the target partition was omitted from the ntfsclone man page, which contains other useful info.

Hope this helps others that were blocked by this issue.