How to properly image a truecrypt system partition?

12,048

Solution 1

You can backup and restore a TrueCrypt system partition if you use imaging software that is capable of reading and writing in raw mode -- copying the whole partition byte for byte without regard to the underlying file system. You also need to back up the MBR (master boot record), and perhaps the data between the MBR and the first partition.

And you must not image it when running Windows, like with "hot running" image software such as Acronis TrueImage. You must boot from a separate disc (CD or external drive) with your imaging software and then take the image.

I used Clonezilla to back up and restore a Linux encrypted root partition and MBR; I don't see why it shouldn't also work with a TrueCrypt encrypted partition.

Sometimes the problem is only with the header of the TrueCrypt partition, and restoring just the header might solve the problem. TrueCrypt provides the ability to backup and restore the header (you'll need to boot with the TrueCrypt rescue disc or another Live CD to restore the header).

Which software did you use in your backup and restore attempts? I would recommend Parted Magic, which is a Live CD that contains disk imaging and partitioning utilities (including Clonezilla), and also includes TrueCrypt.

Solution 2

I have had many successes at cloning TrueCrypt encrypted system volumes. If you clone outside of Windows and make an exact clone (cloning MBR, partition table, and partitions WITHOUT any resizing or re-arranging of partitions) all should work as expected.

That said, I've also had one (repeated) failure which I was wasn't able to explain. Maybe it was the software I was using that time versus the software I used in on the other occasions (I failed to clone with Acronis Disk Director, latest version as of 8/15/2012, I don't recall which software I was successful with).

Share:
12,048

Related videos on Youtube

nobody
Author by

nobody

Updated on September 18, 2022

Comments

  • nobody
    nobody almost 2 years

    A couple of times now I have imaged a truecrypt system partition in windows. When the system has crashed on me I've attempted to recover the system only for truecrypt to not boot the recovered system. Has anyone successfully backed-up and restored a system truecrypt partition?

    • Admin
      Admin almost 13 years
      Not while encrypted, no.
    • nobody
      nobody almost 13 years
      so then truecrypt essentially prevents anyone from imaging a drive and investigating it lively?
    • Admin
      Admin almost 13 years
      Effectively, yes. It also allows the partition within a partition which makes a good dummy if someone gets hold of the first password.
  • mhenry1384
    mhenry1384 almost 13 years
    I was able to get a truecrypted disk-to-disk copy working using Parted Magic. The Clonezilla options I used were -e2, -j2, -ql and Use Partition Table. Afterwards I had to use the Truecrypt rescue disc to restore both the boot loader AND key data. It took over 15 (!) hours to clone a 160 GB drive. I suspect that if I'd had a 500 GB drive, it would have been much, much faster to just reinstall Windows and all my software.
  • Mike Rowave
    Mike Rowave almost 13 years
    15 hours for 160 GB is an unusually long time. Were you cloning over the network?
  • Mike Rowave
    Mike Rowave almost 13 years
    Disk cloning of large encrypted drives is time consuming whether it is 2 hours or 15 hours, especially because the cloning software can't skip over the empty space. What I do to minimize that is keep the system partition fairly small like 20GB, then use a huge separate partition (also encrypted) for everything else. So when I have to clone/restore after a crash, it's just 20GB and I'm up and running in an 1 hour. If I'm lucky the extra big partition is still accessible without any rescue operation necessary, otherwise I can just copy back the files from an external backup drive.
  • northben
    northben almost 11 years
    I just used Clonezilla and it worked just fine and very fast. Between two SSDs, I got >11GB/s. I used the expert mode but used the default choices, and my new SSD booted just fine. The only thing I need to do now is to expand the partition on the new disk.