ich versuche gerade eine Partition mit Cryptsetup / LUKS zu verschlüsseln.
Dabei halte ich mich strikt an dieses Howto aus dem gentoo-wiki: http://de.gentoo-wiki.com/DM-Crypt#Cryptsetup
"Eigentlich" sieht das ja recht einfach aus:
Das ist bei mir auch im Kernel:Die Optionen für DM-Crypt:
Device Drivers --->
Multi-device support (RAID and LVM) --->
[*] Multiple devices driver support (RAID and LVM)
< > RAID support
<M> Device mapper support
<M> Crypt target support
[*] Multiple devices driver support (RAID and LVM) │ │
│ │ <*> RAID support │ │
│ │ <M> Linear (append) mode │ │
│ │ <M> RAID-0 (striping) mode │ │
│ │ <M> RAID-1 (mirroring) mode │ │
│ │ <M> RAID-10 (mirrored striping) mode (EXPERIMENTAL) │ │
│ │ <M> RAID-4/RAID-5/RAID-6 mode │ │
│ │ [*] Support adding drives to a raid-5 array │ │
│ │ <M> Multipath I/O support │ │
│ │ <M> Faulty test module for MD │ │
│ │ <M> Device mapper support │ │
│ │ [ ] Device mapper debugging support │ │
│ │ <M> Crypt target support
Bis auf LRW ist bei mir alles drin:Natürlich brauchen wir noch eine Crypto-API:
Cryptographic options --->
--- Cryptographic API
<M> SHA256 digest algorithm
<M> LRW support
<M> Blowfish cipher algorithm
<M> Twofish cipher algorithm
<M> Serpent cipher algorithm
<M> AES cipher algorithms
Sieht ja soweit alles gut aus.< > MD4 digest algorithm │ │
│ │ <*> MD5 digest algorithm │ │
│ │ <M> SHA1 digest algorithm │ │
│ │ <M> SHA256 digest algorithm │ │
│ │ <M> SHA384 and SHA512 digest algorithms │ │
│ │ < > Whirlpool digest algorithms │ │
│ │ < > Tiger digest algorithms │ │
│ │ < > GF(2^128) multiplication functions (EXPERIMENTAL) │ │
│ │ <M> ECB support │ │
│ │ <M> CBC support │ │
│ │ <M> PCBC support │ │
│ │ < > LRW support (EXPERIMENTAL) │ │
│ │ < > Software async crypto daemon │ │
│ │ <*> DES and Triple DES EDE cipher algorithms │ │
│ │ < > FCrypt cipher algorithm │ │
│ │ <M> Blowfish cipher algorithm │ │
│ │ <M> Twofish cipher algorithm │ │
│ │ <M> Twofish cipher algorithms (i586) │ │
│ │ <M> Serpent cipher algorithm │ │
│ │ <M> AES cipher algorithms │ │
│ │ <M> AES cipher algorithms (i586)
Nun mache ich wie im Howto:
Code: Select all
modprobe dm-crypt
modprobe sha256
modprobe blowfish
modprobe aes
Aber dann:
Code: Select all
cryptsetup -c aes-cbc-essiv:sha256 -y -s 384 luksFormat /dev/sda7Code: Select all
WARNING!
========
This will overwrite data on /dev/sda7 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sda7 contains at least 383 sectors.
Failed to write to key storage.
Command failed.Code: Select all
lsmod | grep sha
sha256 11008 0
Danke für jeden Tip......



