You are not logged in.

#1 2009-02-11 21:44:13

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

mount encfs at boot

I like the idea of having some dotfiles shared among computers through dropbox, but I would like to add some security ass well. That being said I chose encfs for this purpose and would like to mount it at boot time (without asking for a password). As suggested in the encfs manpage, I wrote a wrapper script and put the apropriate line to fstab. After running mount -a, everything gets mounted ok, but encfs doesn't get mount during boot... What am I missing????

wrapper script

#!/bin/sh
echo "password..." | /usr/bin/encfs -S --public $*

fstab

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
/dev/sda3 / ext4 defaults,noatime,nodiratime 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda1 /boot ext2 defaults,noatime,nodiratime 0 1

/dev/sda4 /media/data xfs defaults,noatime,nodiratime 0 1

securemount#/media/Dropbox/.secure/ /home/jarda-wien/secure fuse defaults,auto 0 0

none /proc/bus/usb usbfs devgid=108,devmode=0664 0 0

edit:typos

Last edited by jarda-wien (2009-02-11 22:26:45)

Offline

#2 2009-02-19 21:19:15

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: mount encfs at boot

so I have found the solution... in /etc/rc.sysinit the mount command is mount -a -t $NETFS while in NETFS there is nofuse (because local filesystems get mounted early and there is possibly no network available, which could lead to problems). but mounting a fuse filesystem is exactly what rc.local is for, so I put the script there, and voila...

Offline

Board footer

Powered by FluxBB