View previous topic :: View next topic |
Author |
Message |
gregf Tux's lil' helper
Joined: 14 May 2003 Posts: 102 Location: USA, Maine
|
Posted: Sun Apr 13, 2008 2:23 pm Post subject: dmcrypt with remdev and key |
|
|
I just setup dmcrypt using a gpg key on one of my partitions to test. The rest are still using passphrases. I stuick the key on a small usb thumb drive and figured I could just stick it in during boot and avoid typing in my passphrase for each partition if this went well. Here's is what my config looks like right now for the partition using the passphrase.
Code: |
target=tmp
source='/dev/sda4'
remdev='/dev/sdc1'
key='/private_key.gpg'' |
I have dmcrypt at the boot level. When I boot up it says it can't find my key to please insert my removable media. Then after 10 seconds or so it asks if I want to abort or not. I started reading some older posts about this where people were talking about sleeping till the remdev was found discovered and could be mounted but looking at /lib/rscripts/addons/dm-crypt-start.sh there is a 10 second loop looking for it. Anyone have ideas on what I might be doing wrong?
I have also tried putting key='/private_key.gpg:gpg' and tried to remove the /. It does work fine If after I boot up I login and run /etc/init.d/dmcrypt restart. Finds the key instantly. I also noticed the config mentioning keys most not have any '\n''s so I removed those from key as well. |
|
Back to top |
|
|
phil free n00b
Joined: 11 Jul 2006 Posts: 5
|
Posted: Sun Apr 20, 2008 5:13 pm Post subject: |
|
|
You don't tell us very much about your system, but I'd guess your kernel can't handle the USB-drive at this stage of booting, probably due to a missing driver. Depending on your setup I'd either compile them into the kernel (i.e. not as a module) or add them to the initrd (and mind - *all* drivers needed to access the USB-drive). |
|
Back to top |
|
|
gregf Tux's lil' helper
Joined: 14 May 2003 Posts: 102 Location: USA, Maine
|
Posted: Thu Apr 24, 2008 11:34 pm Post subject: |
|
|
Sorry for the long delay. usb modules are compiled directly into the kernel not as modules. I'll have to look at trying it with a initrd. |
|
Back to top |
|
|
phil free n00b
Joined: 11 Jul 2006 Posts: 5
|
Posted: Sat Apr 26, 2008 11:09 am Post subject: |
|
|
If "usb modules are compiled directly into the kernel" also means things like
- usb_storage (to use USB-disks)
- vfat/fat (or whatever filesystem you're using on the stick)
- nls_iso8859_* (not sure, if that's really necessary)
then you should be OK. Try to find out which drivers are loaded when you insert the stick on a running system and double-check they are included in the kernel.
Another possibility is a missing gpg (somewhere in the PATH) on the initrd.
Good luck! |
|
Back to top |
|
|
dermartn n00b
Joined: 06 Dec 2004 Posts: 63
|
Posted: Tue Jun 17, 2008 5:32 pm Post subject: |
|
|
hey,
@gregf:
did you solve the problem?
i am looking for an answer for a long time now, but nothing seems to work...
thanks for answers and ideas.
- dermartn |
|
Back to top |
|
|
|