Spotlight
After the Circus

Random Sample
Letter Beads








contact me
jean at geemoo dot ca
Blog

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