Copy or restore drive with encrypted partitions (veracrypt, LUKS)

User discussion and information resource forum for TeraByte Drive Image products, including TBNetManage.
Post Reply
YesAndNo
Posts: 52
Joined: Sat Aug 24, 2013 11:14 am

Copy or restore drive with encrypted partitions (veracrypt, LUKS)

Post by YesAndNo »

When it comes to copying or restoring a drive containing encrypted partitions (LUKS and/or Veracrypt in my case), what are the settings I need to change from default to get it to work?
I usually fail, then select a few settings that seem correct and try again until it works and then forget about it until next time.

I know about 'copy all sectors' though I think the manual said that's automatic if the file system is unknown anyway. What about other's like restore first track, disk signature etc?

Thanks for any help.
TeraByte Support
Posts: 3891
Joined: Thu May 05, 2011 10:37 pm

Re: Copy or restore drive with encrypted partitions (veracrypt, LUKS)

Post by TeraByte Support »

See

https://www.terabyteunlimited.com/kb/kb ... -programs/

and

https://www.terabyteunlimited.com/kb/kb ... for-linux/

In general, if you backup encrypted it will be raw. If able to select unencrypted partition it would be treated as normal
YesAndNo
Posts: 52
Joined: Sat Aug 24, 2013 11:14 am

Re: Copy or restore drive with encrypted partitions (veracrypt, LUKS)

Post by YesAndNo »

Thanks very much. I gathered I should 'restore first track' and change the AUTO value to '0'. I tried just changing these and restored a backup to a blank drive and it booted okay.

I also note that it says:
"When TRIM is used on a drive (e.g. SSD), unused sectors may be zeroed out. In this case, backing up the partition in its encrypted state may result in a smaller image than expected since the unused sectors will compress.

I've been setting compression off in my backup scripts but maybe I'll remove that option unless backup takes a lot longer.

Thanks again.
Post Reply