OVH Community, your new community space.

Truecrypt 7: reload ioctl failed


F4RR3LL
30.05.12, 01:01
Ich packs ma hier drunter weils grade passt, wollte heute im Wiki eine neue Anleitung schreiben für die neuste Version. 7.1a ist eigentlich nicht nötig... es ist alles gleich geblieben zu den Vorgängerversionen. Lediglich das Paket nasm muss noch installiert werden. Doch das wird in einer dicken Fehlermeldung angezeigt.
Gruß Sven

F4RR3LL
06.05.12, 00:23
Wunderbar. Passt. Hm kontrollieren, was willste noch mehr kontrollieren.

mick
06.05.12, 00:21
yihaaaa - hat geklappt =) =)

root@ks38XXXX:~# truecrypt -d
root@ks38XXXX:~# truecrypt /dev/sda2 /opt/
Enter password for /dev/sda2:
Enter keyfile [none]:
Protect hidden volume (if any)? (y=Yes/n=No) [No]:
root@ks38XXXX:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 9.8G 839M 8.5G 9% /
/dev/root 9.8G 839M 8.5G 9% /
/dev 7.9G 4.0K 7.9G 1% /dev
none 1.6G 216K 1.6G 1% /run
none 9.8G 839M 8.5G 9% /run/lock
none 7.9G 0 7.9G 0% /run/shm
/dev/root 9.8G 839M 8.5G 9% /run/lock
/dev/mapper/truecrypt1
1.9T 28G 1.7T 2% /opt
root@ks38XXXX:~#

Komisch - also ich habs jetzt ungelogen schon bestimmt 8 mal probiert, jedes mal kam der gleiche Fehler wie oben.
Sollte aber doch nun alles stimmen, oder kann man nochmal irgendwie eine Kontrolle machen?

LG

F4RR3LL
06.05.12, 00:18
richtig, passt

dann truecrypt -d
und nur noch ein truecrypt /dev/sda2 /opt ohne extras sollte passen
done
Dann sollte dein df -h auch passen

Gruß Sven

mick
06.05.12, 00:17
Hi,
danke nochmal.

root@ks38XXXX:~# truecrypt /dev/sda2 --filesystem=none
Enter password for /dev/sda2:
Enter keyfile [none]:
Protect hidden volume (if any)? (y=Yes/n=No) [No]:
root@ks38XXXX:~# truecrypt -l
1: /dev/sda2 /dev/mapper/truecrypt1 -

Scheint also geklappt zu haben.

Das heisst also nun müsste ich mkfs.ext4 /dev/mapper/truecrypt1 ausführen, richtig?

EDIT:

root@ks38XXXX:~# mkfs.ext4 /dev/mapper/truecrypt1
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
121421824 inodes, 485686464 blocks
24284323 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
14822 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Auch ok, oder?!

F4RR3LL
06.05.12, 00:12
Hab oben den Beitrag nochmal editiert. Server hab ich genug... dank OVH
Die Zeit ist eher mein Problem.

Gruß Sven

mick
06.05.12, 00:07
root@ks38XXXX:~# truecrypt -l
1: /dev/sda2 /dev/loop0 -

EDIT: Könntest du wenn du Zeit hast vielleicht mal eine Anleitung zu Truecrypt 7 auf nixhelp schreiben? Finde die Seite sehr gut und damit würdest du sicher vielen helfen
Falls du gerade keinen Server zur Hand hast, würde ich dir auch meinen anbieten dafür.

EDIT2: Selbst wenn ich das Volume nochmal neu formatiere, ich habe gelesen dass "nokernelkrypto" ziemlich viel Ressourcen braucht. Stimmt das?

F4RR3LL
06.05.12, 00:05
wenn es so gemounted ist was sagt truecrypt -l ?
und ohne Filesystem sollte das /opt am ende auch nicht dabei stehen.
-m=nokernelcrypto sollte eigentlich auch nicht nötig sein, da im OVH Kernel eigentlich alles drin ist was truecrypt benötigt.
Wäre mir neu wenn das anders ist.
Also ich würds erstmal so testen:
truecrypt /dev/sda2 --filesystem=none
wenn das ohne Fehler geht sollte man das im truecrypt -l sehen
dann mkfs.ext(wasimmerduwillst) /dev/das/was/truecrypt -l/anzeigt
dann unmounten und dann komplett mit Angabe des ext... und Zielordner mounten.
Gruß Sven

