After the Circus

Random Sample
Midget Pumpkin

contact me
jean at geemoo dot ca

Nov 14, 2010
I've recently started to encrypt my backup drives, so I had to learn how to do this instead of just letting debian's init scripts to take care of it for me. Turns out it's quite easy. In my case, I was encrypting /dev/sdd1 and named my partition "backup". Substitute those values for whatever device and name you use.

# cryptsetup luksFormat /dev/sdd1
# cryptsetup luksOpen /dev/sdd1 backup
# mkfs -t xfs /dev/mapper/backup 
# mount /dev/mapper/backup /mnt/backup

That's it, when you're done with the device, umount the /dev/mapper/backup device, and then do a cryptsetup luksClose backup.
Tags: linux, debian, encryption