On Mon, 2009-03-16 at 17:07 -0400, Sean Dague wrote:
> Allen wrote:
> > I'm trying to set up (one-way) file sharing between my two PC's using
> > NFS.  The target file system on the server appears to get mounted on the
> > client, but I can't see any files on it. For troubleshooting I'm using
> > the troubleshooting section of the NFS-HOWTO v3.1 2002-08-25. The answer
> > might be staring me in the face but I don't see it. Can someone help?
> 
> I suspect your issue has to do with the fact that you are trying to
> export 3 filesystems, but only gave /etc/exports a directory in one of
> them, and hence are only exporting 1.
> 
> I'd start down the path of adding /mnt/large_downloads and /mnt/windows
> explicitly to /etc/exports.
> 
>       -Sean
> 
According to the NFS HOWTO "It is not possible to export both a
directory and its child (for example both /usr and /usr/local). You
should export the parent directory with the necessary permissions, and
all of its subdirectories can then be mounted with those same
permissions" so if I put /mnt/windows in /etc/exports I should not also
have /mnt there. 

I changed /etc/exports to contain
only /mnt/windows.(Viewing /mnt/large_downloads is a lesser priority so
I will ignore it for now). On the client I issued "sudo mount -t nfs
192.168.1.150:/mnt/windows  /mnt/nfs"

I tried two approaches on the client to view the contents of the
directory /mnt/windows:

1. GNOME -> Places -> Computer -> Filesystem -> NFS

2. sudo gedit -> open -> filesystem -> NFS

In both cases, the command hung and nothing was displayed. On the
server, when I tried to run  (KDE) "Dolphin" to view local files,
Dolphin hung. (Other apps such as Firefox were OK). Later, when I wanted
to reboot the server, and I issued "restart", that hung too.

I subsequently tried one other variation:

I changed /etc/exports back to contain only /mnt. On the client, I tried
issuing two mount commands. First I mounted (server):/mnt on /mnt/nfs.
Then I tried mounting (server):/mnt/windows on /mnt/nfs/windows. This
second mount failed with the message "access denied by server while
mounting 192.168.1.150:/mnt/windows". I also tried this second mount
with "readonly" option, but it got the same "access denied" message.

I neglected to mention in my original post that the NFS HOWTO
recommended restarting the server when you are unable to see files on a
mounted filesystem. I tried that.
 



> _______________________________________________
> Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
> http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
> Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
>   Mar 7 - Web Hack-a-thon - SUNY Newpaltz
>   Apr 1 - EC2 and Cloud Computer
>   May 6 - TBD

_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
  Mar 7 - Web Hack-a-thon - SUNY Newpaltz
  Apr 1 - EC2 and Cloud Computer
  May 6 - TBD

Reply via email to