mick
05.05.12, 23:44
Hi,
danke für die schnelle Antwort. Erstmal kurz:

root@ks38XXXX:~# dmesg | tail
UDF-fs: warning (device loop0): udf_fill_super: No partition found (1)
XFS (loop0): bad magic number
XFS (loop0): SB validate failed
(mount,4421,3)cfs2_fill_super:1040 ERROR: superblock probe failed!
(mount,4421,3)cfs2_fill_super:1234 ERROR: status = -22
GFS2: not a GFS2 filesystem
GFS2: gfs2 mount does not exist
EXT4-fs (loop0): VFS: Can't find ext4 filesystem
udevd[14809]: starting version 173
EXT4-fs (loop0): VFS: Can't find ext4 filesystem

Und dann habe ich nochmal versucht mit filesystem=none. Kommt zwar kein Fehler - mounten tut er aber auch nicht:

root@ks38XXXX:~# truecrypt -m=nokernelcrypto --filesystem=none /dev/sda2 /opt
Enter password for /dev/sda2:
Enter keyfile [none]:
Protect hidden volume (if any)? (y=Yes/n=No) [No]:
root@ks38XXXX:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 9.8G 839M 8.5G 9% /
/dev/root 9.8G 839M 8.5G 9% /
/dev 7.9G 4.0K 7.9G 1% /dev
none 1.6G 216K 1.6G 1% /run
none 9.8G 839M 8.5G 9% /run/lock
none 7.9G 0 7.9G 0% /run/shm
/dev/root 9.8G 839M 8.5G 9% /run/lock

F4RR3LL
05.05.12, 23:38
Hast Du mal mit --filesystem=none versucht zu mounten?
Dann könntest Du es später noch entsprechend formatieren.

Gruß Sven

mick
05.05.12, 23:32
Hi,
ich habe nun sowohl auf Debian 6.0 (Squeeze) 32 Bit, als auch 64 Bit das Problem, dass ich meine /dev/sda2 Datenpartition nicht verschlüsseln kann.

Nun habe ich es testweise auch mal mit Ubuntu 11.10 32 Bit versucht - immer noch das gleiche Problem.

Nachdem ich Truecrypt 7.1a fehlerfrei installieren konnte, ging die Erstellung des verschlüsselten soweit auch erstmal fehlerfrei - bis zum Ende.

Done: 100.000% Speed: 101 MB/s Left: 0 s

Error: device-mapper: reload ioctl failed: Invalid argument
Command failed

Nachdem ich mit truecrypt -d nochmal alles unmounted habe, und anschließend nochmal probiert habe kommt der Fehler halt jedes mal und das Volumen wird nicht eingebunden.

Mit -m=nokernelkrypto kommt die Fehlermeldung, dass ich das Filesystem eingeben muss. Mache ich auch dies, kommt folgende Meldung:

root@ks38XXXX:~# truecrypt -m=nokernelcrypto --filesystem=ext4 /dev/sda2 /opt
Enter password for /dev/sda2:
Enter keyfile [none]:
Protect hidden volume (if any)? (y=Yes/n=No) [No]:
Error: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@ks38XXXX:~#

Ich habs nun auch schon mit einem Truecrypt Container probiert. Da kommt beim Mounten aber ebenfalls die Meldung "wrong fs type, bad option, bad superblock on[...]".

Was kann ich machen? Beim letzten mal habe ich TC 6 genommen, mit der Installationsanleitung von wiki.nixhelp.de. Das hat auch super funktioniert und ich bin drauf und dran das nun wieder zu machen. Aber TC 7 ist ja neuer, wäre cool wenn man das auch irgendwie hinbekommen könnte.

Danke für Hilfe!

EDIT: Ich nutze Truecrypt 7.1a 32 Bit Console Only!

EDIT2:
root@ks38XXXX:~# uname -a
Linux ks388943.kimsufi.com 3.2.13-grsec-xxxx-grs-ipv6-32 #1 SMP Thu Mar 29 09:43:21 UTC 2012 i686 i686 i386 GNU/Linux