cheat-sheets/criptsetup.md
2024-01-19 09:52:59 +03:00

315 B

Cryptsetup

Crypt disk.

cryptsetup -y -v luksFormat /dev/sda1

# (Enter YES, uppercase)

Open disk.

cryptsetup open /dev/sda1 [name_disk]

Create file system.

mkfs.btrfs -f /dev/mapper/[name_disk]

Mount file system.

mount /dev/mapper/[name_disk] /mnt/[name_directory]