Please see posts below this.
(PREVIOUS NFS PROBLEMS)
Here's the situation:
My friend can export any of his regular file system to NFS and I can mount it. The sole exception being stuff on his file system that is a samba mount. For example, /mnt/music on his file system refers to a samba location. However, on his PC, the samba location is mounted in /mnt/music and it appears just as any directory. The files can be listed just fine.
When he tries to export /mnt/music, both he and I get access denied when trying to mount it. I found a similar problem here but no solution: http://lists.samba.org/archive/samba/2006-June/121954.html
The /etc/exports looks like this:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/mnt/music *(ro,root_squash,sync)
/home/tom *(ro,root_squash,sync)
/media/hdb1 *(ro,root_squash,sync)
(And I can access /home/tom just fine.)
We do exportfs -vra and it shows it as being exported.
exporting *:/mnt/music
exporting *:/home/tom
exporting *:/media/hdb1
Here is his mounts:
//server/Users on /mnt/music type cifs (rw,mand)
/dev/sda1 on /home type xfs (rw)
/dev/hdb1 on /media/hdb1 type ntfs (rw,nls=utf8,umask=007,gid=46)
I can see the folder as exported with this command:
showmount -a <ip>
*:/mnt/music
*:/home/tom
*:/media/hdb1
Here is the command we use to mount:
sudo mount <ip>:/mnt/music /shares/tom/music
Returns: mount: <ip>:/mnt/music failed, reason given by server: Permission denied
The same thing goes for /mnt/music/ with a slash at the end.
He gets the same error on his own machine. /shares/tom/music does exist on both machines and is empty. There is nothing pertinent in dmesg.
We have restarted nfs-common and nfs-kernel-server numerous times. (sudo /etc/init.d/service restart)
The only folder I can not access is /mnt/music. His other NFS shares are mountable by both me and him (we both mount using same ip which is over hamachi). The whole /mnt/music folder is owned by him (chown -R).
What could it be? BTW, /mnt works fine, but it freezes at ls -al when mounted as an NFS share. music is the only folder under /mnt.
(PREVIOUS NFS PROBLEMS)
Here's the situation:
My friend can export any of his regular file system to NFS and I can mount it. The sole exception being stuff on his file system that is a samba mount. For example, /mnt/music on his file system refers to a samba location. However, on his PC, the samba location is mounted in /mnt/music and it appears just as any directory. The files can be listed just fine.
When he tries to export /mnt/music, both he and I get access denied when trying to mount it. I found a similar problem here but no solution: http://lists.samba.org/archive/samba/2006-June/121954.html
The /etc/exports looks like this:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/mnt/music *(ro,root_squash,sync)
/home/tom *(ro,root_squash,sync)
/media/hdb1 *(ro,root_squash,sync)
(And I can access /home/tom just fine.)
We do exportfs -vra and it shows it as being exported.
exporting *:/mnt/music
exporting *:/home/tom
exporting *:/media/hdb1
Here is his mounts:
//server/Users on /mnt/music type cifs (rw,mand)
/dev/sda1 on /home type xfs (rw)
/dev/hdb1 on /media/hdb1 type ntfs (rw,nls=utf8,umask=007,gid=46)
I can see the folder as exported with this command:
showmount -a <ip>
*:/mnt/music
*:/home/tom
*:/media/hdb1
Here is the command we use to mount:
sudo mount <ip>:/mnt/music /shares/tom/music
Returns: mount: <ip>:/mnt/music failed, reason given by server: Permission denied
The same thing goes for /mnt/music/ with a slash at the end.
He gets the same error on his own machine. /shares/tom/music does exist on both machines and is empty. There is nothing pertinent in dmesg.
We have restarted nfs-common and nfs-kernel-server numerous times. (sudo /etc/init.d/service restart)
The only folder I can not access is /mnt/music. His other NFS shares are mountable by both me and him (we both mount using same ip which is over hamachi). The whole /mnt/music folder is owned by him (chown -R).
What could it be? BTW, /mnt works fine, but it freezes at ls -al when mounted as an NFS share. music is the only folder under /mnt.