24 lines
315 B
Markdown
24 lines
315 B
Markdown
|
# 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]
|
||
|
~~~
|