Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (8 sloc) 381 Bytes
# Script to set up an encrypted drive because I can never remember the commands to do it.
# Takes two arguments, the block device and the label
sudo cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 luksFormat $BLOCKDEVICE
sudo cryptsetup luksOpen $BLOCKDEVICE $LABEL"_crypt"
sudo mkfs.ext4 -L $LABEL /dev/mapper/$LABEL"_crypt"
You can’t perform that action at this time.