Jump to content

LUKS: Difference between revisions

371 bytes added ,  3 August 2020
No edit summary
Line 30: Line 30:
</pre>
</pre>


===Mounting===
<pre>
# Open the encrypted drive
cryptsetup open <device> <name>
# Mount your partition
mount -t <fstype> /dev/mapper/<name> <mountlocation>
</pre>
===Unmounting===
<pre>
# Unmount your partition
umount <mountlocation>
# Close the decrypted drive
cryptsetup close <name>
</pre>
===Encrpytion Options===


;Notes
* You can see defaults using <code>cryptsetup --help</code>.
* You can see defaults using <code>cryptsetup --help</code>.
* <code>--type</code> [https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Encryption_options_with_dm-crypt options]
* <code>--type</code> [https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Encryption_options_with_dm-crypt options]
Line 40: Line 56:
** <code>loopaes</code> Avoid this as well.
** <code>loopaes</code> Avoid this as well.
** <code>tcrypt</code> Use this for mounting older truecrypt volumes.
** <code>tcrypt</code> Use this for mounting older truecrypt volumes.
* <code>--iter-time</code> dynamically determines the number of iterations used to hash your password. The number of iterations is determined when creating the luks key. E.g. <code>5000</code> means hash for 5 seconds and use that many iterations. You can see the number of iterations for each key with <code>cryptsetup luksDump &lt;device&gt;</code>.


{{ hidden | defaults |
{{ hidden | defaults |
Line 50: Line 68:
</pre>
</pre>
}}
}}
===Mounting===
<pre>
# Open the encrypted drive
cryptsetup open <device> <name>
# Mount your partition
mount -t <fstype> /dev/mapper/<name> <mountlocation>
</pre>
===Unmounting===
<pre>
# Unmount your partition
umount <mountlocation>
# Close the decrypted drive
cryptsetup close <name>
</pre>


==Benchmark==
==Benchmark==