|
#1
|
|||
|
|||
|
Here's a brief HOWTO for encrypting personal data using LUKS/dm-crypt, on N900.
(I have not tried truecrypt, which is significantly less efficient than dm-crypt as it uses FUSE. But I don't see why we can't make it work with similarly hacks.) We will do the following:
HOWEVER: Since the Titan kernel has no support(?) for framebuffer console, there is currently no way to enter the passphrase during boot. For now, I'm using a key-file saved as /etc/LUKS-key. This temporary workaround is insecure in theory, but should work well in practice, if you choose a cryptic name (instead of LUKS-key) and obfuscate the startup script that unlocks the encrypted partition. In future, the key-file should be disabled using cryptsetup's luksRemoveKey command, as soon as we have framebuffer console. (See http://talk.maemo.org/showthread.php?t=40154 for a kernel with console support - but I couldn't give up titan's kernel for it )************************************************** **** NOTE: The hack works for the latest rootfs version (2010.36). Original data on /dev/mmcblk0p1 will be lost, so do a backup. REQUIRED: cryptsetup from extra-devel, a kernel with dm_crypt support - eg Titan's kernel-power. Root access. STEPS:
If you have made to this point without any problem, reboot and check with "df". You should have something like Code:
/dev/mapper/user 19613660 190348 18426988 1% /home/user /dev/mmcblk0p1 8372236 28 8372208 0% /home/user/MyDocs Last edited by jcolinzheng; 2010-12-15 at 21:29. |
| The Following User Says Thank You to jcolinzheng For This Useful Post: | ||
|
#2
|
|||
|
|||
|
I don't know much about dm-crypt, but it seems, as it uses a loop device, that the same procedure as with the truecrypt home encryption could be used.
That is, do a normal startup, mount the home folder afterwards and restart most of the programs to make them use the new home folder. see also http://talk.maemo.org/showthread.php?p=1008309 |
|
#3
|
|||
|
|||
|
Thank your jcolinzheng for this how-to. I had been searching for a way to encrypt my personal data with LUKS and DM-crypt the way I do on my laptop. I've followed your instructions and it works just as you describe.
I want to have to enter a password to unencrypt every time I start the device. I was actually able to get a framebuffer console running with the titan kernel version 47 y following these instructions for editing /sbin/preinit After that I went ahead and removed LUKS-key... but I am not sure how/where to edit your code so that it prompts me for the password and automatically mounts the partitions. Maybe in /etc/event.d/rcS-late ? Last edited by sourcedriver; 2011-05-28 at 18:14. |
![]() |
|
|