Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <01ea01c41685$024f4f30$07a51e97@lan>
From: "Angelo Turetta" <aturetta@commit.it>
To: "Nerijus Baliunas" <nerijus@users.sourceforge.net>,
   "Brian Ford" <ford@vss.fsi.com>
Cc: <cygwin@cygwin.com>
References: <3D848382FB72E249812901444C6BDB1D022F4647@exchange.timesys.com> <3FBA5314.6050502@users.sourceforge.net> <Pine.GSO.4.56.0311181146370.922@eos> <3FBA5C8C.2000202@users.sourceforge.net>
Subject: Re: nfs-server 2.2.47-2
Date: Tue, 30 Mar 2004 20:29:56 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Authenticated-Sender: aturetta@rainbownet.com
X-Spam-Processed: rainbownet.com, Tue, 30 Mar 2004 20:32:35 +0200 (not processed: message from valid local sender)
X-MDRemoteIP: 151.30.174.203
X-Return-Path: aturetta@commit.it
X-MDaemon-Deliver-To: cygwin@cygwin.com

----- Original Message ----- 
From: "Nerijus Baliunas" <nerijus.at.users.dot.sourceforge.dot.net@pvi.it>
Sent: Tuesday, November 18, 2003 7:53 PM


> Brian Ford wrote:
>
> >>After selecting sunrpc manually and installing it, nfs-server-config
> >>installed all 3 services succesfully, but I cannot mount from
> >>neither Sun nor HP box, both give me for the first time:
> >>
> >># mount -F nfs 172.31.1.38:/tmp /c
> >>nfs mount: mount: /c: No such file or directory
> >
> > Well, did /c exist before you tried to mount on it.  AFAIK, most OSs
> > require that.
>
> Of course.
>
> Nerijus

Don't know if someone else have seen this problem. I did, and found this
message from a Google search, but no answer.
After some tests, I came to a base rule: file systems mounted without a
'real' directory behind, cannot be nfs-exported.

So, to correctly export    /c   containing the root of the C: windows drive,
you need to actually create the directory hidden behind the mountpoint.
Easier to do than to say:

Execute a 'mount' command without any parameter, you should get an output
like this:

       C:\cygwin on / type system (binmode)
       c: on /c type system (binmode,noumount)
       d: on /d type system (binmode,noumount)

This means that your cygwin root is actually c:\cygwin. To be able to
nfs-export any directory from the windows drives, you just need to create
'c' and 'd' directories under C:\cygwin

from DOS Command Prompt:
     md c:\cygwin\c
     md c:\cygwin\d

from cygwin shell
    mkdir /c/cygwin/c
    mkdir /c/cygwin/d

Hope this helps someone.

Ciao,
Angelo Turetta


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

