Share |

2.20 Clonexp (obsoleted by mclone)

Clonexp clones an ntfs partition to another computer over the network. Both PCs must be running the same version of TRK.. The one who is receiving the data must run with sshd enabled (triggerable from the simple TRK menu)

Basically what it does is run ntfsclone in save mode to stdout at one computer and restore mode from stdin on the other, piping over ssh between eachother.

When running clonexp, make sure your source partition is smaller or equal to what can fit on the destination. Ntfsclone (and subsequently clonexp) cannot dynamically resize a partition, so it 's a good thing to make the destination partition equal or bigger in size than the source. Do this easily with parted, supplied on TRK. If your maximum possible destination size is smaller than your source, try making your source smaller with parted. At least, if the data on it is less than the destination and the volume is not too fragmented.

Also make sure neither of the local nor remote filesystems are mounted, or the script will exit.

Clonexp can run in two modes: without any arguments, it runs in interactive mode and prompts you for source device, destination host and destination device. It will each time test whether these things exist.

You can also run it in a single commandline, in this way (drop the <>):
clonexp <sourcedevice> <destinationhost>:<destinationdevice>
e.g. 'clonexp /dev/hda1'

It will prompt you once for the password you have entered on the remote TRK machine and then start copying the data. There is also the option '--bkupbr', which will first backup your partition bootrecord and later save that as a file on your newly created partition. Although it may never really serve, I give this opportunity should you ever be unable to boot from the partition and you want to play around a bit with your old bootrecord. This might as well completely obliterate your partition, so use with caution (backups 'n stuff ready...)
I was once able to make a cloned unbootable partition bootable this way by afterwards running from the Windows XP recovery console and do a chkdsk.
It 's recommended you use clonexp only between computers which have the same disk layout, or even better, are exactly the same hardware.
Clonexp is obsoleted by mclone, which is more efficient, more bugfree and multiclient capable


Updated: July 27, 2010