-> Baut auf Device-Mapper auf (dev/mapper/*) -> Aufbau: ______________________________________________________________________ ... ____________ | LUKS | Key | ... | Key | \ \ | | partition | Material | ... | Material | Data / / | | header | 1 | ... | 8 | \ \ | +---------------+---------------+-------+---------------+-------------- ... ------------+ LUKS phdr enthaelt Informationen ueber die Key Slots, diese enthalten mittels Passwort verschluesselte Master Keys HowTo: * Backup der zu verschluesselnden Partition/Daten erstellen! * bei eigenem Kernel: sicherstellen, dass dieser Mapper-Devices kann # aptitude install cryptsetup-luks # modprobe dm_crypt && modprobe dm_mod # cryptsetup luksFormat /dev/$DEVICE # cryptsetup luksOpen /dev/$DEVICE $CRYPTDEVICE # mkfs.ext3 /dev/mapper/$CRYPTODEVICE # mount /dev/mapper/$CRYPTODEVICE $MOUNT # vim /etc/crypttab /etc/fstab # dmsetup info # umount $MOUNT # cryptsetup luksClose $CRYPTODEVICE Mini-Benchmark (Notebook mit 5400rpm ATA-Platte) ============== $ time dd if=/dev/zero of=/tmp/zeros bs=1024k count=1024 && time dd if=/dev/zero of=$HOME/tmp/zeros bs=1024k count=1024 1024+0 records out 1073741824 bytes (1.1 GB) copied, 25.5872 seconds, 42.0 MB/s Real: 25.59s User: 0.00s System: 4.19s Percent: 16% Cmd: dd if=/dev/zero of=/tmp/zeros bs=1024k count=1024 1073741824 bytes (1.1 GB) copied, 48.974 seconds, 21.9 MB/s Real: 65.06s User: 0.01s System: 7.19s Percent: 11% Cmd: dd if=/dev/zero of=/home/fx/tmp/zeros bs=1024k count=1024 Links ===== Specs: http://luks.endorphin.org/LUKS-on-disk-format.pdf HowTo und weitere Links: https://systemausfall.org/wikis/howto/CryptoPartitionHowTo