Linux – Exchange data between two identical hard drives

hard-disklinux

I have two identical hard drives (same model) in my system. One is used for data which is not important (could be downloaded again but would take an eternity). The other is my system disk.
Now my problem is: The system disk is likely to fail in the near future (the SMART stats for it are really bad) and the other was seldom used and still has good stats.
Does anybody here now a program which can exchange the data between two drives without a third drive or losing data on one drive? I already ordered a new hard disk, but I want to be on the safe side.

Best Answer

Not a good answer but it's too long for a comment:

Depending on the data on each of the drives, you might try compressing the dd image of the most compressable HDD, then dd that drive to the next drive (using dd if=/dev/sda of=/dev/sdc or whatever the drive names are), dd it back over the original drive (sda in my previous example) by doing a gzcat to pipe data into the final dd (similar to what they do here).

You may also try to shrink the respective partitions as much as possible and only take a dd image of the individual partitions to see if that saves you more space.

Related Question