Bug 148124 - create cryptfs fails with errno=-3013
Summary: create cryptfs fails with errno=-3013
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 6
Hardware: All Other
: P5 - None : Major (vote)
Target Milestone: RC 1
Assignee: Thomas Fehr
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 21:03 UTC by Steven Campbell
Modified: 2006-03-21 13:42 UTC (History)
2 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Copy of the yast2 logs from an attempt to create a cryptfs (23.64 KB, application/x-compressed-tar)
2006-02-03 21:05 UTC, Steven Campbell
Details
y2logs from 10.1 beta6 (21.88 KB, application/x-gzip)
2006-03-10 16:46 UTC, Christian Boltz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Campbell 2006-02-03 21:03:16 UTC
cannot create a cryptfs loop filesystem, it fails with errno=-3013
Also cannot create an LVM encrypted filesystem, it fails the first time with errno=-3013 and, thereafter does not fail but creates only an unencrypted filesystem.  This has been tested on several systems all up to date with Suse 10.0.

I see other reports of this claiming 'fixed' but no Suse 10 system that I can find is functional in this regard.
Comment 1 Steven Campbell 2006-02-03 21:05:00 UTC
Created attachment 66424 [details]
Copy of the yast2 logs from an attempt to create a cryptfs
Comment 2 Michael Gross 2006-02-06 12:10:09 UTC
Maby this was fixed for 10.1. Please try if it works with 10.1 Beta 3 first.
Comment 3 Michael Gross 2006-02-08 11:57:40 UTC
> I see other reports of this claiming 'fixed' but no Suse 10 system that I can
> find is functional in this regard.

Which bug reports (id's) are you referring to?
Comment 4 Michael Gross 2006-02-13 10:30:09 UTC
Thomas: What does this error mean? Can you take care of that, maby the logfiles contain something useful.
Comment 5 Hendrik Vogelsang 2006-02-28 15:16:13 UTC
There is some iso loopback mounted (/suse10/iso/suse10.iso). Setting up the crypto loop then fails because loop0 is busy. Steven where comes the loop mount of /suse10/iso/suse10.iso from?
Comment 6 Steven Campbell 2006-02-28 19:11:02 UTC
It appears the loopback mount was causing the issue.  This loopback is a copy of the suse 10 distribution disk mounted from an iso.  By moving this to another loop device it resolved the issue.

The only issue here really is that we didn't move to the next loopback device when one was in use during the creation of the encrypted partition.
Comment 7 Hendrik Vogelsang 2006-03-01 10:28:40 UTC
The question is where did this loop mount come from? Your old fstab? Did you set it up manually? When did you do that? During installation?

Please answer that so we can reproduce and have a chance to fix it.
Comment 8 Steven Campbell 2006-03-01 13:14:27 UTC
It came from my own fstab (reproduced below).  I typically copy the iso to my disk and loop mount it to feed it to yast as a DVD source.  This is being done by several of my co-workers which explains why none of us could get this to work.  

Here's the fstab as it was:
/dev/hda1            /                    ext3       acl,user_xattr        1 1
/dev/system/home     /home                ext3       acl,user_xattr        1 2
/dev/system/opt      /opt                 ext3       acl,user_xattr        1 2
/dev/system/srv      /srv                 ext3       acl,user_xattr        1 2
/dev/system/tmp      /tmp                 ext3       acl,user_xattr        1 2
/dev/system/usr      /usr                 ext3       acl,user_xattr        1 2
/dev/system/var      /var                 ext3       acl,user_xattr        1 2
/dev/system/virtual  /virtual             ext3       acl,user_xattr        1 2
/dev/system/suse10   /suse10              reiserfs   acl,user_xattr        1 2
/dev/system/swap     swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/cdrecorder      /media/cdrecorder    subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder     /media/dvdrecorder   subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
none                 /subdomain       subdomainfs noauto         0 0
/suse10/iso/suse10.iso /suse10/dvd        iso9660    loop,rw               0 0


Also, please note that removeing the loop entry allowed me to create the encrypted partition but, after I put the entry back the encrypted parition no longer automounted.  I also tried a loop=/dev/loop1 form hoping to skip over the loop device without success.
Comment 9 Steven Campbell 2006-03-01 13:39:00 UTC
Correction, it does work when I put my loop entry back.  It simply timed out waiting for a response which is absolutely normal.
Comment 10 Christian Boltz 2006-03-10 16:44:53 UTC
This bug still exists in 10.1 beta6 - I can't create an encrypted file :-(
(I didn't test with a real partition)

Before you ask: I don't use any loop device currently. (My encrypted /home is not mounted, I let it timeout at boot.)

To reproduce:
- start the YaST2 partitioner
- create a cryptoloop file with the following settings:
  - enter a pathname for the cryptoloop file
  - check "create loop file"
  - check "format"
  - set a mountpoint
  - let the other options on default settings, click OK
  - enter a password
  - in the main dialog, click "apply"
Comment 11 Christian Boltz 2006-03-10 16:46:44 UTC
Created attachment 72313 [details]
y2logs from 10.1 beta6

I emptied the logs before running YaST - therefore, it shouldn't be too hard to find your way in the logs ;-)
Comment 12 Thomas Fehr 2006-03-21 13:42:29 UTC
I think I found and fixed the problem, it was caused by the facted that you
did not provide the crypto password for /home during system startup.
YaST2 tried wrongly to losetup your encrypted partition on /dev/hda6 and of
course failed since it did not have the password.

Problem should be fixed with RC1.