I performed a fresh installation of OpenSUSE 12.3, but cannot encypt my home directory. The error is the same for both YaST tool and cryptconfig (obviously YaST executes the same command).
# cryptconfig make-ehd pavel 70000
Enter pavel's password:
Enter pavel's password, again:
Creating disk image... Done
stat: No such file or directory
Failed to open image
I went though cryptconfig source code, as the message says totally nothing. It looks like this condition fails.
cryptconfig really expects /dev/loop0 to be available, which is not true. By default all /dev/loopX devices are missing because kernel module loop is not loaded on startup. To fix it, create a file /etc/modules-load.d/loop.conf and insert a single line “loop” there. Restart and use cryptconfig as needed.
Interesting. Thanks. Maybe I will experiment again with encrypted home directory, after first forcing that module to load.
I am currently using “ecryptfs” for a private directory. This is working well. However, on a newly booted system, apparently “ecryptfs-setup-private” fails, and “ecryptfs-umount-private” messes up. It seems that the PAM mounting of a private ecryptfs volume correctly loads the needed “ecryptfs” module, “ecryptfs-umount-private” manages to load the module, but only after it has already messed up. And “ecryptfs-setup-private” does not load the module at all. Once the module is loaded, all works.
This thread is about two years old. People will only see your new post by chance.
It is far better to start a new thread with a good description (and better leave out all signs of frustration, these will not encourage people to help you).