View previous topic :: View next topic |
Author |
Message |
vai777 Tux's lil' helper
Joined: 07 Oct 2004 Posts: 129 Location: Spain
|
Posted: Fri Dec 01, 2006 3:55 pm Post subject: [NFS] Can't export ntfs3g mounted folder with NFS |
|
|
Hello guys!!
I'm using ntfs3g to access my windows partitions. I want to share them via NFS but the client always gets
Code: | mount 192.168.1.100:/mnt/datos2/Series -t nfs /mnt/javi1
mount: 192.168.1.100:/mnt/datos2/Series failed, reason given by server: Permission denied |
Usually you get this when the folder it's not well exported (server side). When I try to export a folder which uses ext3 the client can mount it perfectly, when I try to export a folder which uses the ntfs3g driver it doesn't.
If I use the standard kernel ntfs driver to mount those partitions in the kernel, it works.
Does anyone know how to export when using ntfs3g ?? For me, it seems kind of strange, I though that the filesystem layer should be transparent for the NFS driver and independent as long as it's already well mounted in the server file tree.
Can you help me? I don't want to go back to the standard ntfs drivers because I want to write on those partitions.
Thanks in advance!! _________________ Life is short but wide |
|
Back to top |
|
|
seiichiro0185 Tux's lil' helper
Joined: 18 Dec 2005 Posts: 115 Location: Berlin, Germany
|
Posted: Fri Dec 01, 2006 8:01 pm Post subject: |
|
|
Hi,
I think the problem is that ntfs-3g is in userspace (through FUSE) but NFS is in kernelspace. That means NFS cant see the ntfs3g-mounts (I had the same problems with encfs and nfs-exports, I just got empty directories or errors. With samba I had no problem exporting the encfs-crypted directories).
seiichiro0185
PS.: I only know this through my own experience, so I may be wrong here, feel free to correct me ^_^ _________________ Desktop: AMD Athlon64 4850e@2,9GHz| 2GB RAM | 500GB HDD
Laptop: Dell Vostro 1310: C2D 2.1GHz | 4GB RAM | 250GB HDD
Server: Via C7D 1,5GHz | 512MB RAM | 1TB HDD |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Fri Dec 01, 2006 8:37 pm Post subject: |
|
|
that userspace and kernelspace thing sounds strange
mabe that's not because of that but because of file permissions
i was unable to export some files with samba that i could sucessfully export with NFS because of permissions |
|
Back to top |
|
|
seiichiro0185 Tux's lil' helper
Joined: 18 Dec 2005 Posts: 115 Location: Berlin, Germany
|
Posted: Fri Dec 01, 2006 10:13 pm Post subject: |
|
|
Quote: | that userspace and kernelspace thing sounds strange
mabe that's not because of that but because of file permissions
i was unable to export some files with samba that i could sucessfully export with NFS because of permissions |
I don't know what is the problem in vai777's case, but i can say that in may case with fuse-based fs and nfs-export the file permissions were not the problem (I set the permissions to 777 for the whole data-dir where the encfs-dirs were stored and mounted, and it didn't make any difference for nfs, same errors/empty dirs) _________________ Desktop: AMD Athlon64 4850e@2,9GHz| 2GB RAM | 500GB HDD
Laptop: Dell Vostro 1310: C2D 2.1GHz | 4GB RAM | 250GB HDD
Server: Via C7D 1,5GHz | 512MB RAM | 1TB HDD |
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Sat Dec 02, 2006 12:09 am Post subject: Re: [NFS] Can't export ntfs3g mounted folder with NFS |
|
|
It works. The README.NFS from the FUSE package explains how:
Quote: | FUSE module in official kernels (>= 2.6.14) don't support NFS
exporting. In this case if you need NFS exporting capability, use the
'--enable-kernel-module' configure option to compile the module from
this package. And make sure, that the FUSE is not compiled into the
kernel (CONFIG_FUSE_FS must be 'm' or 'n').
You need to add an fsid=NNN option to /etc/exports to make exporting a
FUSE directory work.
You may get ESTALE (Stale NFS file handle) errors with this. This is
because the current FUSE kernel API and the userspace library cannot
handle a situation where the kernel forgets about an inode which is
still referenced by the remote NFS client. This problem will be
addressed in a later version.
In the future it planned that NFS exporting will be done solely in
userspace.
|
|
|
Back to top |
|
|
vai777 Tux's lil' helper
Joined: 07 Oct 2004 Posts: 129 Location: Spain
|
Posted: Sun Dec 03, 2006 1:29 pm Post subject: |
|
|
Thanks for the answers!!!
It's not a permission problem, that partition is chmoded 777
I've recompiled the kernel, copied it and rebooted but when I try to recompile fuse to rewrite the module it says I have the FUSE included in the kernel but it's not, it's configured as a module.
Code: | # cat /usr/src/linux/.config | grep -i FUSE
CONFIG_FUSE_FS=m |
Any thoughts? _________________ Life is short but wide |
|
Back to top |
|
|
|