meine Versuche, einen USB-Stick als Schlüssel zu verwenden, scheitern an der Fehlermeldung:
Code: Alles auswählen
Kein Schlüssel mit dieser Passphrase verfügbar.
Nach dem HowTo:
http://wiki.debianforum.de/Cryptsetup_m ... _USB-Stick
habe ich es mehrmals versucht, immer die selbe Meldung. Liegts am HowTo? Ist ja in Überarbeitung. Oder mach ich was falsch?
Das Sytem ist eine ganz normale i386 jessie Installation (vom Stick aus), auf einem hp Compaq Mini 110 mit CF als Festplatte.
Hab das ganze nochmal im Terminal gemacht und rauskopiert:
Code: Alles auswählen
BENUTZER@debian:~$ su
Passwort:
root@debian:/home/BENUTZER# cd
root@debian:~# sudo fdisk -l
bash: sudo: Kommando nicht gefunden.
root@debian:~# fdisk -l
Disk /dev/sda: 14.9 GiB, 16000221184 bytes, 31250432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x49f1a71c
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 31248383 30746626 14.7G 5 Extended
/dev/sda5 501760 31248383 30746624 14.7G 83 Linux
Disk /dev/mapper/sda5_crypt: 14.7 GiB, 15740174336 bytes, 30742528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/debian--vg-root: 14 GiB, 15044968448 bytes, 29384704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/debian--vg-swap_1: 660 MiB, 692060160 bytes, 1351680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 486.5 MiB, 510132224 bytes, 996352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 235 996351 996117 486.4M 6 FAT16
root@debian:~# dd if=/dev/urandom of=/dev/sdb bs=512 seek=1 count=60
60+0 Datensätze ein
60+0 Datensätze aus
30720 Bytes (31 kB) kopiert, 0.0297488 s, 1.0 MB/s
root@debian:~# dd if=/dev/sdb bs=512 skip=1 count=4 > tempKeyFile.bin
4+0 Datensätze ein
4+0 Datensätze aus
2048 Bytes (2.0 kB) kopiert, 0.00129828 s, 1.6 MB/s
root@debian:~# cryptsetup luksAddKey /dev/sda5 --key-file=tempKeyFile.bin
Kein Schlüssel mit dieser Passphrase verfügbar.
root@debian:~#
Oder mir sagen, wie die Fehlermeldung gemeint ist. Ich komme nicht drauf was klemmt.
Gruss pachhenk