Cannot create encrypted home directory (OpenSUSE 12.3)

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.

static gboolean loop_create_new_device (int nr, gchar **device)
{
    struct stat info;

    if (g_stat ("/dev/loop0", &info)) {
        g_printerr ("stat: %s
", strerror (errno));
        return FALSE;
    }
...

I’ve had no time to investigate further. Has anyone encrypted his/her home successfully?

I experimented with that on RC2 (release candidate 2), and had the same result. I did not pursue it further.

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.

There’s a bug already: https://bugzilla.novell.com/show_bug.cgi?id=811180

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.

I am having a similar problem, I tried encrypting my ‘home’ partition with yast and keep getting the following error message:

"Could not set encryption.
System error code is -3016

The encryption password provided could be incorrect."

What in the hell does this mean!?

Linux kernel ver: 3.7.10-1.16-desktop (x86_64)
openSUSE 12.3

>:(>:(>:(

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).