Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autofs & ftpfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trINItr0n_
n00b
n00b


Joined: 05 Feb 2004
Posts: 44
Location: Belgium::Leuven

PostPosted: Sun Feb 15, 2004 1:43 pm    Post subject: autofs & ftpfs Reply with quote

Hi,

i was reading this nice article at arstechnica about autofs : http://arstechnica.com/etc/linux/index.html
It talks about dynamicly mounting and unmounting devices like cdroms and usbdrives, which worked without a problem here and if definalty worth taking a look :)

At the end it talked about autofs and ftpfs with lufs, but i cant get it to work.
In the article the auto.ftp isnt listed but i guess it should be something like this :
Code:
server  -fstype=ftpfs,host=12.34.56.78,username=blah,password=blah :none

Now my syslog complains:
Code:
mount:fs type ftpfs is not suported by kernel

So how can i register ftpfs so i can use it with mount ?
Or is there a way i can use the lufsmount command in autofs ?

tnx
Back to top
View user's profile Send private message
overdozed
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2004
Posts: 77
Location: Munich/Germany

PostPosted: Tue Feb 17, 2004 4:01 am    Post subject: Reply with quote

no :)

do you already have lufs installed ?
you realize if you have commandos like lufsmount or lussh.

Then you should also have the /etc/auto.sshfs which is the right map to use for the sshfs
after assigning an ftp mountpoint in the /etc/autofs/auto.master you simply give the host by
cd`ing into the automountdir/user:pass@ftp.somwhere.com
then a directory is created in the automountdir and the ftp is mounted

got that :)

I m fiddling with same stuff right now
got problems getting the permissions right
and it s a little bit stupid the name of the ftp link finaly contains the pass
Back to top
View user's profile Send private message
trINItr0n_
n00b
n00b


Joined: 05 Feb 2004
Posts: 44
Location: Belgium::Leuven

PostPosted: Tue Feb 17, 2004 1:45 pm    Post subject: Reply with quote

Thanks,

ah so there doenst actually has to be an auto.sshfs file right ?

i figured out it works also like this, in auto.ftp:
Code:
bender          -fstype=lufs,fs=ftpfs,host=bender,username=xxxx,password=xxxxx,quiet   :none

(Where bender is my ftp server)

i had emerged lufs while being on 2.4 kernel, but now on 2.6 i get compile errors :(
any idea whats wrong here ?

Code:
emerge /usr/portage/sys-fs/lufs/lufs-0.9.7.ebuild
....
###############################################################################
 supported filesystems: localfs locasefs ftpfs gnetfs sshfs
 suid files: lufsmnt & lufsumount.
###############################################################################
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7'
Making all in kernel
make[2]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel'
Making all in Linux
make[3]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux'
Making all in 2.6
make[4]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux/2.6'
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[5]: Entering directory `/usr/src/linux-2.6.2-gentoo-r1'
Makefile:406: /usr/src/linux-2.6.2-gentoo-r1/arch/x86/Makefile: No such file or directory
make[5]: *** No rule to make target `/usr/src/linux-2.6.2-gentoo-r1/arch/x86/Makefile'.  Stop.
make[5]: Leaving directory `/usr/src/linux-2.6.2-gentoo-r1'
make[4]: *** [all] Error 2


then i tried:
Code:
cd /usr/src/linux-2.6.2-gentoo-r1/arch/
ln -s i386 x86
emerge /usr/portage/sys-fs/lufs/lufs-0.9.7.ebuild


Still not working :(
Code:
###############################################################################
 supported filesystems: localfs locasefs ftpfs gnetfs sshfs
 suid files: lufsmnt & lufsumount.
###############################################################################
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7'
Making all in kernel
make[2]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel'
Making all in Linux
make[3]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux'
Making all in 2.6
make[4]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux/2.6'
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[5]: Entering directory `/usr/src/linux-2.6.2-gentoo-r1'
  MKELF   scripts/elfconfig.h
ACCESS DENIED  open_wr:   /usr/src/linux-2.6.2-gentoo-r1/scripts/elfconfig.h
/bin/sh: line 1: scripts/elfconfig.h: Permission denied
make[6]: *** [scripts/elfconfig.h] Error 1
make[5]: *** [scripts] Error 2



root has rw permissions on elfconfig.h but is installing lufs supposed to messing things up in my kernel source ??

sorry I'm not very good with makefiles and such .. anyone have a clue ??

tnx
Back to top
View user's profile Send private message
overdozed
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2004
Posts: 77
Location: Munich/Germany

PostPosted: Tue Feb 17, 2004 6:23 pm    Post subject: Reply with quote

I also had problems emerging lufs, so I fetched the newest sources via cvs
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Wed Feb 18, 2004 12:15 am    Post subject: Reply with quote

Install the love-sources, which have the lufs patch, or patch the kernel yourself and modify the lufs ebuild so that It doesn't want to patch the kernel.
Here is how to do it:
Uncomment PORTDIR_OVERLAY="/usr/local/portage" in /etc/make.conf
make a /usr/local/portage/sys-fs/lufs/files directory
cp /usr/portage/sys-fs/lufs/lufs-0.9.7.ebuild /usr/local/portage/sys-fs/lufs/lufs-0.9.7-r0.ebuild
now edit /usr/local/portage/sys-fs/lufs/lufs-0.9.7-r0.ebuild and add these lines in it, just before src_install() :
Quote:
src_compile () {
emake
econf --disable-kernel-suport
}

add a line
sys-fs/lufs ~x86
in your /etc/portage/package.keywords (check you have portage 2.50)
then
cp /usr/portage/sys-fs/lufs/files/gentoo-gcc332fix-0.9.7.patch /usr/local/portage/sys-fs/lufs/files/
ebuild /usr/local/portage/sys-fs/lufs/lufs-0.9.7-r0.ebuild digest
and at last emerge lufs
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum