[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cryptsetup-luks swap mit keyfile



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Jordan schrieb:
> Wann tritt das Problem den genau auf?
> 
> Nur wenn Du aus suspend to disk wieder kommst oder auch bei einem
> "normalen" boot?

Bei beidem. Ich habe das Gefühl, das keyfile ist noch nicht verfügbar
weil das Root Filesystem nur entschlüsselt ist, und noch nicht
gemountet. Deshalb fragt er nach dem Passwort.
Bei der Datenparti die erst später entschlüsselt wird funktioniert es
ohne Probleme. Ich glaube das Problem liese sich lösen, wenn die Swap
erst später entschlüsselt und gemounted würde (zusammen mit Datenparti)
Etch macht dies auch noch so. Lenny nicht mehr.

> Kannst du deine crypttab/fstab mal posten?
Klar.

/etc/crypttab:
># rootfs
> sda2_crypt /dev/sda2 none luks
>#swap parti mit probs
> sda3_crypt /dev/sda3 /secretpathtokeyfile/secretkeyfileswap luks
># Datenparti die funktioniert
> sda4_crypt /dev/sda4 /secretpathtokeyfile/secretkeyfiledata luks


/etc/fstab:
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    defaults        0       0
># rootfs
> /dev/mapper/sda2_crypt /               ext3    errors=remount-ro 0       1
># boot fs unencrypted
> /dev/sda1       /boot           ext3    defaults        0       2
># Datenparti die funktioniert
> /dev/mapper/sda4_crypt /media/Daten    ext3    defaults,noatime        0       2
># swap mit probs
> /dev/mapper/sda3_crypt none            swap    sw              0       0


Michael

- --
"Jedes gelöste Problem ist einfach." - Thomas Alva Edison (zugeschrieben)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIq/vHznoItu87h7ERAmGFAJ9wkCum+Vhs14Zv/Og7k6KZA6JvgQCbBVfJ
BuFRqnNb8jm0+qdKyuwerws=
=I7Ul
-----END PGP SIGNATURE-----


Reply to: