|
|
|
@ -1,7 +1,7 @@ |
|
|
|
# LUKS-Encrypted Disk Images on Linux |
|
|
|
# LUKS-Encrypted Disk Images on Linux |
|
|
|
|
|
|
|
|
|
|
|
## Using your package manager: (apt, etc...) install the following: |
|
|
|
## Using your package manager: (apt, etc...) install the following: |
|
|
|
## Requires: cryptsetup [Exmaple:$ sudo apt install cryptsetup] |
|
|
|
## Requires: cryptsetup [Example:$ sudo apt install cryptsetup] |
|
|
|
## As well as: losetup, mount, umount, findmnt, blkid |
|
|
|
## As well as: losetup, mount, umount, findmnt, blkid |
|
|
|
## Optional: VBoxManage (VirtualBox), virsh (libvirt) |
|
|
|
## Optional: VBoxManage (VirtualBox), virsh (libvirt) |
|
|
|
|
|
|
|
|
|
|
|
@ -43,6 +43,17 @@ sudo luks-img.sh add-key --file mydisk.img --keyfile /path/newkey --existing-key |
|
|
|
When Done - Repeat step #2 to CLOSE |
|
|
|
When Done - Repeat step #2 to CLOSE |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## How to make a Compressed backup: |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
zstd -19 -T0 mydisk.img |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
## How to use the backup: |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
First close the image from step #2, then: |
|
|
|
|
|
|
|
mv mydisk.img mydisk.old.img |
|
|
|
|
|
|
|
unzstd mydisk.img.zst |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### If you want to add the image file to a VM: |
|
|
|
### If you want to add the image file to a VM: |
|
|
|
|
|
|
|
|
|
|
|
## Virtual Box: |
|
|
|
## Virtual Box: |
|
|
|
|