sudo cryptsetup luksFormat /dev/sdx1sudo cryptsetup open /dev/sdx1 <name>sudo mkfs.btrfs /dev/mapper/<name> sudo mount /dev/mapper/<name> <mntpoint>sudo umount <mntpoint>sudo cryptsetup close <name>sudo cryptsetup open /dev/sdx1 <name>sudo mount /dev/mapper/<name> /mntsudo cryptsetup close <name>Just be sure to sudo cryptsetup close <name> when you're done