LUKS: Difference between revisions

36 bytes added ,  15 January 2023
Line 31: Line 31:


===Mounting===
===Mounting===
<pre>
<syntaxhighlight lang="bash">
# Open the encrypted drive
# Open the encrypted drive
cryptsetup open "${DEVICE}" "${NAME}"
cryptsetup open "${DEVICE}" "${NAME}"
# Mount your partition
# Mount your partition
mount -t btrfs /dev/mapper/${NAME} "${MOUNT_LOCATION}"
mount -t btrfs /dev/mapper/${NAME} "${MOUNT_LOCATION}"
</pre>
</syntaxhighlight>


===Unmounting===
===Unmounting===