Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73975 - unable to mount encfs
Summary: unable to mount encfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-09 21:13 UTC by Jay Phelps
Modified: 2005-01-03 05:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Phelps 2004-12-09 21:13:52 UTC
I am able to issue the encfs command and create a new filesystem or try and use an old one, however in both cases the fs does not mount.  Issuing 'df' generatest this error: df: `/tmp/crypt': Software caused connection abort

Running the encfs mount in verbose foreground mode gives me this output:
encfs -v -f /tmp/crypt-raw /tmp/crypt
23:11:32 (main.cpp:467) Root directory: /tmp/crypt-raw/
23:11:32 (main.cpp:468) Fuse arguments: (fg) (threaded) encfs /tmp/crypt 
Creating new encrypted volume.
Please choose from one of the following options:
 enter "x" for expert configuration mode,
 enter "p" for pre-configured paranoia mode,
 anything else, or an empty line will select standard mode.
?> 

Standard configuration selected.
23:11:33 (SSL_Cipher.cpp:319) allocated cipher ssl/blowfish, keySize 20, ivlength 8
23:11:33 (FileUtils.cpp:781) Using cipher Blowfish, key size 160, block size 512

Configuration finished.  The filesystem to be created has
the following properties:
23:11:33 (Interface.cpp:165) checking if ssl/aes(2:1:1) implements ssl/blowfish(2:1:1)
23:11:33 (Interface.cpp:165) checking if ssl/blowfish(2:1:1) implements ssl/blowfish(2:1:1)
23:11:33 (SSL_Cipher.cpp:319) allocated cipher ssl/blowfish, keySize 20, ivlength 8
Filesystem cipher: "ssl/blowfish" , version 2:1:1
23:11:33 (Interface.cpp:165) checking if nameio/block(3:0:1) implements nameio/block(3:0:1)
Filename encoding: "nameio/block" , version 3:0:1
23:11:33 (Interface.cpp:165) checking if ssl/aes(2:1:1) implements ssl/blowfish(2:1:1)
23:11:33 (Interface.cpp:165) checking if ssl/blowfish(2:1:1) implements ssl/blowfish(2:1:1)
23:11:33 (SSL_Cipher.cpp:319) allocated cipher ssl/blowfish, keySize 20, ivlength 8
Key Size: 160 bits
Block Size: 512 bytes
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.

Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism.  However, the password can be changed
later using encfsctl.

23:11:33 (main.cpp:323) Allocating 33 locks for OpenSSL
New Password: 
Verify Password: 
23:11:36 (Interface.cpp:165) checking if nameio/block(3:0:1) implements nameio/block(3:0:1)

It then returns to the command prompt with no further information.


Reproducible: Always
Steps to Reproduce:
1. cd to /tmp
2. mkdir crypt
3. mkdir crypt-raw
4. encfs -f -v /tmp/crypt-raw /tmp/crypt
5. Chose defaults (hit return when prompted)
6. Enter a password twice
7. encfs halts with no further errors although it's in foreground mode
8. issue 'df' for additional error information

Actual Results:  
encfs is halting (it's in -f (foreground) mode).  The filesystem is partially
mounted in that it errors in df and can be unmounted.

Expected Results:  
show as a mounted filesystem and encfs should stay in foreground mode.

sudo emerge info


Performing Global Updates: /usr/portage/profiles/updates/4Q-2004
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
...............................................
Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 
 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3 
/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /us 
r/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://ftp6.uni-erlangen.de/pub/m 
irrors/gentoo ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6 
.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distri 
butions/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://ftp6.u 
ni-erlangen.de/pub/mirrors/gentoo http://gentoo.binarycompass.org http://vlaai.s 
nt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa apm arts avi bash-completion berkdb bitmap-fonts bono 
bo bzlib cdparanoia cdr crypt cups directfb divx4linux doc dvd dvdr dvdread enco 
de esd ethereal f77 fam fbcon flac foomaticdb fortran ftp gdbm gif gnome gpm gst 
reamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb jabber java jpeg jun 
it kde kerberos krb4 ldap libg++ libwww mad mikmod mmap motif mpeg msn mysql nas 
 ncurses nls oggvorbis opengl oss pam pcmcia pda pdflib perl php pic png python  
qt quicktime radeon readline samba sdl shared slang spell sse ssl tcpd tiff true 
type usb x86 xine xinerama xml xml2 xmms xpm xv xvid yahoo zlib"
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-02 04:54:28 UTC
Which fuse version are you using? Does it work with the other Version? (2.1 or 1.4)
Comment 2 Jay Phelps 2005-01-02 07:55:47 UTC
Using fuse 2.1.  I tried to emerge 1.4 but I get a build error:
!!! ERROR: sys-fs/fuse-1.4 failed.
!!! Function econf, Line 451, Exitcode 1
!!! no configure script found
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-02 08:32:46 UTC
Should work after syncing in about haalf an hour, my fault, sorry.
Comment 4 Jay Phelps 2005-01-02 13:15:11 UTC
Good call.  I emerged =sys-fs/fuse-1.4 and re-emerged encfs-1.1.10 and a quick test (see post 1) works fine.  I'm not sure what's breaking this in the new fuse but I can test whatever if you pass along some instructions. 
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-03 00:07:57 UTC
I changed the fuse dependancy to say <sys-fs/fuse-1.9 like in siefs .. seems like the interface has changed in fuse-2.1, we just have to wait for the next version, you can make a rc-ebuild if you want to use fuse-2.1 or just wait for the final version :)

I think its ok to mark this as FIXED with the dep added, please tell me if it is not.
Comment 6 Valient Gough 2005-01-03 05:23:14 UTC
I have been developing (and using) encfs with fuse 2.1 for quite a while, however I'm not using gentoo.  Would someone be willing to try out a pre-release of 1.1.11 and see if it still causes a problem?  If we find the problem, I can include a fix in the 1.1.11 release, otherwise you may have to stick with fuse 1.4 for a while...

There is a link to a pre-release of 1.1.11 at the top of my encfs page:  http://pobox.com/~vgough/encfs.html

or grab it from my download directory: http://pobox.com/~vgough/download/encfs-1.1.11-rc2.tgz  (and .tgz.asc signature)