Create crypted partition
luksformat -t ext3 /dev/YOURDEVICE
- You are asked for new passphrase
- You have to repeat it two times
Open crypted partition
cryptsetup luksOpen /dev/YOURDEVICE YOURFAVORITENAME
- You are asked for the passphrase
Mount the device that is created by cryptsetup as usual devices:
mount /dev/mapper/YOURFAVORITENAME /mnt/YOURFAVORITEMOUNTPOINT
Close crypted partition
Unmount as usual:
umount /mnt/YOURFAVORITEMOUNTPOINT
Close crypted partition:
cryptsetup luksClose /dev/mapper/YOURFAVORITENAME
Auto mount and auto-open
Note: this is semi-automatic as you have to type in the passwort upon boot up - otherwise the sense of crypting would be void
In /etc/crypttab:
YOURFAVORITENAME /dev/YOURDEVICE none luks
In /etc/fstab:
/dev/mapper/YOURFAVORITENAME /mnt/YOURFAVORITEMOUNTPOINT ext3 auto,defaults 0 0
Source:
http://www.andreas-janssen.de/cryptodisk.html
Kategorie(n): Linux, Datenverwaltung, Sicherheit