luksFormat
Setup
- run as root
partition
= device partition to encryptmapping
= any name, will appear in/dev/mapper
mountpoint
= directory to mount the encrypted device on
cryptsetup luksFormat partition cryptsetup open partition mapping mkfs.ext4 /dev/mapper/mapping cryptsetup close mapping
Dump (idk if it's the correct usage)
cryptsetup luksDump partition
Cryptfile
dd if=/dev/zero of=file bs=1M count=64
- do this first
partition
=file
(for rest)- here
file
is 64MB (min 32MB required for ext4)
Usage
Mount
cryptsetup open partition mapping mount /dev/mapper/mapping mountpoint
Umount
umount mapping cryptsetup close mapping