cheat-sheets/criptsetup.md
2024-01-09 16:27:16 +03:00

24 lines
315 B
Markdown
Executable File

# 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]
~~~