public:managing_luks_on_debian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:managing_luks_on_debian [2024/08/02 20:40] – thomas | public:managing_luks_on_debian [2024/08/05 17:04] (current) – [Creating an encrypted volume] thomas | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| < | < | ||
| - | cryptsetup | + | cryptsetup -v --type luks2 luksFormat /dev/DEVICE |
| </ | </ | ||
| + | You can also create an encrypted volume on a disk image instead. In that case, first create the disk image with a command like the following: | ||
| + | |||
| + | < | ||
| + | touch disk.img | ||
| + | fallocate -v -l 100MiB disk.img | ||
| + | </ | ||
| + | |||
| + | Don't use sparse images. LUKS will consider them too small. | ||
| ===== Opening an encrypted volume ===== | ===== Opening an encrypted volume ===== | ||
| Line 26: | Line 34: | ||
| The volume should then become available at / | The volume should then become available at / | ||
| + | |||
| + | ===== Closing an encrypted volume ===== | ||
| + | |||
| + | < | ||
| + | cryptsetup luksClose volumename | ||
| + | </ | ||
| + | |||
| ===== Listing slots ===== | ===== Listing slots ===== | ||
public/managing_luks_on_debian.1722631245.txt.gz · Last modified: by thomas
