One easy way for boosting your laptop performance is to get a SSD drive. Unfortunately they are still quite small (in terms of capacity) compared to the traditional HDDs. So to get the best of both worlds I needed a way to fit both drives in my laptop. The operation consisted of finding an old DVD ROM and proper cable, getting rid of the dvd’s internals, fixing the cable and hdd onto the metal case.
Sorry for the crappy photos.
Here is a quick how-to for password protecting and encrypting your partition using cryptsetup under Ubuntu/Kubuntu Oneiric Ocelot. It should work for older versions too but haven’t tested it.
cryptsetup luksFormat /dev/sdaX
cryptsetup luksOpen /dev/sdaX cryptname
echo 'cryptname /dev/sdaX none luks' >> /etc/crypttab
echo '/dev/mapper/cryptname /media/cryptname ext4 defaults 0 2' >> /etc/fstab
Obviously you have to be root and have cryptsetup installed.
PS: I’m NOT responsible for any damage or data loss caused by executing the supplied code.