encrypted data partition

I’ve found several tutorials on how to create an encrypted partition under Linux, but most of them focus either on encrypted root/swap partitions, or on removable drives. My goal is to have an encrypted data partition, where I keep my work and private data safe.

Here’s the steps:

Install cryptsetup: sudo aptitude install cryptsetup

Unmount the partition: sudo umount /dev/sda1 (replace sda1 with your own partition; be very careful!)