Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Truecrypt-Volume automatisch einbinden per udev
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Jan 16, 2007 1:55 pm    Post subject: Truecrypt-Volume automatisch einbinden per udev Reply with quote

Hallo zusammen,

ich versuche gerade, eine udev-Regel zu erstellen, die beim Einstecken eines USB-Sticks ein Script startet, das ein Truecrypt-verschlüsseltes File automatisch mountet.

Die udev-Regel:
Code:
BUS=="usb", SYSFS{product}=="Cruzer Micro", SYSFS{serial}=="XXXXXXXXXXXXXXXXXxx", KERNEL=="sd??", NAME="%k", SYMLINK="usbkey", RUN="usbkey.sh"

funktioniert einwandfrei, und startet wie erwartet das Skript /lib/udev/usbkey.sh. So weit, so gut.

Das Skript sieht folgendermaßen aus:
Code:
#!/bin/bash
mount  /dev/usbkey /mnt/usbkey
/usr/bin/truecrypt /mnt/usbkey/TRUECRYPTVOLUME -p PASSWORT /mnt/usbkey/TRUECRYPTVOLUME >> /var/log/messages
echo TRUECRYPTVOLUME mounted >> /var/log/messages


Das mounten funktioniert, und ich bekomme im Log die Ausgabe des letzten echo-Kommandos, aber das truecrypt-Volume wird weder eingebunden, noch finde ich irgendwelche Fehlerausgaben. Direkt aus der Kommandozeile läuft das Skript einwandfrei.
Was läuft da schief?
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Jan 16, 2007 5:11 pm    Post subject: Reply with quote

also das gleiche mit dmcrypt geht ohne Probleme...
Nachdem ich auf der Kiste nicht gleichzeitig mit Windows arbeite, muss es nicht unbedingt truecrypt sein, aber verstehen würde ich ganz gerne, warum es damit nicht funktioniert...

Ratlose Grüße
OscarWild
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum